I've never tried to have a Flex SWF use a CFC on a different server then
that which it was served from, though I know its possible. What I suspect
you have to do is create a local copy of the services-config.xml file and
point your Flex app to it in the compiler properties with the -services flag
in FB and then compile it. In this local version you'd hardcode these
entries in services-config
{server.name}:{server.port}{context.root}
with your remote server info.
I do know that this method-access-level has nothing to do with remotely
accessing your CFC
From the services-config file we have
<!-- allow "public and remote" or just "remote" methods to be invoked -->
<method-access-level>remote</method-access-level>
Assuming the notation there from Adobe is correct, I believe it to be, this
tells remoting what access level of methods in your CFCs it can access.
Keep in mind that changing a CFC's method access to remote publishes WSDL
for it and makes it available via webservices, not so secure by default,
hence the need for public access only. This describes how Flash remoting
accesses your CFC method NOT how your SWF accesses your CFC. Recall that
your SWF does not access any CFC directly, eh? Rather the access to a CFC
is via remoting or WSDL. (or a proxy cfm page for REST)
You should also check this setting in services-config
<!-- Use the ColdFusion mappings to find CFCs, by default only CFC files
under your webroot can be found. -->
<use-mappings>false</use-mappings>
If you are using mappings to access CFCs not under your webroot, this needs
to be true.
Some resources on what you are trying to do are:
http://weblogs.macromedia.com/lin/archives/2007/01/how_to_access_c.cfm
DK
On Thu, Feb 14, 2008 at 2:14 PM, Stefan Richter <[EMAIL PROTECTED]>
wrote:
> Here's an extract
> <method-access-level>remote</method-access-level>
>
> Given the fact that I can hit a CFC marked as public from a remote
> location, what does that tell me? Have I overlooked something? Does
> the crossdomain.xml play a role?
>
> Here is mine:
> <?xml version="1.0"?>
> <!DOCTYPE cross-domain-policy SYSTEM "
> http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd
> ">
> <cross-domain-policy>
> <allow-access-from domain="*" secure="false"/>
> </cross-domain-policy>
>
>
> Regards,
>
> Stefan
>
>
>
>
>
> On 14 Feb 2008, at 17:09, João_Fernandes wrote:
>
> > check on the server the 'method-access-level' in the ColdFusion
> > destination. It should be only 'remote' and not 'public and remote'.
> > --
> >
> > João Fernandes
> >
> > http://www.onflexwithcf.org
> > http://www.riapt.org
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;160198600;22374440;w
Archive: http://www.houseoffusion.com/groups/Flex/message.cfm/messageid:4934
Subscription: http://www.houseoffusion.com/groups/Flex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.37