cancel
Showing results for 
Search instead for 
Did you mean: 

Add Soap Header to XML

sendhil_kumar
Active Participant
0 Kudos

Hi,

I need to add Soap Header to the xml generated by the mapping.

Scenario : Proxy to JMS.

Payload Generated:

 

Expected Payload:

I should encapsulate the payload within Soap Envelope with Header details and Soap Body should contain the payload generated (Highlighted in Yellow). This can be done by XSLT? If so, Can you please guide me with the Code. Or Suggest any another approach.

--

Sendhil

Accepted Solutions (1)

Accepted Solutions (1)

former_member184720
Active Contributor
0 Kudos

Is the header always the same(constant)? If so check this -

Other approaches - SCN search

sendhil_kumar
Active Participant
0 Kudos

Hi Hareesh,

AddSOAPHeaderBean will add only soap Header inside Soap Envelope. Is this understanding correct? I Would need Soap Envelope also to be added.

Other approaches specified here and Raghu's Approach, I will try them out now.

Please let me know if any other inputs which could help me here

--

Sendhil

Answers (2)

Answers (2)

iaki_vila
Active Contributor
0 Kudos

Hi Sendhil,

I've noticed that you are using wsse security in the SOAP protocol, i don't know how are you thinking to deal with this but i think you should read carefully this blog http://scn.sap.com/people/rajendra.badi/blog/2011/08/24/configuring-wsse-digital-signing-and-encrypt... and to think don,'t create the wsse at mapping level, if your receiver system is going to use that tags to validate the message.

Regards.

RaghuVamseedhar
Active Contributor
0 Kudos

Sendhil,

Below blog has details on how to wrap XML with SOAP Envelope using XSLT.