Watch, Follow, &
Connect with Us

Welcome, Guest
Guest Settings

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

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="" xmlns:tem="">
<soapenv:Header><wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="" xmlns:wsu=""><wsse:UsernameToken wsu:Id="UsernameToken-****"><wsse:Username>****</wsse:Username><wsse:Password Type="">****</wsse:Password><wsse:Nonce EncodingType="">1rg+YGrakMGaPUpTqO3vKg==</wsse:Nonce><wsu:Created>2017-08-28T09:11:10.773Z</wsu:Created></wsse:UsernameToken></wsse:Security></soapenv:Header>

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

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

Server Response from: ETNAJIVE02