cancel
Showing results for 
Search instead for 
Did you mean: 

Problems with parsing SOAP response

Former Member
0 Kudos
53

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

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

Hi Nils,

I solved the same situation.

See a solution in the note 769546.

The solution is an up-grade SP10 later.

Best Regards,

Shunichiro