cancel
Showing results for 
Search instead for 
Did you mean: 

Consuming webservice in a webdynpro component

Pramanan
Active Participant
0 Kudos

Hi Experts,

I have a third party free webservice as WSDL link.My requirement is to make use of that webservice in my webdynpro component.

Can any body give me a step by step approach to consume that webservice in my webdynpro Component.

If possible, Provide me some good material for consuming webservice in a webdynpro component.

Awaiting for a useful reply.

Thanks,

Ramanan.p

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi,

Few indroductory sessions

.

/people/thomas.jung/blog/2007/12/17/consuming-services-with-abap -Consuming webservices with webdynpro.

It is possible to create webservice in ABAP as well as in Webdynpro.

ABAP Webservice:

http://wiki.open-esb.java.net/Wiki.jsp?page=BAPIWEBSERVICE

http://www.sappro.com/downloads/SAPXI.pdf

Webdynpro Webservice:

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/244e7923-0a01-0010-5887-fe0b0c6d...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/30f1b585-0a01-0010-3d96-ad0...

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/db785a70-0701-0010-858c-eee0e...

In Web Dynpro ABAP there is nothing special about calling a web service. Unlike WD Java, there are not dedicated model object types in WD ABAP. WD ABAP simply has the ability to interact with other ABAP development object types. You can call function modules, ABAP classes, even modules in old dynpro apps.

So calling the webservice from ABAP therefore is just the process of generating the ABAP Proxy Class. This is the same process regardless of if you want to use this proxy class from WDA or any other type of ABAP development object. You can then call the proxy class from WDA just like any other type of ABAP class. There is a service wizard option in later support package levels that includes an option for ABAP Proxy classes - although it doesn't generate the proxy class it just generates the code and context for the call to an already existing proxy class. The service wizards in WD ABAP are not required however. They are just shortcut code generators and often can't even generate a complete context for a complex web service proxy - so expect to do some manual adjustment after running the wizard.

Edited by: Mahalakshmi kothuri on Jun 1, 2008 4:17 PM