Hi

 

I am having a very basic question about Axis. It really seems like a bug or otherwise I am not missing something. I have a very simple web service deployed on Axis 1.2 with only one method: sayHelloToMe which takes in a person’s name as input and returns “Hello <person name>” string as a response. Following is the snippet of the WSDL file (as generated by Axis when I access the wsdl using serviceName?wsdl)

 

WSDL Types for request and response

 

<wsdl:types>

  <schema elementFormDefault="qualified" targetNamespace="http://localhost:8081/axis/services/HelloWorldService" xmlns="http://www.w3.org/2001/XMLSchema">

   <element name="sayHelloToMeReturn" type="xsd:string"/>

  </schema>

  <schema elementFormDefault="qualified" targetNamespace="http://helloworldsample" xmlns="http://www.w3.org/2001/XMLSchema">

   <element name="me" type="xsd:string"/>

  </schema>

 </wsdl:types>

 

Input message

   <wsdl:message name="sayHelloToMeRequest">

      <wsdl:part element="tns1:me" name="me"/>

   </wsdl:message>

 

Output message

   <wsdl:message name="sayHelloToMeResponse">

      <wsdl:part element="impl:sayHelloToMeReturn" name="sayHelloToMeReturn"/>

   </wsdl:message>

   <wsdl:portType name="HelloService">

 

Operation

      <wsdl:operation name="sayHelloToMe" parameterOrder="me">

         <wsdl:input message="impl:sayHelloToMeRequest" name="sayHelloToMeRequest"/>

         <wsdl:output message="impl:sayHelloToMeResponse" name="sayHelloToMeResponse"/>

      </wsdl:operation>

   </wsdl:portType>

 

According to this WSDL, the response I get from the server to this web service call should be: <sayHelloToMeReturn>Hello input</sayHelloToMeReturn>

 

However, when I checked using the SOAP monitor – I get the response <meReturn>Hello input</meReturn>. Note that, meReturn is no where mentioned in the WSDL document. The only logical explanation is that Axis is appending a “Return” to the input parameter “me”. The namespace of the response is also the same as the request (where as in the WSDL the two namespaces are different).

 

This seems like a major bug – or am I missing something? Is there a workaround for this problem? Is this problem fixed in later versions of Axis?

 

Thanks,

Arati

DISCLAIMER ========== This e-mail may contain privileged and confidential information which is the property of Persistent Systems Pvt. Ltd. It is intended only for the use of the individual or entity to which it is addressed. If you are not the intended recipient, you are not authorized to read, retain, copy, print, distribute or use this message. If you have received this communication in error, please notify the sender and delete all copies of this message. Persistent Systems Pvt. Ltd. does not accept any liability for virus infected mails.

Reply via email to