Skip to Content
0
Former Member
Apr 15, 2005 at 01:07 PM

Problems with parsing SOAP response

26 Views

Hi there,

I have problems with the SOAP response message I get from a Web service call. Parsing the response throws the following exception:

java.lang.Exception: Error in message structure. SOAP:Header end tag is expected
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientSOAPMessage.loadHeaders
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientSOAPMessage.extractHeaders
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientSOAPMessage.initDeserializationMode
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.ClientMimeMessage.initDeserializationMode
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.handleResponseMessage
at com.sap.engine.services.webservices.jaxrpc.wsdl2java.soapbinding.MimeHttpBinding.call

The response message starts like this:

<SOAP:Envelope xmlns:SOAP='http://schemas.xmlsoap.org/soap/envelope/'>
  <SOAP:Header/>
  <SOAP:Body>
  ...

so I assume that the parser is a bit idiosyncratic with regard to the short empty Header tag (<SOAP:Header/> instead of <SOAP:Header></SOAP:Header>).

Is this a known issue? Is there a remedy?

Regards

Nils