aspose file tools*
The moose likes Web Services and the fly likes Problem Authenticating a HTTP SOAP requet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Problem Authenticating a HTTP SOAP requet" Watch "Problem Authenticating a HTTP SOAP requet" New topic
Author

Problem Authenticating a HTTP SOAP requet

Manak Pushkarna
Greenhorn

Joined: Jan 12, 2006
Posts: 1
Hi,
I am a newbei in SOAP. When I try to send a soap request over HTTP, it throws java.security.PrivilegedActionException: com.sun.xml.messaging.saaj.SOAPExceptionImpl: Bad response: (401Authorization Required). I need to set a HTTP header "Authorization:Basic", and I cannot go for java.net.Socket class as the response will not be a SOAP message. Please advise.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
I removed the original response, because I added a section in Web Services FAQ
on how to do this using either JAX-RPC or a SOAPConnection.
[ January 13, 2006: Message edited by: Ulf Dittmer ]

Ping & DNS - my free Android networking tools app
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Problem Authenticating a HTTP SOAP requet