I use a tomcat7 server and created a war-file by using eclipse and axis. the problem is my classes lose their values after a client request. So I have to set the scope to session I've read. But everthing I tried failed. I added scope tags or attributes in the files deploy.wsdd and server-config.wsdd in the TomCat HOME > webapps > MyProject > ... folders . This didn't help. Does anybody know how to solve this problem ???
my classes lose their values after a client request.
Can you verify that a request is being accepted by the service and a SOAP formatted response returned?
Joined: Aug 08, 2011
That means that no value, set by a method from a former request, can be saved in a class variable. The value is lost after a request. The webservice works correctly for one request but I need to establish a session to save the values from a former one. Therefore you have to set a parameter in a configuration file but I don't know where exactly. everything I've found until now didn't work.
Author and all-around good cowpoke
Joined: Mar 22, 2000
That means that no value, set by a method from a former request, can be saved in a class variable
You have to provide some form of storage between requests. For web applications people use sessions because the client browser handles the cookie that identifies the session.
Web services dealing with non-browser clients need to create a data preserving method - popular choices include a database.