Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

calling a web service method within a ABAP program

Former Member
0 Likes
695

Hi All,

We trying to consume external web serivces in the ABAP program. For that we have created client proxies and logical ports in SOAMANAGER.

We need to consume 2 web services. First one is for login purpose. We have to get the cookie after calling the first service and pass it on to 2nd service to access the data.

We are using CL_HTTP_CLIENT class methods to call web service. We are not able to find a way to call a particular method in the login web service.

If anyone has a sample code, could you please share with me?

Thanks in advance for your help.

Best Regards,

Dev

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
596

Check the following link, if I understood your question correctly it should contain the answer you are after!

http://sample-code-abap.blogspot.com.au/2009/05/simple-code-consume-web-service-using.html

2 REPLIES 2
Read only

Former Member
0 Likes
597

Check the following link, if I understood your question correctly it should contain the answer you are after!

http://sample-code-abap.blogspot.com.au/2009/05/simple-code-consume-web-service-using.html

Read only

0 Likes
596

Hi Dana,

That was really helpful. I am able to call the method. Do you have any sample code for getting the cookie from the response and sending it to the next web serivce call?

Best Regards,

Dev