on 05-07-2015 5:38 PM
Hi All,
I have scenario (IDOC to SOAP) I am sending data and I am getting successful message in PI but from client side getting error below mentioned.
HTTP/1.0" 500 225 "-" "SAP-Messaging-com.sap.aii.af.sdk.xi/1.0505"
But through SOAP UI we can send the data successfully if we add header info below mentioned
but question is where we can give these Header and value details in SAP side.
I have mentioned SOAP adopter like below.
Cheers
Hi Charan,
But through SOAP UI we can send the data successfully if we add header info below mentioned
This is not a part of the SOAP Header but rather HTTP Header. You can add the subdomain as a part of the HTTP Header by checking Variable header in the ASMA part of the channel. You then need to enter it in XIHeaderName1 (Technical Name: XHeaderName1), something like this
The value of subdomain which is distributor, can only be set by using dynamic configuration.
Regards,
Mark
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Charan,
You use dynamic configuration in a UDF to achieve your requirement. A sample code might be:
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/SOAP","XHeaderName1");
conf.put(key,"distributor");
Regards,
Mark
Hi Charan,
Can we send HTTP header request with SOAP Adopter?
AFAIK you can't change HTTP header from SOAP adapter, but you can change it with dynamic configuration + http adapter, check William Li's blog
Regards.
>>>>but question is where we can give these Header and value details in SAP side.
If you would like to add a custom soap header in SAP PI then all options are discussed here -
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.