File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Web Services
Bookmark "Java Webservice" Watch "Java Webservice" New topic

Java Webservice

chintu ramavat

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. HTTP transport error: 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
I agree. Here's the link:
subject: Java Webservice
jQuery in Action, 3rd edition