Hi Giles,

Think we're getting closer.

The CFC is created as part of the tutorial, and references the Google
web service:

<cfcomponent displayName="Google Search Component">
        <cffunction name="doSearch" access="remote" returnType="struct"
output="false">
                <cfargument name="query" type="string">
                <cfargument name="startIndex" type="string">
                <!--- doSearch body --->
                <cfinvoke 
 webservice="http://api.google.com/GoogleSearch.wsdl";
 method="doGoogleSearch"
 returnvariable="aGoogleSearchResult">
        <cfinvokeargument name="key"
value="GGD3Ckx1bWj20ZIRO5KEO0i48tKSw2mN"/>
        <cfinvokeargument name="q" value="#arguments.query#"/>
        <cfinvokeargument name="start" value="#arguments.startIndex#"/>
        <cfinvokeargument name="maxResults" value="10"/>
        <cfinvokeargument name="filter" value="false"/>
        <cfinvokeargument name="restrict" value="false"/>
        <cfinvokeargument name="safeSearch" value="false"/>
        <cfinvokeargument name="lr" value=""/>
        <cfinvokeargument name="ie" value="utf8"/>
        <cfinvokeargument name="oe" value="utf8"/>
</cfinvoke>
<cfset searchResults = structnew()>
<cfset searchResults.resultElements =
aGoogleSearchResult.resultElements>
<cfset searchResults.endIndex = aGoogleSearchResult.endIndex>
<cfset searchResults.startIndex = aGoogleSearchResult.startIndex>
<cfset searchResults.totalCount =
aGoogleSearchResult.estimatedTotalResultsCount>
                <cfreturn searchResults>
        </cffunction>
</cfcomponent>


This CFC is in the same directory as the SWF file, and the actionscript
within the swf references the cfc as:

if (inited == null) {
        //do this code only once
        inited = true;
        //The following sets the default gateway URL.
        
NetServices.setDefaultGatewayURL("http://kryten/flashservices/gateway";);
        //Connet to the gateway
        gateway_conn = NetServices.createGatewayConnection();
        //get a reference to the Google service (CFC)
        googleService = gateway_conn.getService("googleService", this);
}



I'm thinking that the CFC isn't being found or something, but it's in
same directory?

R


> -----Original Message-----
> From: Giles Roadnight [mailto:[EMAIL PROTECTED]]
> Sent: 13 December 2002 14:43
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] FlashRemoting & CFMX
> 
> I see. I think I know what the problem is. As you are using
> 
> http://kryten/flashservices/gateway
> 
> for the flash gateway the flash movie is looking at your server for
the
> web service. The google service will be on the google server. Either
set
> a simple webservice up on your server (probably best) or change the
> gateway to the google server. I'm not sure how you would set that up
> though.
> 
> Probably best is just to set up really simple CFC that just echos back
a
> string and puts a time on the end. That's what I use to test.
> 
> 
> Giles Roadnight
> http://giles.roadnight.name
> 
> 
> -----Original Message-----
> From: Ross Williams [mailto:[EMAIL PROTECTED]]
> Sent: 13 December 2002 14:36
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] FlashRemoting & CFMX
> 
> Hi Giles,
> 
> We're running on RedHat8. Getting the following message when debugging
> within Flash:
> 
> "No service name googleService is known to FlashRemoting"
> 
> Any ideas where to poke next?
> 
> R
> 
> > -----Original Message-----
> > From: Giles Roadnight [mailto:[EMAIL PROTECTED]]
> > Sent: 13 December 2002 14:31
> > To: [EMAIL PROTECTED]
> > Subject: RE: [ cf-dev ] FlashRemoting & CFMX
> >
> > Do you use a multi-honed server? I had some problems with this and
had
> > to use the default IIS website to begin with until I got the bug
> fixed.
> > You have to delete the IIS to MX connector using the batch file,
> install
> > the MX updater 1, then run the IIS connector batch file. This
installs
> > the java directory into all sites not just the default.
> >
> > Apart from that it should work fine.
> >
> >
> > Giles Roadnight
> > http://giles.roadnight.name
> >
> >
> > -----Original Message-----
> > From: Ross Williams [mailto:[EMAIL PROTECTED]]
> > Sent: 13 December 2002 14:29
> > To: [EMAIL PROTECTED]
> > Subject: [ cf-dev ] FlashRemoting & CFMX
> >
> > Hi,
> >
> > I'm dipping my toes into FlashRemoting and CFMX using the Google
> > webservices example from Macromedia.com
> >
> > Not sure if we've got CFMX set up correctly to handle FlashRemoting
> > though.
> >
> > The actionscript lines within the FLA are:
> >
> > #include "NetServices.as"
> > #include "NetDebug.as";
> >
> > The gateway we're for the FlashRemoting is:
> >
> > http://kryten/flashservices/gateway
> >
> > (where kryten is the name of our CFMX server)
> >
> >
> > Does CFMX need anything extra configured for CFMX remoting? Haven't
> got
> > my head around it fully yet and would appreciate some help!! :)
> >
> > Ross
> >
> > -------------------------------------------------------
> > Ross Williams
> > Managing Director, Rawnet Limited
> > Direct Phone : +44 (0) 1344 393 440
> > Switchboard : +44 (0) 1344 393 040
> > -------------------------------------------------------
> > rawnet ltd
> > Atrium Court
> > Bracknell                    [EMAIL PROTECTED]
> > Berkshire                    Tel : +44 (0) 1344 393 040
> > RG12 1BW, UK                 http://www.rawnet.com
> > -------------------------------------------------------
> > This message may contain information which is legally privileged
> and/or
> > confidential.  If you are not the intended recipient, you are hereby
> > notified that any unauthorised disclosure, copying, distribution or
> use
> > of this information is strictly prohibited. Such notification
> > notwithstanding, any comments, opinions, information or conclusions
> > expressed in this message are those of the originator, not of rawnet
> > limited, unless otherwise explicitly and independently indicated by
an
> > authorised representative of rawnet limited.
> > -------------------------------------------------------
> >
> >
> >
> >
> > --
> > ** Archive:
http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > For human help, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> > --
> > ** Archive:
http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> >
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > For human help, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> 
> 
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> --
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 




-- 
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to