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 Tabrez Nadeem <ta...@gmail.com> on 2007/12/17 19:53:01 UTC

Re: Soap response without type xml tag

The following is the soap response i got from a webservice running on axis2

<?xml version="1.0" encoding="utf-8"?>
<soapenv:Envelope xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/
">
  <soapenv:Body>
    <ns:RegistrationStep1Response xmlns:ns="http://webservices.sample.com">
      <ns:return xmlns:ax21="http://sim.equifax.com/xsd" *type="
com.sample.sim.ResponseSIM"*>
        <ax21:message>Auth Failed</ax21:message>
        <ax21:reasonCode>FL</ax21:reasonCode>
        <ax21:statusCode>
        </ax21:statusCode>
      </ns:return>
    </ns:RegistrationStep1Response>
  </soapenv:Body>
</soapenv:Envelope>


the return tag contains xml tag '*type="com.sample.sim.ResponseSIM"'*. Due
to this the Siebel server is not able to process the responce it received..

The same webservice when deployed on netbeans5.5 provided Sun server gives
me the following response

<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenv=" http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:ns1="http://webservices.sample.com/
">
  <soapenv:Body>
    <ns1:RegistrationStep1Response>
      <return>
        <message>Auth Accepted</message>
        <reasonCode>CO</reasonCode>
        <statusCode>
        </statusCode>
      </return>
    </ns1:RegistrationStep1Response>
  </soapenv:Body>
</soapenv:Envelope>

this does not contain any type xml tag.. and my Siebel is able to process
the response

Can we remove the type xml tag from the SOAP respone received from Axis

Thanks..