Re: HTTP proxy problem

From: Alessio Cervellin <>
Date: Thu, 14 Apr 2005 19:36:59 +0200 wrote:
> Hi,
> I have recently developed a simple web service which I published and
> which is now available on the net.
> My problem is that I must build a client of that WS being behind an HTTP proxy.
> I've noticed that the wscompile provide a -httpproxy option but it
> doesn't seems to work.
> None of all the generated classes, including the Stubs, reffers to the
> HTTP proxy I setted up.
> I've used the syntax "-httpproxy:http://MyProxyName:MyProxyPort" for
> the wscompile option.
> The wscompile tools generates all the classes and raises no
> exceptions. But the execution of the client fails raising a
> ConnectException :

The -httpproxy option is used by wscompile only at compile-time to
search on the internet for any imported schema eventually defined in
your wsdl.
When yopu run your client instead, you should provide the needed http
proxy settings by passing them at the JVM with some system properties
(eg: -Dhttp.proxyHost=your_host -Dhttp.proxyPort=your_port
For further details see here: