Sent: 19 January 2006 17:04
To: [email protected]
Subject: Re: Custom name for return value
My WSDL matches what is being returned. Axis is automatically generating my WSDL. I am wanting to change the way that the WSDL (and SOAP) are generated by axis.
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]]
Sent: 19 January 2006 16:22
To: [email protected]
Subject: Re: Custom name for return valueIs this a document/literal service? What does your WSDL specify?
Anne
On 1/19/06, Lance Semmens <[EMAIL PROTECTED]> wrote:I have a web service that exposes a method named "Registration". Axis has automatically generated "RegistrationReturn" as the name to give the return value. My client is expecting the name to be "RegistrationResult". Is there any way to specify the return value's name rather than using the axis default?
Ie. I would like this SOAP response:
-----------------------------------------
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd=" http://www.w3.org/2001/XMLSchema"><soap:Body>
<RegistrationResponse xmlns="urn:Microsoft.Search">
<RegistrationReturn>...</RegistrationReturn>
</RegistrationResponse>
</soap:Body>
</soap:Envelope>
----------------------------------------
Changed to:
----------------------------------------
<?xml version=" 1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap=" http://schemas.xmlsoap.org/soap/envelope/ " xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance " xmlns:xsd=" http://www.w3.org/2001/XMLSchema"><soap:Body>
<RegistrationResponse xmlns="urn:Microsoft.Search">
<RegistrationResult>...</RegistrationResult>
</RegistrationResponse>
</soap:Body>
</soap:Envelope>
Thanks in advance,
Lance.
