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

call web service using ABAP

Former Member
0 Likes
2,284

Hi,

Need help on how to call web service within ABAP code, since i have not work before on web service call using ABAP so if you can send me custom code or SAP provided code that will be great help.

Regards,

John

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,593

Hi Raja,

i am on WAS 640. do let me know how to consume this web service?

Regards,

John

Hi,

Need help on how to call web service within ABAP code, since i have not work before on web service call using ABAP so if you can send me custom code or SAP provided code that will be great help.

Regards,

John

11 REPLIES 11
Read only

Former Member
0 Likes
1,593

HI,

you have to use the BSP application to use web service. It is avaialble from 4.7EE in sap.

rgs

p.kp

Read only

Former Member
0 Likes
1,593

John,

Please refer the following weblog by Thomas Jung. It should give a fair idea of what needs to be done. Other blogs talk about the related topics.

/people/thomas.jung3/blog/2005/01/05/develop-a-web-service-that-sends-an-email--in-abap

/people/thomas.jung3/blog/2005/05/13/calling-webservices-from-abap-via-https

Regards,

Ravi

Note : Please reward the posts that are helpful.

Read only

0 Likes
1,593

if you are on was 6.40 check out the following weblog.

/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap

you can also other approach i have used in the following weblog.

/people/durairaj.athavanraja/blog/2004/09/20/consuming-web-service-from-abap

Regards

Raja

Read only

abdul_hakim
Active Contributor
0 Likes
1,593

Hi,

You can call webservices if you have WEB AS in your system.

You can use BSP to call Web services in ABAP.

As of SAP Netweaver 2004s You can also cook and eat webservices through Webdynpro ABAP..

Regards,

Abdul

Read only

Former Member
0 Likes
1,593

hi All,

thanks for your prompt reply.

what i am trying to do is to call web service using ABAP say for ex. i have web service say 'http://TESTSERVER/SAPAdapter/Extraction/CApplicationManagementImpl.asmx'

so how do i call this web service in my ABAP.

any small demo code will be useful.

Thanks,

John.

Read only

0 Likes
1,593

which version on WAS you are on?

you need to get the url for the WSDL file.

Regards

Raja

Read only

Former Member
0 Likes
1,594

Hi Raja,

i am on WAS 640. do let me know how to consume this web service?

Regards,

John

Read only

0 Likes
1,593

its simple in WAS6.40

the steps involved.

1. create a client proxy using the wsdl file.

2. create a program to execute the client proxy.

both these steps are explained well in the weblog by Thomas Jung.

/people/thomas.jung3/blog/2004/11/17/bsp-a-developers-journal-part-xiv--consuming-webservices-with-abap

Read the weblog from subheading <b>Release 640</b>

If you have problem in understanding the steps do let us know.

Regards

Raja

Read only

0 Likes
1,593

Hi john,

The type of service classes that r avilable is:

CL_WD_ADOBE_SERVICES

CL_WD_COMPONENT_ASSISTANCE

CL_WD_CONTEXT_SERVICES

CL_WD_DYNAMIC_TOOL

CL_WD_RUNTIME_SERVICES

CL_WD_UTILITIES

Check on to this link for further details.

http://help.sap.com/saphelp_erp2005/helpdata/en/6e/0048413e466e24e10000000a155106/frameset.htm

Hope this helps u,

Regards,

Nagarajan.

Read only

0 Likes
1,593

Hi Nagarajan,

How are the web dynpro classes are going to be helpful in consuming webservice from ABAP?

the link you provided is also for Webdynpro.

Regards

Raja

Read only

Former Member
0 Likes
1,593

Thanks guys!!!!!

Regards,

John