When creating a new WS client using:
new javax.xml.ws.Service(URL wsdlLocation, QName serviceName)
If the URL successfully connects to the server holding the WSDL resource, when trying to read the file the WS client may hang waiting for the resource.
The only way to avoid this is configuring the system property: sun.net.client.defaultReadTimeout (-1 by default, no timeout), which may affect other functionalities.
This can be avoided storing the WSDL locally.