Forums Register Login

Soap and Body tags encapsulated twice in the response in axis2

+Pie Number of slices to send: Send
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)
New rule: no elephants at the chess tournament. Tiny ads are still okay.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1447 times.
Similar Threads
Edit Soap tags response using Axis2 in eclipse
Problem with Java Collections and Axis2
namespace mismatch in webservice
How to obtain more than one Response from a Web Service
Axis 2 problems
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 01:37:40.