Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • avatar image
    Former Member
    Mar 23, 2017 at 07:48 AM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 23, 2017 at 01:38 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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.

  • avatar image
    Former Member
    Mar 23, 2017 at 01:38 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 28, 2017 at 07:04 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi ,

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

  • avatar image
    Former Member
    Mar 29, 2017 at 10:57 AM

    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

    Add comment
    10|10000 characters needed characters exceeded