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,