wood burning stoves 2.0*
The moose likes Web Services and the fly likes Java Webservice Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Java Webservice" Watch "Java Webservice" New topic
Author

Java Webservice

chintu ramavat
Greenhorn

Joined: Jul 19, 2011
Posts: 1
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

Kelly Powell
Ranch Hand

Joined: Oct 29, 2010
Posts: 56
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).
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Webservice