Results 1 to 4 of 4
  1. #1
    somersst is offline Member
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0

    Default Error opening socket: java.net.ConnectException: Connection refused: connect

    Hi Everyone,

    I'm tearing my hairs out for the moment.
    This is the situation :
    In Eclipse I created a project, and with help of the wizard I created an AXIS-web service.

    When I call this web-service locally I don't have any problem.
    When I call it from another computer, I get the error-message :
    Error opening socket: java.net.ConnectException: Connection refused: connect

    I changed the properties in the wsdl-file the following line :

    FROM

    <wsdlsoap:address location="http:-/-/localhost:8080/LeasePlan_MQWebService/services/MQCommunication"/>

    TO
    <wsdlsoap:address location="http:-/-/10.16.111.38:8080/LeasePlan_MQWebService/services/MQCommunication"/>


    This didn't resolve the problem either. When I open the URL on the other computer in a browsers, it works without any problem, so I can decide there is no firewall-problem.

    Please any help would be most welcome. Also how can I troubleshoot that kind of problems

  2. #2
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    10

    Default

    So you can run the client on the same machine.

    You can see your Web service from the other computer with a browser.

    That would seem to point to a problem with your client software not looking at the correct address. I suggest checking the format of the address in the client. Addresses are case-sensitive on some Web application servers.

  3. #3
    somersst is offline Member
    Join Date
    Jan 2009
    Posts
    3
    Rep Power
    0

    Default

    Hi Steve,

    Already many thanks for your answer. Unfortunateley you reasoning is nor true for my problem I think. As well on my local computer, as on the other computer, the same java-software is running for calling the webservice with as endpoint "http:-/-/10.16.111.38:8080/LeasePlan_MQWebService/services/MQCommunication".

    10.16.111.38 is the ip-adress of my local computer

    -/ : mind the first dash, but otherwise my post wasn't accepted in this forum

  4. #4
    Steve11235's Avatar
    Steve11235 is offline Senior Member
    Join Date
    Dec 2008
    Posts
    1,046
    Rep Power
    10

Similar Threads

  1. Replies: 3
    Last Post: 04-13-2010, 03:43 PM
  2. Replies: 2
    Last Post: 11-21-2008, 09:36 PM
  3. Replies: 1
    Last Post: 12-17-2007, 12:13 PM
  4. Replies: 1
    Last Post: 07-27-2007, 10:59 PM
  5. java.net.ConnectException: Connection refused
    By Albert in forum Advanced Java
    Replies: 2
    Last Post: 07-03-2007, 04:49 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •