on 06-11-2004 4:59 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
User | Count |
---|---|
84 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.