Skip to Content
avatar image
Former Member

Build complex message within graphical mapping

Hello,

we have a required were we need to build a complex output structure based on a single graphical mapping.

Based on the incomeing message I need to call a web service within the mapping. The result of the web service then needs to be compared to the incomeing message. If the result of the message is included in the response of the webservice the related complete structure needs to be copied to the response payload.

How can I create a complex return structure for a whole message within on graphical mapping?

The return message looks like this:

In the mapping I currently only retune single values and don't know how to return a whole message:

regards

Christian

message.jpg (30.8 kB)
returnMessage.jpg (14.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Jan 15, 2015 at 10:49 AM

    Hello to all,

    I have found a suitable version useing a complete java mapping and JAXB:

    http://scn.sap.com/community/pi-and-soa-middleware/blog/2012/02/07/forget-sax-and-dom-java-mapping-just-got-cooler-with-jaxb-part-2

    With this approach the mapping is working. Thanks for your input.

    regards

    Christian

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jan 13, 2015 at 03:03 PM

    hi Christian,

    you can use UDF for the same.

    Whole Payload to a XML field - Process Integration - SCN Wiki

    or alternatively.

    Please check below blog to return entire xml in single field.

    Convert the Input xml to String in PI 7.1 using Standard Graphical Mapping

    Hope  this helps.

    thanks and regards,

    Praveen T

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hello Praveen,

      my requirement is the opposite. I have called the mapping for one target node and need to build all the other nodes of this message within the UDF.

      regards

      Christian

  • Jan 13, 2015 at 06:12 PM

    Hi Christian,

    Your requirement bit not clear for me. Could you rephrase your question in this way,

    incoming MessageĀ  --> call webservice (from mapping) --> webservice reponse (receive into mapping)

    etc..

    //BR,

    Praveen Gujjeti

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Christian,

        Which version of PI are you using? I suggest you go for BPM approach if you are still using dual stack.

      Regards

      Charan