如何告诉wsimport使用代理例外URL [英] How do I tell wsimport to use a proxy exception url
问题描述
我需要连接到内部Intranet Web服务。我的公司使用代理服务器访问互联网,但内部网站点不通过代理。我可以在IE和Firefox中导航到WSDL,但我必须在两个浏览器中将地址添加到代理例外列表中。
I need to connect to an internal intranet web service. My company uses a proxy server to access the internet but intranet sites do not go through the proxy. I can navigate to the WSDL in IE and Firefox but I have to add the address to the proxy exception list in both browsers.
当我使用wsimport时,由于代理服务器,我无法获得WSDL。添加或删除-httpproxy arg给出了一个错误无法通过代理隧道,所以我猜这不是我需要的方式。
When I use wsimport I cannot get the WSDL because of the proxy server. Adding in or leaving out the -httpproxy arg gives me an error "Unable to tunnel through proxy" so I'm guessing this is not the way I need to do it.
有没有人知道我可以告诉wsimport忽略这个网址的代理服务器?
Does anyone know a way I can tell wsimport to ignore the proxy server for this url?
Neil
推荐答案
我找到了答案。您需要将以下内容添加为JVM参数,它使用Internet Explorer(或Mac上的Safari我假设)代理地址和排除列表。
I found the answer. You need to add the following as a JVM parameter and it uses the Internet Explorer (or Safari on Mac I assume) proxy address and exclusion list.
-Djava.net.useSystemProxies=true
我从 http://jeannotsweblog.blogspot.co.uk/2009/06/wsimport-with -proxy.html
这篇关于如何告诉wsimport使用代理例外URL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!