cancel
Showing results for 
Search instead for 
Did you mean: 

Error testing external web service ICM_HTTP_CONNECTION_FAILED

Former Member
0 Kudos

Hi All,

I have created proxy class to consume external web service also created logical port but while testing the service through SE80, I am facing error "SOAP:1,023 SRT: Processing error in Internet Communication Framework: ("ICF Error when receiving the response: ICM_HTTP_CONNECTION_FAILED")" I have gone through many threads for similar error but not able to resolve the issue. I have tried various WSDL from samples given in sdn but still facing same error. Also tried to access any external URL through sample program as follows, but it gives same error while receive method (400 ICM_HTTP_CONNECTION_FAILED)

sample used program to call URL : gets dump with error(400 ICM_HTTP_CONNECTION_FAILED)

report zsant.

DATA: client TYPE REF TO if_http_client,

html TYPE string.

****Create the HTTP client

TRY.

CALL METHOD cl_http_client=>create_by_url

EXPORTING

url = 'http://www.google.com/'

IMPORTING

client = client

EXCEPTIONS

OTHERS = 1.

client->send( ).

client->receive( ).

html = client->response->get_cdata( ).

write: / html.

client->close( ).

CATCH cx_root.

WRITE: / 'HTTP Connection error'.

ENDTRY.

also tried activating services in SICF, didnt worked. so please suggest if any solution for this, are there any basic settings we need to do to the SAP system before cosuming or working on web services?

SAP version: EHP4 FOR SAP ERP 6.0 / NW7.01

Edited by: santrosh on Feb 27, 2010 10:21 AM

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

may be it was firewall issue, when I cosumed WSDL located in the same environment as client, i was able to get response back

Former Member
0 Kudos

Hello,

please check the global proxy settings for HTTP client using tr. SICF.

with kind regards,

DH

Former Member
0 Kudos

<p>Hello,</p>

<p>&nbsp;</p>

<p>The first thing you should do is to check that your application server can reach the service your are trying to call. I suggest to try a:</p>

<p>&nbsp;</p>

<p>telnet &lt;remote_service_url&gt; &lt;remote_service_port&gt;</p>

<p>&nbsp;</p>

<p>from the command line of your server.</p>

<p>&nbsp;</p>

<p>You should get a blank screen if your server reaches the remote server and something like connecting to &lt;remote_service_url&gt; if you don't.</p>

<p>&nbsp;</p>

<p>Yours,</p>

<p>&nbsp;</p>

<p>Joseba M. Iturbe</p>

Former Member
0 Kudos

Hi,

If you are behind proxy then also pass proxy information. Usually SAP system ports are closed for internet connection so please check with BASIS people if indeed they are open.

Regards,

Gourav

Former Member
0 Kudos

Thanks for reply,

My issue is not resolved yet, anyone has anymore suggestions...

avishek_gorai2
Participant
0 Kudos

Most probably the error is with your ports of the SAP Server, as pointed by Gourav usually ports are not opened in SAP for external access. Please check with your Admin team if http connection to external systems from the SAP system is allowed or not.