>> Both outputs are outputting the same value of 10.  The web service does
>> not seem to be maintaining state from one method call to another.
>
> Right! Web service calls don't maintain state by default. You have to
> manage state yourself.

To be more specific to my own reply, when you invoke a web service
method, you are instantiating your object and then immediately
destroying it, just like if you used CFINVOKE to call a method
directly. If you want to manage state, you can write to a persistent
store (Session, Application, Server scopes, databases, etc, although
the Session scope relies on the caller to pass the session token on
subsequent requests, which may not happen).

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 onsite

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:329473
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to