April14

SAP PI Dynamic SOAP Action Setting

Usually we can only set one SOAP Action in the communication channel (AKA CC). But in real senario, we may meet such issue, we have to sending different messages via one CC, due to the receiver only have one web services binding with many operations and using different actions to handle the operations.


In PI SOAP Adapter (soap 1.1 with standard adapter), we may setting the dynamic configurations of adapters variables by UDF.

2016-04-14_11-06-49.png

In UDF, we create a DynamicConfigrationKey as "THeaderSOAPACTION", namespace using "http://sap.com/xi/XI/System/SOAP".

And assign the action name as value of this key, for example "http://tempuri.org/ABC".

The in IR, we create a CC, type of SOAP (receiver)

2016-04-14_11-11-31.png

Check the option "Use Adapter-Specific Message Attributes" - which is for the dynamic attributes in SOAP Header setting by Adapter.

Check the option "Variable Transport Binding" - which is for HTTP header setting.

https://help.sap.com/saphelp_nw73/helpdata/en/48/327519a3af58d8e10000000a421937/frameset.htm

We can also set the servcie URL dynamically via "TServerLocation" variable.

本篇文章已有0条评论