Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
Joćo Fernandes #1
Flash Remoting Application.cfc & Application.cfm problem
Hi there,
When using Flex 1.5 client application, when using Application.cfm to deal
with remoting SetCredentials(user,pwd), I just set it once and all requests
to my endpoint use those credentials even if the target component is
different. In a current project, I started using Application.cfc
(onRequestStart) instead of Application.cfm and now I have to set
credentials to all my components before calling methods even if my endpoint
url is the same for all my cfc components.
Authentication code:
<cflogin>
<cfif isdefined("cflogin")>
<CFNTAuthenticate username="#cflogin.name#"
password="#cflogin.password#" domain="mydomain" result="authenticated"
listgroups="yes">
<cfif authenticated.status eq "success">
<cfloginuser name="#cflogin.name#" password="#cflogin.password#"
roles="#authenticated.groups#">
</cfif>
</cfif>
</cflogin>
my RemoteObjects definitions:
<mx:RemoteObject id="loginService"
endpoint="/flashservices/gateway?macromedia=rocks"
source="pt.cofina.service.remoting.LoginManager" showBusyCursor="true"
protocol="http"
result="event.call.resultHandler( event );"
fault="event.call.faultHandler( event );"/>
<mx:RemoteObject id="distribuicaoService"
endpoint="/flashservices/gateway?macromedia=rocks"
source="pt.cofina.service.remoting.distribuicaoMan ager"
showBusyCursor="true" protocol="http"
result="event.call.resultHandler( event );"
fault="event.call.faultHandler( event );"/>
With Application.cfm:
loginService.connection.setCredentials( myusername, mypwd )
If I use the Application.cfc I have to use setCredential for each CFC:
loginService.connection.setCredentials( myusername, mypwd )
distribuicaoService.connection.setCredentials( myusername, mypwd )
Is this expected?
Joćo Fernandes
Joćo Fernandes Guest
-
Problem with Application variables using Application.cfc
Hi guys, I'm using CFMX7 and with that the Application.cfc. I've defined the app variables using <cfset This.varname = "something"> I would like... -
dllimport call in aspnet application makes the application hangs
As our application design requires us to use one of the validation API engine which was written on C(so basically all I have is a dll) and I tested... -
What issue will HIT me hard when I convert an Access 2002 MDE application to Web Application?
Hi All, Current Access 2002 MDE application: - has no tier - has neither business object nor any kind of object (Except MS Form object and... -
Can a web application call methods on a webservice running in the same application
Can a web application call methods on a webservice running in the same application Thanks Ron Vecchi -
How to inherit a base form in all application forms of an asp.net application
hello friend, while developing an asp.net application, i created a base form(say mybaseform1) with certain links on it. then i tried to...



Reply With Quote

