cancel
Showing results for 
Search instead for 
Did you mean: 

Addition of custom Header parameters in receiver SOAP message in SAP PI

Former Member
0 Kudos

Hello ,

We are sending data to the vendor using web service in PI.(to a target url provided to us).

Our client wants that the below details should be configured in the Header parameter .

Name Description actionrequest This field should be set to “upload” userid xxx password yyy receiverid zzzz datatype Optional. Acceptable values are “EDI”, “XML” or “BINARY”. If not specified, a check will be performed against the data to determine this value. aprf Optional. Application reference. snrf Optional. Document control number. filename Optional. Original Filename of the document. Content-type Application/HTTPStream

Please help how can we send these details in header as some of these fields seem dynamically picked from sender payload . Can this be achieved with some standard SAP module ?

Regards,

Vaibhav

Accepted Solutions (0)

Answers (5)

Answers (5)

former_member203641
Participant
0 Kudos

Hi Vaibhav,

You might need to use SOAP Axis adapter on receiver side where in you can add the custom header parameters using module tab and following below faq of AXIS adapter.

https://service.sap.com/sap/support/notes/1039369

You might also need to get AXIS adapter configured on your PI server from your basis. Please refer below WIKI for more details

https://wiki.scn.sap.com/wiki/display/XI/SOAP+AXIS

Thanks,

Amit

iaki_vila
Active Contributor
0 Kudos

Hi everyone,

I think if you want a dynamic tags/values in the header you have two options:

1. DynamicConfiguration.

2. XSLT mapping. In this case you should use the SOAP adapter with the check Do Not Use SOAP envelope, in this way you can construct all SOAP structures.

Regards.

Former Member
0 Kudos

Hi ,

How do I achieve the dynamic configuration , first option using standard SAP modules . Could you please elaborate .

Former Member
0 Kudos

Hi Vaibhav,

You can use addSOAPHeaderBean for adding any static value in the Header of the SOAP Request.

In your case, you would like to pass the file name, which is a dynamic value. Try you can use this with another module to pass the Dynamic Values.

https://blogs.sap.com/2013/11/22/addsoapheaderbean-module/

with regards,

Nazeer

Former Member
0 Kudos

Hi Vaibhav,

You can use addSOAPHeaderBean for adding any static value in the Header of the SOAP Request.

In your case, you would like to pass the file name, which is a dynamic value. Try you can use this with another module to pass the Dynamic Values.

https://blogs.sap.com/2013/11/22/addsoapheaderbean-module/

with regards,

Nazeer

Former Member
0 Kudos

Yes , the problem here is dynamic values addition . Which module can help on this ?

we have a mix of static (hard coded) and dynamic( from the payload) values to be sent in the header , without any namespace.

Former Member
0 Kudos