Did a quick search of archives without luck but bear with me if this
has already been answered
I am trying to get data returned from a CFC on a remote machine (the
same problem applies on a local machine)

I have done this successfully with Flash thus

NetServices.setDefaultGatewayUrl("http://www.mysit
e.com/flashservices/gateway");
gatewayConnnection = NetServices.createGatewayConnection();
mlb = gatewayConnnection.getService("mlc.mlbSQL", this);
mlb.getTeams();

However, attempting to duplicate this in Flex, the remote call is made
according to the  FlexBuilder but there is no response

The relevant part of the code I use is
<mx:RemoteObject id="test" source="mlc.mlbSQL"
endpoint="http://www.mysite.com/flashservices/gateway"; 
result="teamList=event.result" showBusyCursor="true">
</mx:RemoteObject>

 <mx:Button label="Get Teams" click="test.getTeams()"/>

I have place the mxml file in the samples directory and amended the 
flex-config.xml file 
<remote-objects><whitelist><unnamed><source>*</source>
and for good measure
<http-service-proxy><whitelist> <unnamed><url>http://*</url>

Can you plese point out what I'm doing incorrectly
Thanks





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life.
http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to