You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Th...@GAD.de on 2002/04/15 17:43:58 UTC

Proxy-Authorization

Hello,

How can i access a WebService when i need a Proxy-Authorization with Axis ?

I try to use :

 System.getProperties().put("proxySet","true");
 System.getProperties().put("http.proxyHost","xx.xx.xx.xxx");
 System.getProperties().put("http.proxyPort","xxxx");

 String authString = "username:password";
 String auth = "Basic " + new sun.misc.BASE64Encoder
       ().encode(authString.getBytes());

 URL url = new URL("http://url.to.webservice/");

 URLConnection conn = url.openConnection();
 conn.setRequestProperty("Proxy-Authorization", auth);

But there is no way to set a URLConnection to the Call-Objekt, is´n it ?

Please help me ?????

Thomas Langer
GAD - Germany