There are two ways that MIGHT get this to work:
1) Edit the wsdl2java script to pass the standard proxy system properties.
Under normal circumstances, the wsdl/xsd stuff uses the normal
HTTPUrlConnection. Thus, something like:
-Dhttp.proxyHost=myproxyhost -Dhttp.proxyPort=port
may work.
2) With the LATEST release (2.1.4), you MAY be able to get this this to work
by providing a cxf.xml config file that configures a http-conduit with the
proxy settings. In 2.1.4, if the normal HTTPUrlConnection doesn't work, we
drop down to using our conduits. 2.1.4 also allows the conduits to be
configured by URL and wildcards. Thus, you can do something like:
<http:conduit name="https://131.107.72.15/.*">
<http:tlsClientParameters disableCNCheck="true">
......
</http:tlsClientParameters>
<http:client AllowChunking="false"/>
</http:conduit>
There are proxy settings in there someplace. See:
http://cwiki.apache.org/CXF20DOC/client-http-transport-including-ssl-
support.html
Dan
On Thu February 12 2009 5:10:17 pm dale77 wrote:
> Hello,
>
> how do I use wsdl2java behind a proxy server?
>
> I get "java.net.ConnectException: Connection refused: connect" trying to
> access an external wsdl on our LAN. Normally, I would configure our proxy
> server details with the software (e.g. curl -x proxy:3128 etc). How do I do
> this with wsdl2java?
>
> Thanks
>
> Dale
--
Daniel Kulp
[email protected]
http://www.dankulp.com/blog