Skip to Content
author's profile photo Former Member
Former Member

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

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on May 06, 2004 at 01:45 PM

    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,


    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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).

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.