Hi,
i generated the client code with the wsdl2java from an existing wsdl.
now i want to connect to this service (it is an axis 1 webservice). the
service ist protected with a http basic authentication. i use the following
code, but it doesnt work :-(
INFOServiceService ss = new INFOServiceService(SERVICE_URL, SERVICE_NAME);
Client client = ClientProxy.getClient(ss.getINFOService());
HTTPConduit httpConduit = (HTTPConduit) client.getConduit();
httpConduit.getAuthorization().setUserName("username1");
httpConduit.getProxyAuthorization().setUserName("username1");
INFOService service = ss.getINFOService();
//do somthing with service
Where is the mistake?
Thanks for your help!
Axel
PS: the serverside (axis1) code to get the auth parameter is:
String username = MessageContext.getCurrentContext().getUsername();
--
View this message in context:
http://www.nabble.com/HTTP-Basic-Auth-with-wsdl2java-generated-Client-tf4148070.html#a11800307
Sent from the cxf-user mailing list archive at Nabble.com.