How are you determining that there is no response?  Instead of assigning
the result directly to a variable, call a handler function.  Then put a
breakpoint in that function.

Also, enable remote object debugging in flex-config, see what that
shows, in the flex server command window, or in the logs.
Tracy

-----Original Message-----
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yaagcur
Sent: Monday, October 03, 2005 9:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Cannot get Remote objects connection

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






--
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



 






------------------------ 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