cancel
Showing results for 
Search instead for 
Did you mean: 

Connection refused: SOAP

EdgarTabar
Participant
0 Kudos

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

View Entire Topic
markangelo_dihiansan
Active Contributor
0 Kudos

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

EdgarTabar
Participant
0 Kudos

Hello,

>

> Can you share to us the details that you have placed in your SOAP Receiver Comm channel?

>

> Regards,

> Mark

Adapter: SOAP http://sap.com/xi/XI/System SAP Basis 7.11

Receiver

Trans. Prot.:HTTP

Message Prot.: SOAP 1.1

Adapter Engine: Central Adapter Engine

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

markangelo_dihiansan
Active Contributor
0 Kudos

Hello Edgar,

I re-edited my previous post and gave an example. Were you able to read it?

Regards,

Mark

EdgarTabar
Participant
0 Kudos

Hello Edgar,

>

> I re-edited my previous post and gave an example. Were you able to read it?

>

> Regards,

> Mark

Hi Mark,

yes i see it and it is very helpful.

In my webservice i have some operation like update, Insert an so on..

Now i will change the url to: url: http://server.local:8082/soap?service=WebService?op=Update

Edited by: Edgar Tabar on Feb 7, 2012 10:57 AM

former_member184681
Active Contributor
0 Kudos

Dear Edgar,

This error "Connection refused: connect" can also be caused by the Firewall blocking connections from PI to the target system or the target system listening to a different port than what is specified in your receiver CC. You can verify if PI has access to the target system by executing the TELNET OS command (to your particular hostname and port) from transaction sm69 of your PI ABAP stack. You might have to add this command there manually first.

Hope this helps,

Greg

markangelo_dihiansan
Active Contributor
0 Kudos

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