Skip to Content
1
May 08, 2012 at 11:01 PM

Soap Adapter request header

153 Views

We are tyring to figure out how to read information in the request header and use it in the SOAP services we have created on PI. The caller sets accept-language and we are supposed to read this out to determine the language to use in responses.

I have been attempting this using ASMA by clicking the check boxes for Set ASMA and Variable Transport binding. I then set the name of the header attribute I want, and try to read it out with a piece of java in the mapping.

I have used ASMA's with other adapters, but not with SOAP. Am I interpreting the documentation incorrectly?

Example raw message:

POST http://someserver:53000/XISOAPAdapter/MessageServlet?senderParty=&senderService=WEBSERVICES_DEV&receiverParty=&receiverService=&interface=SRCheck&interfaceNamespace=urn:stuff.com/ws/customer HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "http://sap.com/xi/WebService/soap1.1"
Accept-Language: en-US
Authorization: Basic

User-Agent: Jakarta Commons-HttpClient/3.1
Host: mancala:53000
Content-Length: 276

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:cus="urn:nuskin.com/ws/customer">
<soapenv:Header/>
<soapenv:Body>
<cus:SRCheckRequest>
<ID>BE1111111</ID>
</cus:SRCheckRequest>
</soapenv:Body>
</soapenv:Envelope>