Getting this error while trying to run a web service client.
I am using a remote WSDL and trying to build a skeleton (wsdl2java) and making a call to webservice from a main Class but getting this error.
though i am able to run the serive using soapUI and also able to access the wsdl from browser. what could be issue ? please suggest.
com.sun.xml.internal.ws.client.ClientTransportException: HTTP transport error: java.net.ConnectException: Connection refused: connect
posted 4 years ago
This may happen if you are trying to connect to an invalid ip address or port. Check the java classes that you were able to generate using the WSDL if they're using a valid ip address. Sometimes, the ip address is written as "localhost" in the code instead of the real ip address (e.g: localhost:8080 instead of 192.168.0.1:8080).