on 09-09-2009 11:06 PM
Hi All
- I created a Web service using "Adaptive WebService Model" for a Method say method1() which return String.
- I create Java Web Dynpro Project/Application & created model and embed this model into our component. And then did context mapping between model-component, component-view for request node.
I didn't write full steps, but everything is ok above....
What i need is coding to call Web Service Method from my View or Component.
Pls help me.
Thanks in Advance...
Hi,
Write the code as follows
1) in init method
YourModel model = new YourModel();
wdContext.nodeRequest().bind(new Request(model));
2) create method called executeRequest() and writhe the code in the method as follows
wdContext.currentRequestElement() .modelObject().execute();
wdContext.nodeResponse().invalidate();
For more details go through the below link
Regards
Suresh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.