TBH this sounds like a mapping issue to your CFC/Method.  Have you  
tried simply adjusting your service path? Looking at your path below  
you have a directory called com in your ColdFusion root, then a cfc in  
that com directory called testCzzzzFC and a method in that cfc named  
testReturn.  Check you directory structure, it seems like remoting  
cannot find that cfc so are you missing a directory???

Below is a simple example I got working with never having to configure  
or mess with any config xml, just coded and run out the box np:

=======================================================

import flash.net.*;

var gateway:NetConnection = new NetConnection();
var responder:Responder   = new Responder( onResult,onFault );

function onResult( reqObj:Object ):void
{
     trace("Result from CFC: " + reqObj.toString() );
}

function onFault( reqObj:Object ):void
{
        var i:String;
        
     for ( i in reqObj )
        {
         trace( i + ":" + reqObj[i] );
     }
}

gateway.connect( "http://localhost/flashservices/gateway/"; );

gateway 
.call( "playskool.HelloWorld.Services.HelloWorld.makeRemoteCall",  
responder );

=======================================================
// Then in my ColdFusion root directory I have a folder named  
playskool with a nested folder named HelloWorld
// which contains a directory to hold my cfc's named Services.
// Services contains my CFC named HelloWorld and one method:  
makeRemoteCall.
=======================================================

HelloWorld.cfc

<cfcomponent name="HelloWorld">

        <cffunction name="makeRemoteCall" access="remote" returnType="string">
                <cfreturn "Hello World!">
        </cffunction>

</cfcomponent>

Cheers,

Simon


On 10 Jul 2009, at 18:47, heath stein wrote:

>
> I have set up a call to a cfc with as3. I have tested this on a cf  
> mx server and it worked fine. Now I am trying to get it to work on a  
> cf8 server and I'm having no luck.
>
> It returns a null value every time. I can actually change the name  
> of the method of the call to anything and I get the same result.  
> Just returns null with no errors.
>
> If I change the name of the to the cfc in the call then it throws an  
> error.
>
> ERROR:
>
> Service com.testCzzzzFC.testReturn not found.
> Server.ResourceNotFound
> error
> _________________________________________________
>
>
> As3 Code:
>
> import flash.net.NetConnection;
> import flash.net.Responder;
>
>
> var myService = new NetConnection();
>
>               
>       myService.connect("http://localhost/flashservices/gateway";);
>                       
>    var responder:Responder=new Responder(onResult,onFault);
>
>                function onResult(responder:Object):void {
>                       trace('LOADED');
>                       trace(responder);
>               }
>
>
>                function onFault(responder:Object):void {
>                       var i=0;
>                       for (i in responder) {
>                               trace(responder[i]);
>                               //ect.
>                       }
>               }
>               
>               
> myService.call("com.testCFC.testReturn",responder);
>
>
>
>
> If any one has run in to this issue, your help would be very  
> appreciated,
> Heath Stein
>
>               
>
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324439
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to