This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
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 Murach's Java Servlets and JSP this week in the Servlets forum!
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
Similar Threads
weblogic rpc webservice
How to resolve cos-nonambig error?
The service definition selected is invalid
Failed to find a suitable binding type for use in marshalling
where to find Webservices.jar in weblogic site