cancel
Showing results for 
Search instead for 
Did you mean: 

SOAP Adapter Question

Former Member
0 Kudos

My scenario is PI receives an xml file from ECC and sends it out in a SOAP call to a third party.

I have added the WSDL as an external definition and performed all the setup to call the webservice and pass data. That all works fine. My issue is I need to send the xml I received from ECC to this third party. The WSDL contains 5 items, 4 text fields and a payload. The payload should contain the entire xml received from ECC.

How do I get this xml into the payload field? In my message mapping, I map the first 4 fields, but for the payload field, I'm not sure what to do. Any ideas?

Larry

Accepted Solutions (1)

Accepted Solutions (1)

baskar_gopalakrishnan2
Active Contributor
0 Kudos

What is your PI version if the version is 7.1 and above then you can use the option "return as xml" in the message mapping. Simple right click on the source message type and select option return as xml to return the entire payload message as xml and mapp to the target field.

Former Member
0 Kudos

Thanks Baskar, that worked perfectly. Although I had to replace all the < and >. Still worked though.

Answers (2)

Answers (2)

Shabarish_Nair
Active Contributor
0 Kudos

do you want to move an entire XML to a field?

if so check - http://wiki.sdn.sap.com/wiki/display/XI/WholePayloadtoaXML+field

Former Member
0 Kudos

You need to use XSLT mapping to achive this. getting the entire XML into one field in the target field.

If you are using 7.1, please refer

Edited by: Rajesh on Nov 23, 2011 4:39 PM

Edited by: Rajesh on Nov 23, 2011 4:43 PM