> A web service component does not maintain state natively. Thus > information stored in the 'this' and 'variables' scope of a component > are not maintained from one call to another.
Right. > But the web service component can access the other cross request scopes > such as server, application and session. So if I want to maintain > state, I need to write and read the state data from one of these scopes > with the web service. Is that correct, Dave? You where talking about > the web service component code writing and reading to the application or > session scope, NOT the consuming code. Right. > Continuing this train of thought, since web service calls do not include > cookies, normal session state is not maintained and I would have to > handle that myself. Not necessarily right. Some web service clients will pass cookies properly. I believe that CF does this, so if you have your application set to use cookies with session management, your CF client should work fine. > Does anybody have any good pointers or reading material about suggested > methods to maintain state across web service calls. I.E. is there > someway to pass the normal cookie values into the web service and allow > the web service code to access the session scope? If you want, you can build your own state management mechanism that would basically return a token on the first method call, then accept that token on subsequent method calls - basically just what cookies do, but an explicit value that would be passed as an argument to subsequent requests. But I suspect that most web service clients support cookies by default nowadays. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or on ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Want to reach the ColdFusion community with something they want? Let them know on the House of Fusion mailing lists Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:329477 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

