on 05-03-2004 8:39 AM
Hi,
I´ve seen that I can define a stateful webservice by setting the session feature in the web service definition. But I don´t know how to use this in my Web Dynpro application.
I´ve written a stateful session bean and generated a "stateful" web service for this. The session bean increases a counter each time it is invoked.
In my Web Dynpro app. I created a model for that web service. As a result the "Use HTTP cookie-based session" option is selected in the logical port definition of the model.
In a view I use this model in the following way:
wdDoInit:
Request_TestWSViRpc_getCounter req = new Request_TestWSViRpc_getCounter();
wdContext.nodeTestModel().bind(req);
In an action that is bound to the click event of a button:
wdContext.currentTestModelElement().modelObject().execute();
wdContext.nodeResponse().invalidate();
When executing my Web Dynpro app. and pressing the button I expect to get the increased counter with each hit. But I allways get a "1".
Any suggestions?
Regards Helmut
Hi Helmut,
The model does not support stateful Web Services at this point in time. I'll find out about the plan for that!
Best regards,
Karin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
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.