Skip to Content

Connection refused: SOAP

Hi,

when I testing a webservice from the PI I get the following error message:

SOAP: call failed: java.net.ConnectException: Connection refused: connect

SOAP: request message entering the adapter with user J2EE_GUEST

WhenI try it in the internet explorer, then i can see the wsdl definition of tthe webservice.

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Feb 07, 2012 at 09:17 AM

    Hello,

    checked the url from the receiver channel in the internet explorer and i can see the wsdl definition of the webservice.

    I don't have a user-id, passowrt or any other SOAP action.

    So i guess that the port is ok.

    What you are seeing is the URL for the service definition which is different from the URL that you will be posting the message and the SOAP action that is also needed. See this example:

    http://www.html2xml.nl/Services/Calculator/Version1/Calculator.asmx in this website, if you click the Service Description. It will give you the WSDL http://www.html2xml.nl/Services/Calculator/Version1/Calculator.asmx?WSDL

    But once you click an actual operation, say add

    http://www.html2xml.nl/Services/Calculator/Version1/Calculator.asmx?op=Add

    You will know that the SOAP Receiver URL (SOAP 1.1) will be:

    Host: www.html2xml.nl/Services/Calculator/Version1/Calculator.asmx

    SOAP Action: http://tempuri.org/Add

    and the content-type is: text/xml

    Regards,

    Mark

    Edited by: Mark Dihiansan on Feb 7, 2012 10:19 AM

    Add a comment
    10|10000 characters needed characters exceeded

    • Hello Edgar,

      In the example I gave

      But once you click an actual operation, say add

      http://www.html2xml.nl/Services/Calculator/Version1/Calculator.asmx?op=Add

      Here are the parameters in the SOAP Receiver CC

      Target URL: www.html2xml.nl/Services/Calculator/Version1/Calculator.asmx 
      Soap Action:http://tempuri.org/Add
      

      So the Target URL that you will be providing

      http://server.local:8082/soap?service=WebService?op=Update

      is not correct. If you want, you can execute the webservice (without using PI) by using a third-party tool such as SOAP UI. The SOAP Action is needed because native SOAP Adapter is using SOAP 1.1

      Hope this helps,

      Mark

  • Posted on Feb 07, 2012 at 08:58 AM

    Here the full error message, that I get in the runtime workbench / communication channel monitoring

    07.02.2012 09:36:15 Information The message was successfully received by the messaging system. Protocol: XI URL: http://xxx.local:50000/MessagingSystem/receive/AFW/XI Credential (User): PIISUSER

    07.02.2012 09:36:15 Information Using connection SOAP_http://sap.com/xi/XI/System. Trying to put the message into the receive queue.

    07.02.2012 09:36:15 Information The message was successfully retrieved from the receive queue.

    07.02.2012 09:36:15 Information Message successfully put into the queue.

    07.02.2012 09:36:15 Information The message status was set to DLNG.

    07.02.2012 09:36:15 Information Delivering to channel: SOAP_ReceiverChannel_xxx

    07.02.2012 09:36:15 Information SOAP: request message entering the adapter with user J2EE_GUEST

    07.02.2012 09:36:16 Error SOAP: call failed: java.net.ConnectException: Connection refused: connect

    07.02.2012 09:36:16 Information SOAP: sending a delivery error ack ...

    07.02.2012 09:36:16 Information SOAP: sent a delivery error ack

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi,

      > this is usually a connectivity issue in terms of the net work

      > confirm with your network team as to find the exact issue and a better log on this issue.

      > Can you check the Target URL....confirm that you have configured the receiver SOAP CC with the exact Target URL, User-id & password (if Any), and SOAP Action (if any)

      Hi,

      i checked the url from the receiver channel in the internet explorer and i can see the wsdl definition of the webservice.

      I don't have a user-id, passowrt or any other SOAP action.

      So i guess that the port is ok.

      Bye

      Edgar

  • Posted on Feb 07, 2012 at 09:03 AM

    Hi Edgar,

    It looks like you are using a bad URL for the connections. Most probably you have chosen Tools -> Display WSDL in Integration Directory to generate the .wsdl file that you delivered to your sender system's responsible. Instead, you should right-click your Sender Agreement and choose Display WSDL to get the right file, with correct endpoint URL. Importing this new .wsdl file to the sender system should solve your problem.

    You can also try manually changing the target URL to the following:

    http://{PI HOST}:{PI PORT}/XISOAPAdapter/MessageServlet?channel={Communication Channel}

    Moreover, in the CC name in the URL above, replace the "|" character with ":" and delete * that you have for Receiver Party & Component.

    Hope this helps,

    Greg

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.