Hi, I eventually got my clinet stubs all created and can send a correct SOAP
message off to the server but get hit with a 401 challenge.  This is correct
as the end point is protected.  However, I have not been able to work out
how to include credantials in the initial request or respond to the
challenge.  I have used WireShark to see what SoapUI sends and it responds
to the challenge with a reformatted message.  My original message is the
same as the original SoapUI one so I think my call is at least starting
correctly.

Now, I have been on google and many forums for days now trying to work out
what I am missing and have tried many different things.  I have tried
setting values in a cxf.xml, or trying to add credentials into the header at
runtime, or trying get a callback procedure to run.  Nothing has worked so
far.  The callback procedure is not getting called at all so I have
obviously not tied it in correctly.

Is there anyway to check if my cxf.xml is being used?  From my reading I
think that setting up an "http-conf:authorization" entry in there should do
the trick, either by specifically providing the password or at least the
callback reference.

What I am trying to do is very simple so I am asusming I have missed
something very basic.

I am using TOMCAT 7, Eclipse Helios, CXF 2.6.1. The webservice I am trying
to call is completely independent.

Any help would be appreciated.

--
View this message in context: 
http://cxf.547215.n5.nabble.com/how-to-respond-to-401-challenge-tp5710945.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to