cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP adapter: convert XML body in a string ( '<' '>' to '<' '>'

Former Member
0 Kudos

Hi experts:

Iu2019ve a difficult issue:

I want to send a SOAP message to a thirdparty environment ,this environment requieres a special format of the message; iu2019ll put a sample:

< SOAP:Body >

< ns0:application xmlns:ns0=u201Dhttp://xxxxxx/yyyyyyy.com/zzzzu201D >

< in0>

< inputMessage >

< request>name </request >

< versionMsg>x.0

u2026u2026u2026u2026..

< /parameters >

< /inputMessage>

This is the meesage that i process with PI. Then when it arrives to the other environment should be as this one:

u201C< SOAP:Body >

< ns0:application xmlns:ns0=u201Dhttp://xxxxxx/yyyyyyy.com/zzzzu201D>

< in0>

&lt;inputMessage&gt;

&lt;request&gt;name&lt;/request&gt;

&lt;versionMsg&gt;x.0&lt;/versionMsg&gt;

etc etc etcu2026u2026.u201D

I know that is possible to escape the data whit the XI Payload Manipulation if u use a HTTP adapter, but this option doesnu2019t exist in SOAP adapter. Some one knows how to change these body fields in the SOAP envelope?

Thanks in advance and best regards.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

SAP hasn't a standard solution for this issue, so it has been solved whith a handler in the thirdparty environment, so it has done the integration whit PI but not in the other way.

Former Member
0 Kudos

FYI there is a trick to escape XML to string format:

1) Right click your source data type in mapping and choose "Return as XML"

2) Concat a string (space) to the front of this XML and then trim it back off.

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

There is no standard solution for this.

You have to create a Java mapping for escaping.

Former Member
0 Kudos

Thanks for your response. The web has changed the data < should be & lt and > = & gt .

I have found some other solutions in sdn, as /people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping but somethings aren't clear at all.