Might be having a Friday moment here but can anyone see why this code throws
an exception on line 12: Invalid CFML construct
<cflogin>
<cfif IsDefined("CFLOGIN")>
<cfloginuser name="#CFLOGIN.name#" password="#CFLOGIN.password#"
roles="Admin">
</cfif>
<cfif #CFLOGIN.name# eq "bob" AND #CFLOGIN.password# eq "password">
<cfset msg="works">
<cfelse>
<cfset msg="crap">
</cfif>
</cflogin>
<!---error is on line below --->
<cfcomponent displayname="test the authentication" hint="testing">
<cffunction name="getStructure" access="remote" output="false"
returntype="struct" hint="Returns test data">
<cfscript>
stMsg = StructNew();
stMenuInfo["msg"] = "#msg#";
</cfscript>
<cfreturn stMsg>
</cffunction>
</cfcomponent>
Using this to call it from Flash:
gatewayConnection =
NetServices.createGatewayConnection("http://127.0.0.1:8500/flashservices/gat
eway");
gateway_conn.setCredentials("bob","password");
var server = gatewayConnection.getService("test.testcfc", this);
server.getStructure();
Cheers,
Douglas McKenzie
----------------------------------------
Internet Developer / Designer
[EMAIL PROTECTED]
020 7267 6718
----------------------------------------
--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]