Skip to Content
0
Former Member
Sep 17, 2005 at 12:58 AM

Consuming Web Service

23 Views

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