Thanks Dan !!
I do it by something like this:
import org.apache.cxf.endpoint.Client;
import org.apache.cxf.frontend.ClientProxy;
import org.apache.cxf.transport.http.HTTPConduit;
import org.apache.cxf.transports.http.configuration.HTTPClientPolicy;
.....
Authenticator.setDefault(new Authenticator() {
@Override
protected PasswordAuthentication
getPasswordAuthentication() {
return new PasswordAuthentication("mylogin",
"secretpwd"
.toCharArray());
}
});
Service service = new MyService();
Port myport= service.getPort();
Client client = ClientProxy.getClient(myport);
HTTPConduit http = (HTTPConduit) client.getConduit();
HTTPClientPolicy httpClientPolicy = new HTTPClientPolicy();
httpClientPolicy.setConnectionTimeout(1000);
httpClientPolicy.setAllowChunking(false);
httpClientPolicy.setAutoRedirect(true);
http.setClient(httpClientPolicy);
InParam params = new InParam ();
.....
OutParam reponses = myport.getMyMethod(params);
--
View this message in context:
http://cxf.547215.n5.nabble.com/Digest-Authentification-CXF-IIS-Java-1-5-tp5309180p5432853.html
Sent from the cxf-dev mailing list archive at Nabble.com.