I think I found the answer. At least the message now seems to get passed to
the end point without a 401 challenge. I am getting a 500 returned but I
guess thats an error coming from the server itself after it starts to
process the message so I will have to look at my message content.
This is all I needed to add to the code ...
BindingProvider bp = (BindingProvider) port;
bp.getRequestContext().put(BindingProvider.USERNAME_PROPERTY,
"username");
bp.getRequestContext().put(BindingProvider.PASSWORD_PROPERTY,
"password");
I put it just after what i had already ...
ASyncService service = new ASyncService();
ASyncServicePortType port = service.getASyncServiceSOAP11PortHttp();
--
View this message in context:
http://cxf.547215.n5.nabble.com/how-to-respond-to-401-challenge-tp5710945p5710946.html
Sent from the cxf-user mailing list archive at Nabble.com.