Skip to Content
avatar image
Former Member

Insert SOAP Header custom elements in SOAP Receiver Adapter

Hi,

I am trying to insert custom elements in the SOAP Header of a message over SOAP Receiver Adapter.

I am able to insert it using this procedure:

Where first Parameter Name is like "MyElement" and Parameter Value is like "<nso:MySubElement>value</nso:MySubElement>", and namespace is some particular.

Using an UDF in a message mapping I can put in XHeaderName1, of SOAP ASMA, the correct value dynamically. My need is to change/replace the value of the custom element fixed value (red square) with value passed by DynamicConfiguration (blue square).

I think I could use a custom module created in java, but I need to know if there are another alternatives to do it. I was thinking in an alternative using a XSLT mapping or if it's possible using another UDF, java library on UDF or something like that.

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Best Answer
    Jul 24, 2016 at 03:11 PM

    Hi Leonardo,

    No need to go for custom module. you can easily do it using Java mapping. Use multi mapping in your OM. Complete your Graphical Mapping to create soap body. Then use Java mapping . Use InputStream to take value from the Graphical MM and create complete Soap message in Java mapping including your custom soap envelop.

    Follow this url. This one is for sales force integration but you can modify this as per your requirement -

    SFDC Integration using PI 7.1 - How to add SOAP Envelope in Java Mapping - Process Integration - SCN Wiki

    Thanks,

    Apu

    Add comment
    10|10000 characters needed characters exceeded