Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problem Authenticating a HTTP SOAP requet

 
Manak Pushkarna
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic