cancel
Showing results for 
Search instead for 
Did you mean: 

Stateful Web Service?

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Karin - was this functionality ever added/exposed to Web AS? It is very critical functionality to have (the ability to issue multiple RFC's over WebAS's SOAP interface within the context of a single session/transaction).