cancel
Showing results for 
Search instead for 
Did you mean: 

Consume HTTPS based webservice in ABAP

Former Member
0 Kudos

Hi Friends,

I am trying to consume an external HTTPS based webservice in ABAP. The endpoint is

https://www.swiftrefdata.com/filesdownload/getBankDirectorySAPPkg. I have tried following the steps to first create a Enterprise Service from SE80.

However I am unable to generate the proxy object due to the below error .

Exception occurred in communication framework:Error in HTTP Framework:500Native SSL errorhttps://www.swiftrefdata.com/filesdownload/getBankDirectorySAPPkg

I am very new to this. Is it because it is HTTPS? I have also tried using the if_http_client Interface as an alternate method.

However it throws an exception 'http_communication_failure'.

The technical specs from this webservice supplier says 'The SWIFTRef Automated Download Web Service requires the client application to authenticate through the basic HTTP authentication method, which means that the client application has to set the HTTPS header with valid username and password pair.'

Is there any additional configuration that I need to do before all these? Any help would be much appreciated.

Thanks,

Ajith C

Accepted Solutions (1)

Accepted Solutions (1)

martin_voros
Active Contributor
0 Kudos

Probably ABAP AS does not trust SSL cert used by that service. So you need to import it in STRUST. You should be able to find some guides how to consume service over https. If possible try plain http.

Cheers

Former Member
0 Kudos

Thanks,

I have resolved the issue by adding the certificate in STRUST ( SAP Trust Manager ).

And I used the ABAP Interface IF_HTTP_CLIENT to connect to the HTTPS URL by passing the SSL ID from the STRUST.

Thanks

Ajith Cheruvally 

yang_aiolos
Active Participant
0 Kudos

Hi Ajith Cheruvally ,


i am also facing this SSL issue when calling https webservice, could you share your solution? we don't know how to import certificate correctly. your reply is much appriciated.

Answers (0)