I'm working with Lansa Integrator and in particular I'm defining a SOAP server using the SOAPServerService with some methods to call. I understand how to define the XML request and response body using the Integrator editor. Everything works well.
Now I need to read the authentication credentials from the Header part of the request. How can I read that from my rp?
For instance I have a request like this and I want to get the values inside the wsse:Username and wsse:Password tag:
Code: Select all
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.service.speak.hupac.com">
<soapenv:Header>
<wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:UsernameToken>
<wsse:Username>username</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">password</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
<soapenv:Header/>
<soapenv:Body>
<soap:getTerminalList>
</soap:getTerminalList>
</soapenv:Body>
</soapenv:Envelope>