cancel
Showing results for 
Search instead for 
Did you mean: 

web service using an external api (WSDL)

p_2_5_6_9_6_0
Active Participant
0 Kudos

Hi,

Need to use a web service from google. I have the wsdl file with me.

1. Since I am not clear on web services - need a step - by - step procedure on how to use this wsdl file in a WDA app.

WDSL link: http://api.google.com/GoogleSearch.wsdl

2. I also need a really simple tutorial on how to use external web services so that i can implement more of them into my application.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

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:

1.Create the EJB Module Project.

2.Create Two Java Files.

i) One is for Implementation logic .

ii) Another one is for Getter, Setter Method For output Parameters.

3.Then create the Javabean(For Business Logic).

4.Create the EAR (Enterprise Appliaction Project) For the EJB Module.

5.After Deploying the EJB file and EAR file .

Right click the Bean and select the Webservice.

It will create a Virtual Interface and Webservice.

Reward me with points if it is useful...

Regards,

Prakash.

p_2_5_6_9_6_0
Active Participant
0 Kudos

Thank you.

But I am searching for a procedure to use external web services in a Web Dynpro ABAP application.

I believe that these are for Web Dynpro Java.

Do you have any information on using the WSDL file with Web Dynpro ABAP?

Thanks.

Former Member
0 Kudos

You need to first create an Enterprise Proxy using the WSDL file. This will generate a proxy class with wrappers for each service exposed by your webservice. These methods can then be called from the Web Dynpro application, just as you would make a call to any ABAP method.

Regards,

Nithya

Answers (1)

Answers (1)

Former Member
0 Kudos

hi ,

check this link ,

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.

Regards ,

venkat .