cancel
Showing results for 
Search instead for 
Did you mean: 

Connecting to web server securely using ICF

Former Member
0 Kudos

Hello,

I want to develop a client in ABAP that will use the ICF to connect to a web server and send a post request.

I have read the example at

http://help.sap.com/saphelp_nw04/helpdata/en/6f/04d73a90e7322be10000000a11405a/frameset.htm

What I have not found is how to do this securely using https and basic authentication or cert-based authentication. (Note that the remote web server is not an sap system).

Does the ICF support these authentication methods for outbound http requests ?

Do you have any examples of how to do this ?

Thank you in advance for your help .

Note : I am using SAP Web Application Server 6.20

Thierry

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member181879
Active Contributor
0 Kudos

Hallo Thierry,

Funnily enough I tried to create an outgoing HTTPS connection a few days ago, and failed! Using HTTP is not a problem. There seems to be some problem with getting the SSL connection setup, that I did not to understand. At the moment I have an open trouble ticket for this. If I should make it work, I will append a small example.

bye, brian

Former Member
0 Kudos

We've build a scenario like this, not using ICF but ICM and the interface Interface IF_HTTP_CLIENT.

Sample program and info on ICM:

http://help.sap.com/saphelp_webas620/helpdata/en/ee/23df3a750f6a02e10000000a11405a/frameset.htm

We created a HTTPS connection in SM59 (Logon security tab choose SSL Active DFAULT). Make sure you store the certificates in the client repository (I did both anonymous and standard) in transaction STRUST (Every time you change something in STRUST you have to restart ICM via transaction SMICM)! Otherwise it won't work! If the test connection in SM59 is working you can start programming

In my program I used then

- cl_http_client=>create_by_destination

- fill the request

- client->send

- client->receive

- client->response->get_cdata

- client->close

Hope this helps,

Jeroen.