Application Development 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: 

call web service using ABAP

Former Member
0 Kudos
838

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

Former Member
0 Kudos
147

Hi Raja,

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

Regards,

John

11 REPLIES 11

Former Member
0 Kudos
147

HI,

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

rgs

p.kp

Former Member
0 Kudos
147

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.

0 Kudos
147

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

abdul_hakim
Active Contributor
0 Kudos
147

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

Former Member
0 Kudos
147

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.

0 Kudos
147

which version on WAS you are on?

you need to get the url for the WSDL file.

Regards

Raja

Former Member
0 Kudos
148

Hi Raja,

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

Regards,

John

0 Kudos
147

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

0 Kudos
147

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.

0 Kudos
147

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

Former Member
0 Kudos
147

Thanks guys!!!!!

Regards,

John