I have a difficulty in getting the response message in Axis 1.3 for a request on Tomcat 4.1.
 
Axis changes the response element name to  <request-element-name>Return,
regardless of what it said in the WSDL.( My incoming xml root elemnt name is "OTA_PingRQ" and  my response xml root elemnt name is "OTA_PingRQReturn".)
Is this a default setting for axis ? If So, How can we manipulate this behaviour ?

Request, Reponse and part of the wsdl are below.
Do you have any idea How we can solve this issue ?




<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" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" >
   <soap:Header>
       ...
   </soap:Header>
   <soap:Body>

       <OTA_PingRQ sequenceNmbr="1" timeStamp="1" xmlns="http://otabase.otapax">
           <echoData xmlns="http://194.140.227.17/axis/services/OTA">are you there !!!</echoData>
       </OTA_PingRQ>

   </soap:Body>
</soap:Envelope>



<?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>

<OTA_PingRQReturn ns1:sequenceNmbr="0" ns1:timeStamp="1" xmlns="http://otabase.otapax" xmlns:ns1="http://www.hititcs.com/TestRecep" >
<echoData xmlns="">I am here </echoData>
</OTA_PingRQReturn>

</soapenv:Body></soapenv:Envelope>


<complexType name="OTA_PingRQType">

    <sequence>
<element name="echoData" type="xsd:string"/>
</sequence>
<attribute name="sequenceNmbr" type="xsd:int"/>
<attribute name="timeStamp" type="xsd:string"/>
</complexType>

    <complexType name="OTA_PingRSType">

    <sequence>
<element name="echoData" type="xsd:string"/>
</sequence>
<attribute name="sequenceNmbr" type="xsd:int"/>
<attribute name="timeStamp" type="xsd:string"/>
</complexType>

<element name="myPingMethodReturn" type="impl:OTA_PingRSType"/>

<wsdl:message name="myPingMethodResponse">
<wsdl:part element="impl:myPingMethodReturn" name="myPingMethodReturn"/>
</wsdl:message>


<wsdl:operation name="myPingMethod" parameterOrder="OTA_PingRQ">
<wsdl:input message="impl:myPingMethodRequest" name="myPingMethodRequest"/>
<wsdl:output message="impl:myPingMethodResponse" name="myPingMethodResponse"/>
</wsdl:operation>


Thanks ,
Recep Ayaz

Reply via email to