JAX-WS 的 Http 代理设置
我需要直接在出站 JAX-WS 出站请求上设置 Http 代理主机/端口(由于 WLS 容器问题,使用 Java 系统属性不起作用)。我们在 Jersey REST 中遇到了类似的问题,解决方法如下:
proxyConfig = new DefaultApacheHttpClientConfig();
proxyConfig.getProperties()
.put(DefaultApacheHttpClientConfig.PROPERTY_PROXY_URI, proxyUri);
我正在为 JAX-WS 寻找类似的解决方案。这是它的版本信息:
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.5b02
* Generated source version: 2.2
有什么想法吗?
I have a need to set the Http proxy host/port directly on the outbound JAX-WS outbound request (using Java System properties does not work because of WLS container issues). We ran into a similar issue with Jersey REST, and the workaround looked something like this:
proxyConfig = new DefaultApacheHttpClientConfig();
proxyConfig.getProperties()
.put(DefaultApacheHttpClientConfig.PROPERTY_PROXY_URI, proxyUri);
I'm looking for a similar solution for JAX-WS. Here is its version info:
* This class was generated by the JAX-WS RI.
* JAX-WS RI 2.2.5b02
* Generated source version: 2.2
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论