on 09-17-2005 1:58 AM
Hi guys,
I am newbie in WebDynPro and need to consume one WebService.
Could you please give me an example on how to do the whole 'context' thing and using the wizard generated clases? I already use the wizard, following the instructions given in /people/sap.user72/blog/2005/09/15/creating-a-web-service-and-consuming-it-in-web-dynpro
My problem is that wen I try to use this code (from the web log)
Webmodel web = new Webmodel();
wdContext.nodeRequest_CalculatorServiceViDocument_add().bind(web);
try
{wdContext.currentRequest_CalculatorServiceViDocument_addElement().modelObject().execute();}
catch(Exception e)
{e.printStackTrace();}
NWDS tells me: "nodeRequest_CalculatorServiceViDocument_add() is undefined for the type IPrivateActivationView.IContextNode"
Any good idea, or link will be good.
Thanks in advance
Patricio
Hi Patricio,
As mentioned in the weblog , "Webmodel" as the name of the Web Service
Please check the parameter for wdContext.nodeRequest_CalculatorServiceViDocument_add().bind() method.
It should be somethiing like Request_CalculatorServiceViDocument.
So you need use
Request_CalculatorServiceViDocument web=new Request_CalculatorServiceViDocument();
wdContext.nodeRequest_CalculatorServiceViDocument_add().bind(web);
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Patricio,
The meaning of the error message is that you should have a context node named Request_CalculatorServiceViDocument_add in your View context, yet you don't.
For numerous Web-Dynpro tutorials, including using Web Services see:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/web dynpro tutorial and sample applications.faq
Hope that helps,
Yoav.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.