on 11-24-2011 11:24 AM
i am new in pi, Can u explain how to create the multiple operations at receiver side.
hi k dasari ,
We have two approaches to handle the Multiple Operations at Soap Receiver Side.
Those are
Approach 1: Statically
Based on the number of Operations we have to create those many Service Interfaces and Receiver Communication channels and Receiver Agreements.
Adv: donu2019t need to create any udf.
Dis.adv: If we have create multiple Operations then we need to create multiple Service Interfaces and Receiver Communication Channels and Receiver Agreements.
Approach 2: Dynamically
By Creating Single Service Interface with multiple operations and Single Receiver Communication Channel and Receiver Agreement we can achieve this.
In the Second Approach we are going to use Dynamic Configuration Concept to get the Soap Action Dynamically from the Mapping.
Adv: we donu2019t need to create multiple comm...Channels and agreementsu2026
thanks,
sankar.s
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI,
For this, we have to fill the TargetURL and the SOAPAction in Receiver Communication channel dynamically.
So, we need to write UDF in Message Mappings using DynamicConfiguration to fill the TargetURL and the SOAPAction Dynamically.
DynamicConfigurationKey keyURL = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","THeaderSOAPACTION");
DynamicConfigurationKey targetURL=DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","TServerLocation");
// access dynamic configuration
DynamicConfiguration conf = (DynamicConfiguration) container
.getTransformationParameters()
.get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
conf.put(keyURL,"Soap action");
conf.put(targetURL,"target url");
return "";
In this UDF, we are filling the TargetURL in u201CTServerLocationu201D message attribute and SOAPAction in u201CTHeaderSOAPActionu201D message attribute.
So, whenever we execute this corresponding operation these values will be filled in receiver communication channel at runtime.
TargetURL- Give some dummy URL or http://
SOAPAction - *
regards,
ganesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.