Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

SOAP Envelope encodingStyle

Hi experts,

I have a PI SOAP Receiver, sending to a Java Powerbuilder app. I am getting an HTTP 200, but with an error message in SXMB_MONI:

<SAP:Category>XIAdapterFramework</SAP:Category>

<SAP:Code area="MESSAGE">GENERAL</SAP:Code>

<SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: java.lang.NullPointerException; HTTP 200 OK</SAP:AdditionalText>

When I execute the same scenario using soapUI instead of PI, using the same SOAP Payload, I get no SOAP body, only this HTTP Response (HTTP 200 OK as well):

" No mapping found for 'class java.lang.String' using encoding style 'http://xml.apache.org/xml-soap/literalxml' "

When I change the Payload slightly in soapUI, ie. adding an encodingStyle attribute to the SOAP Envelope, I get the expected response message ("Test OK").

To summarize:

PI sends this SOAP Envelope, which the remote app cannot accept (no mapping found):

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">

When the SOAP Envelope is modified like below, the test is ok:

<SOAP:Envelope xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"

SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">

Any ideas how I can add an encodingStyle attribute ?

kr,

Peter Glas

Former Member
Former Member replied

An sdn search gave me this thread to create custom SOAP envelop

Generating SOAP Envelope when DO NOT USE ENVELOPE option is marked

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question