cancel
Showing results for 
Search instead for 
Did you mean: 

Calling Web Service Methods in Web Dynpro

Former Member
0 Kudos

1. Created a Bean with get & set methods..Created a portal Service around it

2. Created a Web Service and checked the same using EP Web Checker

3. Created a Web Dynpro app having two screens (First one for setting String value and second for getting string value)

4. Configured the Web Service in the model...I can see the Request and Response in the Context...Mapped the request to first view and Response to Second View

How do I call the Web Service method to Set the Paramter and how do I extract the value from the response?

Rgds

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Gulshan

Execution of a webservice is similar to execting a RFC.

For Ex : If xyz is ur model class then

try{

wdContext.currentxyxelement().modelobject().execute();

}catch (Exception e){}

For passing the values you will create a request object. Using the object access the methods you have created and set the values.

Kishore

former_member182372
Active Contributor
0 Kudos

Hello Gulshan,

Did you check this:

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on accessing an email web service - 6_0_.htm

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/webdynpro/tu... on accessing the car rental web service - 7.htm

Best regards, Maksim Rashchynski.