I'm not sure if i've made myself clear.
 
Im writing a MS Office research service
The MS Office client expects the return value to be named "RegistrationResult"
When I deploy my class as a service, axis automatically names the return value "RegistrationReturn" (this can be seen in the WSDL)
I would like to change this behaviour... i'm assuming I can somehow do this in the wsdd.


From: Lance Semmens [mailto:[EMAIL PROTECTED]
Sent: 19 January 2006 17:16
To: [email protected]
Subject: RE: Custom name for return value

I thought I may be able to tell axis what name to use as the return value when it generates the WSDL and SOAP messages.
I'm having a look at the <operation> tag in the wsdd for the service to see if this can do what I'm after.
Will try your solution if I can't get it to work... hopefully I can.
From: Anne Thomas Manes [mailto:[EMAIL PROTECTED]
Sent: 19 January 2006 17:04
To: [email protected]
Subject: Re: Custom name for return value

Edit the WSDL and run wsdl2java.

On 1/19/06, Lance Semmens <[EMAIL PROTECTED]> wrote:
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 value

Is 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.



Reply via email to