aspose file tools*
The moose likes Web Services and the fly likes (java.net.ConnectException) caught when processing request: Connection refused Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "(java.net.ConnectException) caught when processing request: Connection refused" Watch "(java.net.ConnectException) caught when processing request: Connection refused" New topic
Author

(java.net.ConnectException) caught when processing request: Connection refused

vishnu neerukattu
Greenhorn

Joined: Aug 16, 2007
Posts: 15
Hi,

when I am trying to access a webservice using axis2 I am getting the following error request you to help me out in this regard.

(org.apache.commons.httpclient.HttpMethodDirector) - I/O exception (java.net.ConnectException) caught when processing request: Connection refused
(org.apache.commons.httpclient.HttpMethodDirector) - Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:139)
at org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:124)
at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:706)
at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:386)
at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:170)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:396)
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:346)
at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSender.java:100)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessageWithCommons(CommonsHTTPTransportSender.java:284)
at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:204)
at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:449)
at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:317)
at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxisOperation.java:267)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:393)
at org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:326)
at com.ab.Client.invoke(Client.java:46)
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Looks like there was no process listening on the port that you directed the request to. What information do you have for the web service you are trying to connect to?

Bill
vishnu neerukattu
Greenhorn

Joined: Aug 16, 2007
Posts: 15
Originally posted by William Brogden:
Looks like there was no process listening on the port that you directed the request to. What information do you have for the web service you are trying to connect to?

Bill


Thanks a lot for the reply Bill the only information I have about the webservice is its WSDL url.
vishnu neerukattu
Greenhorn

Joined: Aug 16, 2007
Posts: 15
But when I am trying to access the web service through browser I am able to hit the service
vishnu neerukattu
Greenhorn

Joined: Aug 16, 2007
Posts: 15
But when I am trying to access the web service through browser I am able to hit the service
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
What URL do you use to "access the web service" from a browser?
What do you get back?

Bill
vishnu neerukattu
Greenhorn

Joined: Aug 16, 2007
Posts: 15
I use the .jws wsdl url and I am getting the complete wsdl and callback wsdl links on the page along with the methods available with the web service
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12835
    
    5
Getting the WSDL only means that the WSDL is available, it does not mean that the service is actually running at the location specified by the WSDL.

Do you have any contact information for the people who run the service?

Bill
Peer Reynders
Bartender

Joined: Aug 19, 2005
Posts: 2922
    
    5
Venkat,

Please check your private messages.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: (java.net.ConnectException) caught when processing request: Connection refused