Skip to Content
0

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

Mar 23, 2017 at 07:37 AM

362

avatar image

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

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

5 Answers

Vaibhav Garg Mar 23, 2017 at 07:48 AM
0
Share
10 |10000 characters needed characters left characters exceeded
nazeer khan Mar 23, 2017 at 01:38 PM
0

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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.

0
nazeer khan Mar 23, 2017 at 01:38 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Iñaki Vila Mar 28, 2017 at 07:04 AM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi ,

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

0
Amit Valecha Mar 29, 2017 at 10:57 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded