Skip to Content
author's profile photo Former Member
Former Member

SOAP Adapter Question

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Nov 23, 2011 at 03:55 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 23, 2011 at 03:36 PM

    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 SAP PI 7.1 Mapping Enhancements Series: Copy XML Subtree

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

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 23, 2011 at 03:40 PM

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

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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.