• Post Reply Bookmark Topic Watch Topic
  • New Topic

Soap and Body tags encapsulated twice in the response in axis2

 
Sandy Marar
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to run a apache axis2 webservice client and Im getting thrown an exeption like given below

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://schemas.xmlsoap.org/soap/envelope/}Body
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)


Here is the wsdl for the webservice




Following are the soap request and response packets from soap ui

SOAP REQUEST


SOAP RESPONSE


But by the time the response is reaching the client stub, stub receives it
as follows

<?xml version='1.0' encoding='utf-8'?>
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
<soapenv:Body>
<soapenv:Envelope>
<soapenv:Body>
<ns:authenticateResponse xmlns:ns="http://wtp">
<ns:return>1</ns:return>
</ns:authenticateResponse>
</soapenv:Body>
</soapenv:Envelope>
</soapenv:Body>
</soapenv:Envelope>


Here the Soap and Body are encapsulated twice

As a result of this, client stub is unable to parse and throwing the
following error.

org.apache.axis2.AxisFault: org.apache.axis2.databinding.ADBException: Unexpected subelement {http://schemas.xmlsoap.org/soap/envelope/}Body
at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!