cancel
Showing results for 
Search instead for 
Did you mean: 

Sender SOAP adapter: get soap header data

Former Member
0 Kudos
57

Hi,

I've been going through various posts and blogs here on SDN + looked in the how to guide for SOAP adapter, but still find it quite difficult to actually find out how to do it. I've tried to follow recommendations seen, but it doesn't add up.

So can someone please tell me how to get an element situated in the SOAP header of the request sent to XI via sender soap adapter?

Let's for instance say the request looks like this:

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">

<SOAP-ENV:Header>

<SSN>1234567890</SSN>

</SOAP-ENV:Header>

<SOAP-ENV:Body>

<event>

<elem1>data 1</elem1>

<elem2>data 2</elem2>

<elem3>data 3</elem3>

</event>

</SOAP-ENV:Body>

</SOAP-ENV:Envelope>

How can I get the data in the SSN-header element at mapping time?

I'm sure this can be done by using adapter modules as the first step adapter, but I prefer doing it at mapping time if possible.

Best Regards,

Daniel

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

I solved it on my own now. My missing link was the fact that I'm using XMLSPY to send request and thus need to replace all '&amp;' with & in Connection Endpoint.

Message was edited by:

Daniel Engsig-Karup