IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

pub.client:soapHTTP - Connection Refused Error

  • 1.  pub.client:soapHTTP - Connection Refused Error

    Posted Thu May 29, 2008 07:46 PM

    Hello - I have created a webservice connector for a service deployed on my local machine. The service is deployed and running. When trying to test it, I get the following error:

    Could not run ‘createOrUpdateProductMovement’.

    com.wm.app.b2b.server.ServiceException: java.net.ConnectException: Connection refused

    Any suggestions will be appreciated!

    Thanks


    #API-Management
    #soa
    #webMethods


  • 2.  RE: pub.client:soapHTTP - Connection Refused Error

    Posted Thu May 29, 2008 07:51 PM

    This typically means the wrong port is specified in the URL. Connection refused is usually “you got to the right machine, but nothing is listening on the port you specified.”


    #soa
    #API-Management
    #webMethods


  • 3.  RE: pub.client:soapHTTP - Connection Refused Error

    Posted Thu May 29, 2008 08:00 PM

    But the port specified in the address is correct. This is the URL I am specifying:

    [url]http://localhost:8080/pm/pm?wsdl[/url]

    When I put this in local browser, I can view the entire wsdl.
    And I have specified the same address in the webservice connector.


    #API-Management
    #soa
    #webMethods


  • 4.  RE: pub.client:soapHTTP - Connection Refused Error

    Posted Thu May 29, 2008 09:19 PM

    You don’t invoke a web service by posting to its WSDL URL. Instead you need to post your Soap request to the endpoint address indicated inside the WSDL.

    Mark


    #soa
    #webMethods
    #API-Management


  • 5.  RE: pub.client:soapHTTP - Connection Refused Error

    Posted Thu May 29, 2008 09:40 PM

    The wsdl is located on my local machine. When I created the connector, I specified the location to this wsdl.

    Inside the wsdl, is
    <soap:address location=“[B][url]http://localhost:8080/pm/pm[/url][/b]” />

    That is the address it is trying to connect to and gives “Connection Refused” error.


    #webMethods
    #soa
    #API-Management


  • 6.  RE: pub.client:soapHTTP - Connection Refused Error

    Posted Mon June 02, 2008 10:41 AM

    It means, the mentioned web service is not on your local machine. Typically, when the WSDL is generated from the machine where the web service resides, the soap address is created as ‘LOCALHOST:port/ServiceAddress’. But this should be changed either to the ip address or machine name over the LAN or internet as: [URL=“http://KOR112233.in.bosch.com:8080/pm/pm”][B]http://KOR112233.in.bosch.com:8080/pm/pm[/b][/URL] or [URL=“http://123.99.22.103:8080/pm/pm”][B]http://123.99.22.103:8080/pm/pm[/b][/URL]

    Check where exactly the mentioned web service resides and change your ‘Address’ in the connector service.

    Cheers
    Gunnasekkhaar


    #soa
    #webMethods
    #API-Management


  • 7.  RE: pub.client:soapHTTP - Connection Refused Error

    Posted Mon June 02, 2008 06:56 PM

    Also apart from the above, make sure the service ACL is properly assigned if you are using Basic Authentication or Anonymous (no authentication)

    http://ip or hostname:8080/pm/pm"


    #webMethods
    #API-Management
    #soa


  • 8.  RE: pub.client:soapHTTP - Connection Refused Error

    Posted Mon June 02, 2008 08:39 PM

    thanks1 That did it


    #webMethods
    #soa
    #API-Management


  • 9.  RE: pub.client:soapHTTP - Connection Refused Error

    Posted Fri May 29, 2015 06:01 AM

    I’m facing similar issue while calling pub.client:soapHTTP, although we have set a timestamp of 5 seconds on pub.client:soapHTTP but service waiting for a long time~60 seconds to return a connection refused error message.

    the port we are mapping to the address of pub.client:soapHTTP is blocked by firewall… so it will not work… but ideally it should have timedout in 5 seconds, but the problem is that its waiting for a very long time.

    Wm version- 7.1.3

    any thought why service taking long time?


    #soa
    #API-Management
    #webMethods