Try all available WSDL IPs with JAX-WS
Posted
by
Asaf
on Stack Overflow
See other posts from Stack Overflow
or by Asaf
Published on 2011-01-11T09:49:37Z
Indexed on
2011/01/11
9:53 UTC
Read the original article
Hit count: 356
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,
© Stack Overflow or respective owner