Hi
On 14/06/14 02:12, Eric Chow wrote:
Hello,
There are many questions in the web about this topic but seems not having a
exactly answer. Any body can provides a completed solution, please?
I am going to consume a Jax-RS web service from C#, but for some system
requirement, I have to store some values in the server for retrieving when
later called. How can I do this with Apache-CXF?
Any example, please?
Well, typically, one either depends on the client or the server storing
the state.
If it is the former then in a JAX-RS server you can easily create a
cookie with JAX-RS Response/ResponseBuilder API and return it to the
client and check if the client request contains the cookie by using
@CookieParam annotation or checking the headers directly.
If you want to store the session data on the server then it is really up
to you how to do it, you will need to associate with the client request
somehow, example, with the authenticated Principal's name, etc
Sergey
Best regards,
Eric