I've created a CFC for users that contains internal properties that are set
when a user logs in.

When I declare an object using the component parameter every thing works and
the internal properties are assigned and useable after the login method is
called.

<cfobject component="Users" name="objUsers">
<cfset variables.tmp = objUsers.LoginByEmailAddr('[EMAIL PROTECTED]', 'test',
CGI.REMOTE_ADDR)>
<cfdump var="#objUsers.Dump()#">

However, when I declare the object using the webservice parameter, the login
either fails or succeeds.  However, none of the internal properties remain
set and the dump statement will return the default values for the object.

<cfobject webservice="http://devmx.jibben.com/jws/Users.cfc?wsdl";
name="objUsers">
<cfset variables.tmp = objUsers.LoginByEmailAddr('[EMAIL PROTECTED]', 'test',
CGI.REMOTE_ADDR)>
<cfdump var="#objUsers.Dump()#">

I suspect that this has something to do with object persistence.  I would
like to have the webservice work the same as the component.  Are webservices
designed in a way that they do not have a lifespan?

TIA,
sj


----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email
to [EMAIL PROTECTED] with the words 'unsubscribe cfcdev' 
in the message of the email.

CFCDev is run by CFCZone (www.cfczone.org) and supported
by Mindtool, Corporation (www.mindtool.com).

An archive of the CFCDev list is available at www.mail-archive.com/[EMAIL PROTECTED]

Reply via email to