Quantcast
Channel: ABAP Connectivity
Viewing all articles
Browse latest Browse all 73

How to call a webservices without hardcoding password

$
0
0

There are few questions in forums about passing user name / password to  webservice instead of hard coding in the code. Hence i would like to share a easy way of doing it without hardcoding.

I suggest that developers use abap proxies to call webservices. I do not want to explain the procedure to create abap proxies , i searched sdn for webservice clients and found a nice wiki.

It is very simple to pass the user name password to webservice proxy. This can be achived through a SM59 HTTP destination.

a) The first step is to create a HTTP destination with wsdl URL and enter the user name & password in the destination.

b) The second step is to select the HTTP destination in the logical port creation as mentioned in the wiki step 3 as shown below,

Logical Port Configuration


Viewing all articles
Browse latest Browse all 73

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>