Try all available WSDL IPs with JAX-WS
- by Asaf
I'm using JAX-WS to open a service port.
When the DNS exposes two IPs for the DNS entry (of the WSDL), the Service 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 exposing those two A records on http://some.url.com/ at the DNS.
Can anyone help?
10x,