Hi,

I'm trying to write a small client to access a webservice written in .Net
but I'm having trouble doing this successfully.

I've generated the client code using wsdl2java - when running the auto
generated main() function I get:

Exception in thread "main"
com.sun.xml.internal.ws.client.ClientTransportException: request requires
HTTP authentication: Unauthorized

The problem obvious is that I somehow need to add the username and password.

I see the following at the top of the wsdl file from which the client code
is generated:

<wsp:Policy wsu:Id="BasicHttpBinding_MyCustomerService_policy">
<wsp:ExactlyOne>
<wsp:All>
<http:NegotiateAuthentication/>
</wsp:All>
</wsp:ExactlyOne>
</wsp:Policy>

What steps do I have to go through to enable the NegotiateAuthentication in
the client code?

I've of course googled for some time now, but not many hits come up when I
search for NegotiateAuthentication.

Any help is much appreciated,

Thanks

Simon 
-- 
View this message in context: 
http://www.nabble.com/Accessing-webservice-written-in-.Net-using-CXF-client-with-http%3ANegotiateAuthentication-tp21311978p21311978.html
Sent from the cxf-user mailing list archive at Nabble.com.

Reply via email to