Hi axis-users,
I have a simple Handler that extends BasicHandler and iterates over all
elements of the soap:Body.
SOAPEnvelope se= inMsg.getSOAPEnvelope();
SOAPBody body = se.getBody();
java.util.Iterator bodyIterator = body.getChildElements();
while (bodyIterator.hasNext()) {
element = (SOAPElement)bodyIterator.next();
name = element.getElementName().getQualifiedName();
log.debug ("Qualified element name:"+name);
This works well for the request message and display all the elements
correctly. However the response message is not outputted correctly. If I
output with
body.getValue()
it is printed correctly
<ns1:Body xmlns:ns1="http://schemas.xmlsoap.org/soap/envelope/">
<SalaryResponse
xmlns="http://www.suva.ch/schemas/20030722/SalaryDeclarationContainer">
(...continued)
However, if I print the elments with the above loop I only get an element
named 'SalaryRequestResponse' which I have never ever defined anywhere with
no child elements. It should instad read correctly 'SalaryResponse'.
I am stuck and have no idea where this comes from. Any input is appreciated.
This is a document/literal webservice
Thanks :)
--David