I sort of already asked this, but I realized I needed to rephrase my question.
I have a CFC with two remote functions: int setX(int in_val), int getX(). It also has an internal structure to store local, private variables. This is my (simplified) code: <cfcomponent> <cfset instance = StructNew()> <cfset instance.x = 0.0> <cffunction name="getX" returntype="numeric" access="remote"> <cfreturn instance.x> </cffunction> <cffunction name="setX" returntype="numeric" access="remote"> <cfargument name="inX" type="numeric"> <cfset instance.x = #Arguments.inX#> <cfreturn instance.x> </cffunction> </cfcomponent> When invoking this component from ColdFusion, everything is hunkydory. However, I have an ASP.NET application that I'm using to do this same thing, and state is NOT preserved between calls- and I don't understand why. For the ASP.NET implementation, I created a wrapper C# class using the wsdl tool. I then invoke that class and call setX(15.0), then getX(). The call to setX returns 15.0. The subsequent call to getX returns 0.0. Is there a way to make my CFC preserve its state between calls from my .NET application? I'm totally stuck here. Thanks, Kevin ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4