You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Nicolas De Loof <ni...@capgemini.com> on 2006/08/17 15:10:16 UTC
Name of the root element for a Document style service
Hello,
I'm writing a client for a web service. The WSDL2java generated code
works fine using a service simulator based on Axis, but I get errors
running the target system (webmethod).
The SOAP sent is :
<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
<*subscribeOptionalService
*xmlns="http://localhost:5555/soap/linkback/">
<transaction_id xmlns="">1234</transaction_id>
...
</subscribeOptionalService>
</soapenv:Body>
</soapenv:Envelope>
The target server support team says it expect the root element in the
body to be the method name. subscribeOptionalService is the name of the
method parameter (input document). The SOAPAction is present so the
server may find the target service, but I can't make any change to the
target server,
So, is there any way to force Axis to use the operation name as root
element for the document ?
Nico.
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Name of the root element for a Document style service
Posted by Nicolas De Loof <ni...@capgemini.com>.
Thanks for reply.
I get more info from support team and we don't have the correct WSDL.
New version acts as expected and the generated Strub works fine.
Nico.
Anne Thomas Manes a écrit :
> My guess is that the WSDL doesn't accurately reflect what's expected.
> Please post it. You can edit the WSDL so that WSDL2Java generates the
> right proxy.
>
> Anne
>
> On 8/17/06, Nicolas De Loof <ni...@capgemini.com> wrote:
>>
>> Hello,
>> I'm writing a client for a web service. The WSDL2java generated code
>> works fine using a service simulator based on Axis, but I get errors
>> running the target system (webmethod).
>>
>> The SOAP sent is :
>> <?xml version="1.0" encoding="UTF-8"?>
>> <soapenv:Envelope
>> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
>> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>> <soapenv:Body>
>> <*subscribeOptionalService
>> *xmlns="http://localhost:5555/soap/linkback/">
>> <transaction_id xmlns="">1234</transaction_id>
>> ...
>> </subscribeOptionalService>
>> </soapenv:Body>
>> </soapenv:Envelope>
>>
>> The target server support team says it expect the root element in the
>> body to be the method name. subscribeOptionalService is the name of the
>> method parameter (input document). The SOAPAction is present so the
>> server may find the target service, but I can't make any change to the
>> target server,
>> So, is there any way to force Axis to use the operation name as root
>> element for the document ?
>>
>> Nico.
>>
>>
>> This message contains information that may be privileged or
>> confidential and is the property of the Capgemini Group. It is
>> intended only for the person to whom it is addressed. If you are not
>> the intended recipient, you are not authorized to read, print,
>> retain, copy, disseminate, distribute, or use this message or any
>> part thereof. If you receive this message in error, please notify
>> the sender immediately and delete all copies of this message.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
>> For additional commands, e-mail: axis-user-help@ws.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org
Re: Name of the root element for a Document style service
Posted by Anne Thomas Manes <at...@gmail.com>.
My guess is that the WSDL doesn't accurately reflect what's expected.
Please post it. You can edit the WSDL so that WSDL2Java generates the
right proxy.
Anne
On 8/17/06, Nicolas De Loof <ni...@capgemini.com> wrote:
>
> Hello,
> I'm writing a client for a web service. The WSDL2java generated code
> works fine using a service simulator based on Axis, but I get errors
> running the target system (webmethod).
>
> The SOAP sent is :
> <?xml version="1.0" encoding="UTF-8"?>
> <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
> <soapenv:Body>
> <*subscribeOptionalService
> *xmlns="http://localhost:5555/soap/linkback/">
> <transaction_id xmlns="">1234</transaction_id>
> ...
> </subscribeOptionalService>
> </soapenv:Body>
> </soapenv:Envelope>
>
> The target server support team says it expect the root element in the
> body to be the method name. subscribeOptionalService is the name of the
> method parameter (input document). The SOAPAction is present so the
> server may find the target service, but I can't make any change to the
> target server,
> So, is there any way to force Axis to use the operation name as root
> element for the document ?
>
> Nico.
>
>
> This message contains information that may be privileged or confidential and is the property of the Capgemini Group. It is intended only for the person to whom it is addressed. If you are not the intended recipient, you are not authorized to read, print, retain, copy, disseminate, distribute, or use this message or any part thereof. If you receive this message in error, please notify the sender immediately and delete all copies of this message.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org