cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP envelope and PLAIN HTTP Adapter

Former Member
0 Kudos

Hello,

I'm using PLAIN HTTP ADAPTER for calling web service. There is option "Message Protocol: XI Payload in HTTP Body". I need to add SOAP Envelope into the HTTP Body. Not only payload. Is it possible? Could you advice to me how?

Now I'm able to send this message in HTTP body:

<?xml version="1.0" encoding="UTF-8" ?>

<n0:storeTerminalsAssignments xmlns:n0="http://webservice.xxxxx" xmlns:prx="urn:sap.com:proxy:xxxxx"><

....

</n0:storeTerminalsAssignments>

I need to send message such this:

<?xml version="1.0" encoding="UTF-8" ?>

<soapenv:Envelope

xmlns:n0="http://webservice.xxxxx/"

xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"

xmlns:xsd="http://www.w3.org/2001/XMLSchema"

xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<soapenv:Body>

<n0:storeTerminalsAssignments>

....

</n0:storeTerminalsAssignments>

</soapenv:Body>

</soapenv:Envelope>

Accepted Solutions (1)

Accepted Solutions (1)

udo_martens
Active Contributor
0 Kudos

Hi Zbynek Kabrt,

you can create the SOAP envelope inside the mapping and use later the http receiver adapter to send it to SOAP receiver. The easiest way is an XSLT Stylesheet, where you just type in the envelope as static part and map the message content with

<xsl:copy-of select="//ns0:storeTerminalsAssignments"/>

. This mapping can be executed as a second inside a operational mapping.

Regards,

Udo

Former Member
0 Kudos

Thanks a lot!

That's exactly what I needed.

Best regards

Zbynek

Answers (0)