hi, i cannot connect a webservice via a proxy. i tried this:
i don't know what's wrong, i get an exception "Unauthorized" in the last line of this code. without a proxy and the direct input of the URL in the last line it works fine ! thanks for help heiner [ January 02, 2003: Message edited by: heiner weilandt ]
Or, Delete the properties stuff in the code and simply execute like this, java -Dhttp.proxyHost=proxy.com -Dhttp.proxyPort=port classname.
Joined: Sep 10, 2002
thanks, the way with the parameters should work, but how can i set USER and PASSWORD ? and: how can i set the soap 1.2 - proxy ? can you give me an simple example ? thanks a lot [ January 14, 2003: Message edited by: heiner weilandt ]
You forget to set the properties back to System before you instantiate URL java.util.Properties prop = System.getProperties(); prop.put("proxySet","true"); prop.put("http.proxyHost","proxy.mycompany.com"); prop.put("http.proxyPort","8080"); System.setProperties(prop);