the source attribute is the path that ColdFusion will use to resolve 
your CFC.
If you use com.winn.leads it will expect to find leads.cfc inside 
com/winn/ folder.
It's just like when you use createObject('component','some.dot.notation').

If you are using cf with apache/iis yes, the endpoint url should be 
something targeting port 80 (standard).
Also, set a fault handler for you remote object and run it in debug mode 
and take a look into the error returned.

Also, I don't know if it was a typo but you should call myCfc.getInfo()



João Fernandes


Derrick Anderson wrote:
> Hi,
>
> I am running CF standard 7.0.2 as it says is required to do this.
>
> in my C:\CFusionMX7\wwwroot\WEB-INF\flex\flex-services.xml file i have 
> the 1 standard channel, without the port (cuz im not using built in 
> server, right?)
>
> <channel-definition id="my-cfamf" 
> class="mx.messaging.channels.AMFChannel">
>            
>             <properties>
>                 <polling-enabled>false</polling-enabled>
>                 <serialization>
>                     <!--
>                     <custom-serializer type="xml" 
> class="flex.messaging.io.amf.serializers.XMLSerializer" />
>                     <custom-serializer type="typed-object" 
> class="coldfusion.flash.messaging.io.amf.serializers.TypedObjectSerializer"/>
>                     -->
>                     <custom-deserializer type="typed-object" 
> class="coldfusion.flash.messaging.io.amf.serializers.TypedObjectDeserializer" 
> />
>                 </serialization>
>             </properties>
>         </channel-definition> 
>
> THEN, in my flex application very simply i am defining
>
> <mx:RemoteObject id="myCfc" destination="ColdFusion" 
> source="com.winn.leads" result="remotingCFCHandler(event)"/>
>
> but when i run
>
> myCfc.getInfo
>
> which should return me a number (just for testing), nothing happens- 
> the handler function puts the response in a textarea- i have an http 
> proxy running and i don't even see a request going out.  i was getting 
> an error that it could not find that CFC but somehow i fixed that.
>
> what i need to know is:
> the SOURCE attribute of the mx:RemoteObject class, what path is this 
> from?  how is the endpoint url in the channel related to the URL i'm 
> using for the site, and what is the best way to access components in 
> my site (not in the cfusionMX7\wwwroot).
>
> thanks,
> d.
>
> ----- Original Message ----
> From: João Fernandes <[EMAIL PROTECTED]>
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, May 15, 2007 2:38:44 PM
> Subject: Re: [flexcoders] flash remoting documentation
>
> Hi Derrick,
>
> what is your problem about connecting flex with CF? what version of CF
> are you running?
>
> João Fernandes
>
>
>
> ------------------------------------------------------------------------
> Sick sense of humor? Visit Yahoo! TV's Comedy with an Edge 
> <http://us.rd.yahoo.com/evt=47093/*http://tv.yahoo.com/collections/222>to 
> see what's on, when.
>  

Reply via email to