开发者

Try all available WSDL IPs with JAX-WS

开发者 https://www.devze.com 2023-02-03 09:16 出处:网络
I\'m using JAX-WS to open a service port. When the DNS exposes two IPs for the DNS entry (of the WSDL), the Servi开发者_Go百科ce tries to use only the first - resulting in a \"Failed to access the WS

I'm using JAX-WS to open a service port.

When the DNS exposes two IPs for the DNS entry (of the WSDL), the Servi开发者_Go百科ce tries to use only the first - resulting in a "Failed to access the WSDL at: http://some.url.com/someDocument?wsdl. It failed with: Connection refused: connect" exception.

I've found an issue filed against JAX-WS, but with no resolution.

this is the comment that describes my problem best.

The code is just a one-liner:

Service service = Service.create("http://some.url.com/someDocument?wsdl", engineQName);

the smarts is in exposing those two A records on http://some.url.com/ at the DNS.

Can anyone help?

10x,


From the comments in the bug you filed, seems rather more like a bug in HttpUrlConnection than in JAX-WS. However, I don't really know how you can change that, maybe by giving a custom HttpUrlConnection to JAX-WS, but I don't know how to do that.

0

精彩评论

暂无评论...
验证码 换一张
取 消