cancel
Showing results for 
Search instead for 
Did you mean: 

MultiMapping and XSLT

sendhil_kumar
Active Participant
0 Kudos

Hi,

I have used a graphical multi mapping which splits the messages into two, based on the data.

Now there is a need to add additional custom soap envelope for each message. When I add the XSL mapping in Operation mapping after this multimap, I see that the XSL is not called.

Can the XSLT mapping be used after graphical message mapping, If yes, can you please guide how it can be done. TIA.

--

Sendhil

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member186851
Active Contributor
0 Kudos

yes you can use XSLT after Graphical mapping.

1. Do your Graphical mapping.

2.Then Add Soap Enevelope (Refer below blog)

https://simonlesflex.wordpress.com/2011/01/26/sap-pi-customize-message-with-xslt-mapping/

If you still face any issue please post the same.

RaghuVamseedhar
Active Contributor
0 Kudos

Sendhil,

In your case, you can not add XSLT map (to add SOAP envelope) after multi-mapping.

Try to write a Java Mapping OR XSLT mapping  which will add SOAP XML envelope below Message1.

Each Multi-Mapping program should create following envelope:- Multi-Mapping using Java Mapping - Process Integration - SCN Wiki

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

<sm:Messages xmlns:sm="http://sap.com/xi/XI/SplitAndMerge">

                <Message1> <MT_type>Payload1</MT_type> </Message1>

                <Message2> <MT_type>Payload2</MT_type> </Message2>

                <Message3> <MT_type>Payload3</MT_type> </Message3>

</sm:Messages>

Former Member
0 Kudos

Yes it is totally possible to use XSL after Message Mapping. But if you are using XSL to add the SOAP envelope, you should configure your SOAP Receiver Adapter to not add SOAP Envelope to the result message (there is a checkbox for that)!