nesium / cocoa-amf

Objective-C implementation of the Flash Remoting format (AMF0/AMF3) for servers and clients.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

CocoaAMF-iPhone sample works with amfphp but not ColdFusion remoting

mgithens opened this issue · comments

I have provided the sample code below. Any suggestions would be much appreciated.

Error Message:

{
code = "Server.Processing";
details = ;
message = "No destination with id 'ExampleService' is registered with any service.";
rootCause = ;
}

DemoCaller.m

m_remotingCall.URL = [NSURL URLWithString:@"http://mydomain.com/flex2gateway"];
m_remotingCall.service = @"ExampleService";

ExampleService.cfc

<cffunction name="hello" access="remote" returntype="string">
    <cfreturn "hello world!">
</cffunction>

<cffunction name="returnArray" access="remote" returntype="array">
    <cfset var ar = ['1','2','3','apple','pears','oranges'] />
    <cfreturn ar>
</cffunction>

<cffunction name="returnFloat" access="remote" returntype="numeric">
    <cfset var float = 1.23456789 />
    <cfreturn float>
</cffunction>      

hi. unfortunately i have no clue of coldfusion, but i think the error message looks much like it the problem is on the serverside. have you verfied that your cf code works with a flex app for example?