Forums Register Login

Adding Basic Authetication to SOAP Message

+Pie Number of slices to send: Send
I want to add a userid and password to my HTTP header when I am using SOAPto call a web service.
I am sending my SOAP message (web service) using message.send(). This doesn't accept any arguments for user id and password. However, the send() method instantiates a SOAPHTTPConnection object which does have a setUserName() and setPassword() method. These end up in the HTTP Header collection. However, when message.send calls the SOAPHTTPConnection.send() method it sets the Headers parameter to null.
So I do I get the username and password in the SOAP message for Basic Authentication? I don't think that creating a SOAPHTTPConnection object in my code would work since message.send() creates a new one.
Any help would be appreciated.
Thanks,
Dave
Sometimes you feel like a nut. Sometimes you feel like a tiny ad.
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1096 times.
Similar Threads
SOAP authorization problem
Axis2 BASIC AUTHENTICATION
Basic authentication soap header values?
Web Service SOAP exception when security access denied.
Prob. logging in calling a Webservice on Dot-net server
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:40:44.