Skip to Content

Reading Header data in a SOAP Envelope for SOAP Sender Adapter

Hello All,

Am using a SOAP sender adapter and want to use the data inside the SOAP Header for some routing purpose(extended receiver determination). Any SOAP message coming into XI will look something like below. But XI will pass the contents of <SOAP-ENV:Body> to Payload and <SOAP-ENV:Header> to the SOAP Header category you can see that in SXMB_MONI.

Is there a way to read the data in my SOAP Header to be later used in my extended receiver determination.

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:Q-ENV="/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
	<SOAP-ENV:Header>
		<Q-ENV:Header>
			<Q-ENV:Sender-Id>1</Q-ENV:Sender-Id>
			<Q-ENV:Receiver-Id></Q-ENV:Receiver-Id>
			<Q-ENV:Correlation-Id></Q-ENV:Correlation-Id>
			<Q-ENV:Message-Id></Q-ENV:Message-Id>
			<Q-ENV:Date-Sent></Q-ENV:Date-Sent>
			<Q-ENV:Document-Type></Q-ENV:Document-Type>
			<Q-ENV:Message-Format></Q-ENV:Message-Format>
		</Q-ENV:Header>
	</SOAP-ENV:Header>
	<SOAP-ENV:Body>
		<Q-ENV:Body>
			<Q-ENV:Content-Type>text/xml</Q-ENV:Content-Type>
			<Q-ENV:Message-Type></Q-ENV:Message-Type>
			<Q-ENV:Encoding>UTF-8</Q-ENV:Encoding>
			<Q-ENV:Message-Body>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

Thanks for your replies in advance.

Regards,

Prashanth

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Best Answer
    Jan 20, 2012 at 07:18 AM

    Hi,

    Check chapter: "4. Define Conversion Parameters" in the help document here:

    http://help.sap.com/saphelp_nw73/helpdata/en/48/3555240bea31c3e10000000a42189d/content.htm

    Hope this helps,

    Greg

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 20, 2012 at 09:04 AM

    Hello,

    Going through the link that Grzegorz provided, you can try using option 1. That way, the whole SOAP envelope is read (the header and body) are placed in the payload and not separated as what you have described.

    Hope this helps,

    Mark

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Mark,

      True usually they get a empty SOAP response back can see that when I test in SOAP UI, but with the above config they are not getting any response. May be HTTP 200 Ok message is something that they will receive and they cannot do much with that.

      Regards,

      Prashanth