Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: WSS Authentication in SOAP header


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 0 Threads: [ Previous | Next ]
Thomas Müller

Posts: 7
Registered: 8/1/16
WSS Authentication in SOAP header  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Aug 28, 2017 2:21 AM
Hello,

I need authenticate in the soap header for a web service that I want to use.
I was able to use the web service in SoapUI by using a "username" and a "password" and setting "WSS-Password Type" to "PasswordText".
Here is the raw data that was sent:

POST ****
Accept-Encoding: gzip,deflate
Content-Type: text/xml;charset=UTF-8
SOAPAction: "****"
Content-Length: 1121
Host: ****
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.1.1 (java 1.5)

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:tem="http://tempuri.org/">
<soapenv:Header><wsse:Security soapenv:mustUnderstand="1" 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 wsu:Id="UsernameToken-****"><wsse:Username>****</wsse:Username><wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">****</wsse:Password><wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">1rg+YGrakMGaPUpTqO3vKg==</wsse:Nonce><wsu:Created>2017-08-28T09:11:10.773Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header>
<soapenv:Body>
<tem:****>
<****>
</tem:****>
</soapenv:Body>
</soapenv:Envelope>

How can I do this in the C++ Builder?

Best Regards
Thomas
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02