In other words you need to come up with your own mechanism for
maintaining a "session" across web service invocations. This is fairly
trivial and there are different approaches you can take.

If you called the CFC as a web service from within ColdFusion you'd have
the same problem. However, you called it as a local object which meant
it would maintain its state.

The access attribute being set to "remote" only indicates that the CFC
can be called as a web service not that it IS a web service only CFC.

André

-----Original Message-----
From: Sean A Corfield [mailto:[EMAIL PROTECTED] 
Sent: 08 August 2003 09:01
To: CF-Talk
Subject: Re: Problem calling CFC from .NET

On Thursday, Aug 7, 2003, at 17:12 US/Pacific, kevin ruggiero wrote:
> Well, I'm not sure it warranted an "of course not", seeing as how it 
> did work fine when called from ColdFusion

If you call if from CF, it's like a local function call. If you call it 
as a web service, there's no sense of session management - the calling 
client could be anything so there is no standard way to maintain a 
session. Sorry, I thought this was very obvious but I guess I'm making 
assumptions - no offense intended :(

> That would make sense, I just was not aware that CF will not maintain 
> state on calls to web services.

Well, it's more that the *client* isn't maintaining session so each 
time CF is called, it treats it as a new session (imagine turning off 
cookies and not being able to add tokens to the URL).

> I was hoping that it could maintain state through some mechanism 
> similar to session management, which I don't believe is unreasonable 
> to fathom.

Normally session management occurs through collaboration between the 
server and the client. It relies on the client following a protocol, 
either through cookies being passed back and forth or through URL data. 
Web Services can be called by a wide variety of clients that know 
nothing about cookies or URL parameters - so there is nothing for the 
server to hang on to...

Sean A Corfield -- http://www.corfield.org/blog/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
                                

Reply via email to