Skip to Content
Former Member
May 03, 2004 at 07:39 AM

Stateful Web Service?



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:


Request_TestWSViRpc_getCounter req = new Request_TestWSViRpc_getCounter();


In an action that is bound to the click event of a button:



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