ColdFusion's adapter(s) that plug in to FDS's Remoting Service take
those remote credentials and make them available to a CFC or CFM via the
CFLOGIN scope.
 
There appear to be a few blog postings about this too.
 
http://www.google.com/search?q=CFLOGIN+Flex+setRemoteCredentials
 

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Chad Gray
Sent: Tuesday, March 27, 2007 12:11 PM
To: [email protected]
Subject: [flexcoders] remoteCredentials and CFCs



I posted to the Apollo forum, but this is more of a Flex question.

How would one use this setRemoteCredentials() method? 

http://livedocs.adobe.com/flex/201/langref/mx/rpc/remoting/RemoteObject.
html#setRemoteCredentials
<http://livedocs.adobe.com/flex/201/langref/mx/rpc/remoting/RemoteObject
.html#setRemoteCredentials> ()

Do I place it in my submitJob function in the example code below?

Here is my basic code that I am passing a job number to a cfc and I get
a result back from it.

Also how does the CFC need to be setup to even use this
RemoteCredentials information? 

<mx:Script>
<![CDATA[
private function submitJob():void {
myFlashRemote.jobNum();
}
]]>
</mx:Script>

<mx:RemoteObject id="myFlashRemote" destination="ColdFusion"
source="test" endpoint="http://demo.dev/flex2gateway/
<http://demo.dev/flex2gateway/> "> 
<mx:method name="jobNum">
<mx:arguments>
<jobNumber>{jobNumber.text}</jobNumber>
</mx:arguments>
</mx:method>
</mx:RemoteObject>

<mx:TextInput x="94" y="47" id="jobNumber"/>

<mx:Button x="134" y="98" label="Submit" click="submitJob()" />

<mx:TextArea width="356" height="29"
text="{myFlashRemote.jobNum.lastResult}" x="10" y="10"/>



 

Reply via email to