I don't know why my earlier two messages didn't make to to the list.
But I'm putting both of those messages here again (excuse me if there
duplication. I can't seem to post from my gmail id).

I agree with Andrew totally. Using remoteobject to invoke the cfc on
the server is a much more efficient. I've been using remoteobject to
access cfc and it works beautifully.

A question for you: Are you going to be running cf7 and flex on the
same jrun instance?

If you are, keep in mind the following:

1. Remove the flash remoting gateway that is installed by default with
cf7 (through jrun admin).

2. Make sure that in the flex-config.xml, you have the following value
setup for the amf-gateway (under remote-object node).

       <amf-gateway>{context.root}/amfgateway</amf-gateway>

3. When calling the remote object (cfc), make sure to add the correct
endpoint (in the example code below). So, for example, if you were
going to call a cfc called foo with the path myfolder/folder/foo.cfc,
you'd use the following call:

       <mx:RemoteObject id="myService" source="myfolder.folder.foo"
endpoint="@ContextRoot()/flashservices/gateway">
       </mx:RemoteObject>


Another reason why I'd prefer remoteobject over webservices.

If a cfc extends another component, you cannot access the inherited
functions when using webservices. You will have specifically write
functions in the cfc you are calling to expsore the inherited
functions.

However, when you use remoteobject to access a cfc, you can access
inherited functions without needing to "expose" them..

Indy






--- In flexcoders@yahoogroups.com, Andrew Muller <[EMAIL PROTECTED]>
wrote:
> Ted
> 
> Is there any reason, since you're using CF7, why you wouldn't connect
> from Flex via Flash Remoting instead of Web Services, you'd be
> consuming the same CFC presumably and the data should be much less
> verbose...
> 
> 
> Andrew
> 
> Andrew Muller
> Partner, RocketBoots
> http://www.rocketboots.com.au
> 
> On 5/19/05, Theodore E Patrick <[EMAIL PROTECTED]> wrote:
> >  I am looking at using CF7 and CFC web services with Flex 1.5. I
understand
> >  that some have seen issues with using these two togther or was
this limited
> >  to CF6?
> >  
> >  Can anyone highlight the issue for me?
> >  
> >  Any help would be most appreciated.
> >  
> >  Cheers,
> >  
> >  Ted Patrick
> >  
> >  
> >  ________________________________
> >  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 the Yahoo! Terms of Service.




 
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