on 09-08-2006 9:37 AM
Hi,
I would like to preserve the Soap Header created by a client and access it in a mapping using the the Soap Sender Adapter (SP16). Does anybody know how to do this?
Kind regards,
Heiko
Hi Heiko,
just check on "Keep Headers".
Regards,
Udo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Udo,
I've done this and would expect to see the header of my Soap message somewhere in the message monitoring. But I can't find it. Do you possibly know where it would be located?
<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xs="http://www.w3.org/2001/XMLSchema">
<SOAP-ENV:Header SOAP-ENV:actor="test" />
<SOAP-ENV:Body>
...
Cheers,
Heiko
Hi,
Look into the Message Display tool and see what is the data that the webserivce is sending.
http://hostname:portnumber/MessagingSystem/monitor/monitor.jsp
Regards,
Bhavesh
Hi Heiko,
User defined functions are Java parts of Message Mappings. As I told you it could be difficult to use a message mapping. Access to runtime constants of configuration exist in every mapping kind. But in ur case i have some doubt's that this provides success. I assume that in the view of XI the SOAP header is now part of your payload - so you can extract the values with simple expressions of your mapping.
Regards,
Udo
Hello Udo,
I have found a solution to this problem. It is possible to add header entries to the DynamicConfiguration which is available by an API:
...
soapMsg.append("<SOAP-ENV:Header>");
soapMsg.append("<SAP:DynamicConfiguration xmlns:SAP=\"http://sap.com/xi/XI/Message/30\" xmlns:SOAP=\"http://schemas.xmlsoap.org/soap/envelope/\" SOAP:mustUnderstand=\"1\">");
soapMsg.append("<SAP:Record namespace=\"http://sap.com/xi/XI/System/SOAP\" name=\"SRmsUser\">test</SAP:Record>");
...
This code snip shows Java client code to add an element to the SOAP header which corresponds to the DynamicConfiguration. In XI it will be accessable using the respective API.
Cheers,
Heiko
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.