Use GET, not POST.  POST might work but has the wrong semantics with
respect to caching, etc.

Jeff

On 5/14/07, Demetris G <[EMAIL PROTECTED]> wrote:

I guess I can try to use the Jakarta HTTP Client API and use the POST to
send the
'... ?wsdl' command to the remote Axis server. What do you think ?

Demetris G wrote:
>
> Hi Amila,
>
>    I am just looking for something pretty simple - I want to run a
> client that can trigger the Axis server
> to send the WSDL XML doc over. I know I can do it manually as you are
> describing in your other
> email but is there an API that I can use to do this ? I will go over
> your code below and see if it can
> help me.
>
> Thanks very much
>
>
> Amila Suriarachchi wrote:
>> I am not clear about what you are saying. we can help you if you
>> explain a bit.
>>
>> See AxisService class has a method called printWSDL
>>
>> if (isUseUserWSDL()) {
>>             Parameter wsld4jdefinition = getParameter(
>> WSDLConstants.WSDL_4_J_DEFINITION);
>>             if (wsld4jdefinition != null) {
>>                 try {
>>                     Definition definition = (Definition)
>> wsld4jdefinition.getValue();
>>                     if (isModifyUserWSDLPortAddress()) {
>>                         setPortAddress(definition);
>>                     }
>>                     WSDLWriter writer =
>> WSDLFactory.newInstance().newWSDLWriter();
>>                     writer.writeWSDL(definition, out);
>>                 } catch (WSDLException e) {
>>                     throw new AxisFault(e);
>>                 }
>>             } else {
>>                 printWSDLError(out);
>>             }
>>         } else {
>>             setWsdlFound(true);
>>             //pick the endpointName and take it as the epr for the WSDL
>>             getWSDL(out, new String[]{this.endpointName}, "services");
>>         }
>>
>> Which actually called when generating the wsdl file.
>>
>> On 5/14/07, *Demetris G* <[EMAIL PROTECTED]
>> <mailto:[EMAIL PROTECTED]>> wrote:
>>
>>
>>     Hi all,
>>
>>         I asked this before and didn't hear much back about it. How
>> would
>>     one retrieve WSDL
>>     files from an Axis server programmatically? I can't find it in the
>>     API.
>>
>>     Thanks
>>
>>     >
>>
>>
>> ---------------------------------------------------------------------
>>     To unsubscribe, e-mail: [EMAIL PROTECTED]
>>     <mailto:[EMAIL PROTECTED]>
>>     For additional commands, e-mail: [EMAIL PROTECTED]
>>     <mailto:[EMAIL PROTECTED]>
>>
>>
>>
>>
>> --
>> Amila Suriarachchi,
>> WSO2 Inc.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to