• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

Adding Basic Authetication to SOAP Message

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Roses are red, violets are blue. Some poems rhyme and some don't. And some poems are a tiny ad.
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic