RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-14 Thread Peter Farland
Nope, the fact that server B has a /crossdomain.xml file is not relevant
and not even known at compile time. In fact, for RPC services like
RemoteObject, WebService and HTTPService, compiling against
services-config.xml is only a convenience. The MXML compiler uses this
information to generate some ActionScript code for you so it saves you
from having to construct the list of mx.messaging.Channel
implementations used to construct a ChannelSet (it takes a "set" because
it allows you specify multiple channels and fail over to the next
channel in in the event that one fails to connect). If you're
comfortable with Channels you can programmatically create your own
instances instead.
 
Pete



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Thursday, January 11, 2007 10:28 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?



no way!  I thought that was for webservices or REST calls only.
Interesting, So I can have a SWF served from server A that connects to
server B via remoteobject if server B has a crossdomain file?   So, do I
need to compile against a services-config.xml that has the URI hardcoded
to server B to do this?

DK


On 1/11/07, Peter Farland <[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> > wrote: 

You can avoid that restriction if you use a /crossdomain.xml
file that 
is hosted on the server you are remoting to and allows the
domain from
which your swf is hosted to contact it.



From: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> [mailto:flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> ] On
Behalf Of Douglas Knudsen
Sent: Thursday, January 11, 2007 1:32 PM
To: flexcoders@yahoogroups.com
<mailto:flexcoders@yahoogroups.com> 
    Subject: Re: [flexcoders] Anyone Using a Remote CF Server with
Flex 2,
Remoting?



AFAIK, the swf has to be served from the same box you remote to.

DK


--
Flexcoders Mailing List 
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
<http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt> 
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
<http://www.mail-archive.com/flexcoders%40yahoogroups.com> 
Yahoo! Groups Links


(Yahoo! ID required)

mailto: [EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 








-- 
Douglas Knudsen
http://www.cubicleman.com <http://www.cubicleman.com> 
this is my signature, like it? 

 


Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-12 Thread Simeon Bateman

You got it doug.  Thats why i copy the services-config.xml file to a local
directory in my project and use the -services to tell flex builder how to
find it.  When I create  a new project I tell flex builder its a normal
project then I add the -services as a compiler argument.

This allows me to develop different applications for different servers
without having to manage them all in my main cf services-config file.

simeon


On 1/11/07, Douglas Knudsen <[EMAIL PROTECTED]> wrote:


  no way!  I thought that was for webservices or REST calls only.
Interesting, So I can have a SWF served from server A that connects to
server B via remoteobject if server B has a crossdomain file?   So, do I
need to compile against a services-config.xml that has the URI hardcoded
to server B to do this?

DK




Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Douglas Knudsen

no way!  I thought that was for webservices or REST calls only.
Interesting, So I can have a SWF served from server A that connects to
server B via remoteobject if server B has a crossdomain file?   So, do I
need to compile against a services-config.xml that has the URI hardcoded to
server B to do this?

DK

On 1/11/07, Peter Farland <[EMAIL PROTECTED]> wrote:


You can avoid that restriction if you use a /crossdomain.xml file that
is hosted on the server you are remoting to and allows the domain from
which your swf is hosted to contact it.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Thursday, January 11, 2007 1:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?



AFAIK, the swf has to be served from the same box you remote to.

DK


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Stefan Richter
I had similar trouble:
http://www.flashcomguru.com/index.cfm/2006/11/11/flex2remoting
 
Read all the comments before you try anything.
 
If I remember correctly I managed to use a remote CF box *without* having to
use any services-config file whatsoever (which is what I wanted to do).
I almost lost my mind back then... :-) Endpoint, config files,
destinations... hh how complicated does this look when you glance at the
docs?
 
Stefan
 
 


  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter Farland
Sent: 11 January 2007 19:01
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?



You can avoid that restriction if you use a /crossdomain.xml file that
is hosted on the server you are remoting to and allows the domain from
which your swf is hosted to contact it.



From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com]
On
Behalf Of Douglas Knudsen
Sent: Thursday, January 11, 2007 1:32 PM
To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
Subject: Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?

AFAIK, the swf has to be served from the same box you remote to.

DK


 



RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Peter Farland
You can avoid that restriction if you use a /crossdomain.xml file that
is hosted on the server you are remoting to and allows the domain from
which your swf is hosted to contact it.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Douglas Knudsen
Sent: Thursday, January 11, 2007 1:32 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?



AFAIK, the swf has to be served from the same box you remote to.

DK


RE: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Peter Farland
1. Do you have a crossdomain.xml file in the webroot of the server
hosting the flex2gateway endpoint allowing access for SWFs loaded in
other domains?
 
2. I think you are relying on the default context root for your cold
fusion deployment, if so, try removing the {context-root} token out of
your channel-definition in services-config.xml (or alternatively provide
a value for the command line args -context-root "" )
 
 
 


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jim Pickering
Sent: Thursday, January 11, 2007 12:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Anyone Using a Remote CF Server with Flex 2,
Remoting?



[RPC Fault faultString="[MessagingError message='Unknown
destination'Coldfusion'.']" faultCode="InvokeFailed"
faultDetail="Couldn'testablish a connection to 'Coldfusion'"]

Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet Edition for
Development on one machine. FlexBuilder2 on my workstation machine. A
drive mapping to the webroot and to the JRun4 folder. My Flex Project is
configured and successfully validated to the root folder at 
J:\servers\cfusion\cfusion-ear\cfusion-war.

Compiler in FlexBuilder 2 is comfigured with this: -services
"J:\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\services-config
\
.xml" -locale en_US

This is as basic as it gets - I am trying to get a HelloWorld app (from
lynda.com actually) working with Flex 2 and CF via Remoting on a
remoteCF Development Server. Can this work or is there a bug with Flex
2which requires that CF be loaded locally for development?

If anyone is successfully developing Flex 2 apps with a remote
Coldfusion server, I would appreciate it if you could walk me through
the setup steps. Below are more details of what I've done so far.

-

I have taken the time to read past entries on this topic, but the issues
were slightly different than mine and didn't offer enough of a solution
to help resolve my issue.

In my HelloFromColdfusion.mxml file is the following code:


http://www.adobe.com/2006/mxml
<http://www.adobe.com/2006/mxml> "
layout="vertical">








In a subdirectory in the webroot called flex2btb, in the flex directory
is MyService.cfc. I have the crossdomain.xml file in my webroot also.
The code is very basic:








BTW, I get the blank white screen when I browse to
http://www.[mydomainhere].com/flex2gateway.

I get this error when I run the app at 
http://www.[mydomainhere].com/flex2btb/flex/HelloFromColdFusion.html:

[RPC Fault faultString="[MessagingError message='Unknown destination
'Coldfusion'.']" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'Coldfusion'"]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo
\
ke <http://www.adobe.com/2006/flex/mx/internal::invoke> ()
at
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/intern
\
al::invoke <http://www.adobe.com/2006/flex/mx/internal::invoke> ()
at mx.rpc.remoting::Operation/send()
at Function/http://adobe.com/AS3/2006/builtin::apply
<http://adobe.com/AS3/2006/builtin::apply> ()
at mx.rpc.remoting.mxml::Operation/send()
at Function/http://adobe.com/AS3/2006/builtin::apply
<http://adobe.com/AS3/2006/builtin::apply> ()
at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/pro
\
xy::callProperty
<http://www.adobe.com/2006/actionscript/flash/proxy::callProperty> ()
at HelloFromColdFusion/___Button1_click()

My services-config.xml file is default, but I have tried some different
settings, restarting my CF server with every change; none worked
successfully. I've tried the default endpoint line and I tried putting
in http://www.[mydomainname].com/flex2gateway. Both throw the same
error.



http://{server.name}:{server.port}{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/>


false

false





Is anybody using a remote Coldfusion development server with Flex 2 and
Remoting? I'd appreciate ideas to try or solutions to this mystery. I'm
not the type that likes to get super deep into the why and how it works.
I just want it to work so I can start developing my Flex 2/CF app.

Thanks,

Jim Pickering



 


Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Patrick Mineault
It's your services-config.xml that is off. Try using this:










*







http://localhost/amfphp/gateway.php"; 
class="flex.messaging.endpoints.AMFEndpoint"/>




Set destination to 'amfphp' and 'endpoint' to your ColdFusion endpoint 
in the RemoteObject tag. Then you can change the 'amfphp' names to 
'coldFusion' if it bothers you ;)

Patrick

Jim Pickering a écrit :
>
> [RPC Fault faultString= "[MessagingError message='Unknown
> destination' Coldfusion' .']" faultCode="InvokeFa iled"
> faultDetail= "Couldn'testabli sh a connection to 'Coldfusion' "]
>
> Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet Edition for
> Development on one machine. FlexBuilder2 on my workstation machine. A
> drive mapping to the webroot and to the JRun4 folder. My Flex Project is
> configured and successfully validated to the root folder at
> J:\servers\cfusion\ cfusion-ear\ cfusion-war.
>
> Compiler in FlexBuilder 2 is comfigured with this: -services
> "J:\servers\ cfusion\cfusion- ear\cfusion- war\WEB-INF\ flex\services- 
> config\
> .xml" -locale en_US
>
> This is as basic as it gets - I am trying to get a HelloWorld app (from
> lynda.com actually) working with Flex 2 and CF via Remoting on a
> remoteCF Development Server. Can this work or is there a bug with Flex
> 2which requires that CF be loaded locally for development?
>
> If anyone is successfully developing Flex 2 apps with a remote
> Coldfusion server, I would appreciate it if you could walk me through
> the setup steps. Below are more details of what I've done so far.
>
>  - - ---
>
> I have taken the time to read past entries on this topic, but the issues
> were slightly different than mine and didn't offer enough of a solution
> to help resolve my issue.
>
> In my HelloFromColdfusion .mxml file is the following code:
>
> 
> http://www.adobe. com/2006/ mxml 
> "
> layout="vertical" >
>
>  destination= "Coldfusion"
> source="flex2btb. cfc.MyService" />
>
> 
>
> 
> 
>
> In a subdirectory in the webroot called flex2btb, in the flex directory
> is MyService.cfc. I have the crossdomain. xml file in my webroot also.
> The code is very basic:
>
> 
>
> 
> 
> 
> 
>
> BTW, I get the blank white screen when I browse to
> http://www.[mydomainhere] .com/flex2gatewa y.
>
> I get this error when I run the app at
> http://www.[mydomainhere] .com/flex2btb/ flex/HelloFromCo ldFusion. html:
>
> [RPC Fault faultString= "[MessagingError message='Unknown destination
> 'Coldfusion' .']" faultCode="InvokeFa iled" faultDetail= "Couldn't
> establish a connection to 'Coldfusion' "]
> at
> mx.rpc::AbstractInv oker/http://www.adobe. com/2006/ flex/mx/internal 
> ::invo\
> ke ()
> at
> mx.rpc.remoting. mxml::Operation/http://www.adobe. com/2006/ 
> flex/mx/intern\
> al::invoke ()
> at mx.rpc.remoting: :Operation/ send()
> at Function/http://adobe. com/AS3/2006/ builtin:: apply 
> ()
> at mx.rpc.remoting. mxml::Operation/ send()
> at Function/http://adobe. com/AS3/2006/ builtin:: apply 
> ()
> at
> mx.rpc::AbstractSer vice/http://www.adobe. com/2006/ actionscript/ 
> flash/pro\
> xy::callProperty 
> ()
> at HelloFromColdFusion /___Button1_ click()
>
> My services-config. xml file is default, but I have tried some different
> settings, restarting my CF server with every change; none worked
> successfully. I've tried the default endpoint line and I tried putting
> in http://www.[mydomainname] .com/flex2gatewa y. Both throw the same
> error.
>
> 
>  class="mx.messaging .channels. AMFChannel" >
>  uri="http:// {server.name} :{server. port}{context. root}/flex2gatew ay/"
> class="flex. messaging. endpoints. AMFEndpoint" />
>
> 
>  false
> 
> false< /instantiate- types>
> 
> 
> 
> 
>
> Is anybody using a remote Coldfusion development server with Flex 2 and
> Remoting? I'd appreciate ideas to try or solutions to this mystery. I'm
> not the type that likes to get super deep into the why and how it works.
> I just want it to work so I can start developing my Flex 2/CF app.
>
> Thanks,
>
> Jim Pickering
>
>  



Re: [flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Douglas Knudsen

AFAIK, the swf has to be served from the same box you remote to.

DK

On 1/11/07, Jim Pickering <[EMAIL PROTECTED]> wrote:


[RPC Fault faultString="[MessagingError message='Unknown
destination'Coldfusion'.']" faultCode="InvokeFailed"
faultDetail="Couldn'testablish a connection to 'Coldfusion'"]

Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet Edition for
Development on one machine. FlexBuilder2 on my workstation machine. A
drive mapping to the webroot and to the JRun4 folder. My Flex Project is
configured and successfully validated to the root folder at
J:\servers\cfusion\cfusion-ear\cfusion-war.

Compiler in FlexBuilder 2 is comfigured with this: -services
"J:\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\services-config\
.xml" -locale en_US

This is as basic as it gets - I am trying to get a HelloWorld app (from
lynda.com actually) working with Flex 2 and CF via Remoting on a
remoteCF Development Server. Can this work or is there a bug with Flex
2which requires that CF be loaded locally for development?

If anyone is successfully developing Flex 2 apps with a remote
Coldfusion server, I would appreciate it if you could walk me through
the setup steps.  Below are more details of what I've done so far.

-

I have taken the time to read past entries on this topic, but the issues
were slightly different than mine and didn't offer enough of a solution
to help resolve my issue.

In my HelloFromColdfusion.mxml file is the following code:


http://www.adobe.com/2006/mxml";
layout="vertical">

 

 

 


In a subdirectory in the webroot called flex2btb, in the flex directory
is MyService.cfc. I have the crossdomain.xml file in my webroot also.
The code is very basic:



 
 
 


BTW, I get the blank white screen when I browse to
http://www.[mydomainhere].com/flex2gateway.

I get this error when I run the app at
http://www.[mydomainhere].com/flex2btb/flex/HelloFromColdFusion.html:

[RPC Fault faultString="[MessagingError message='Unknown destination
'Coldfusion'.']" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'Coldfusion'"]
 at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo\
ke()
 at
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/intern\
al::invoke()
 at mx.rpc.remoting::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.rpc.remoting.mxml::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/pro\
xy::callProperty()
 at HelloFromColdFusion/___Button1_click()

My services-config.xml file is default, but I have tried some different
settings, restarting my CF server with every change; none worked
successfully.  I've tried the default endpoint line and I tried putting
in http://www.[mydomainname].com/flex2gateway. Both throw the same
error.


 
 http://{server.name}:{server.port}{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/>

 
 false
 
 false
 
 
 
 

Is anybody using a remote Coldfusion development server with Flex 2  and
Remoting? I'd appreciate ideas to try or solutions to this mystery. I'm
not the type that likes to get super deep into the why and how it works.
I just want it to work so I can start developing my Flex 2/CF app.

Thanks,

Jim Pickering





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links







--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


[flexcoders] Anyone Using a Remote CF Server with Flex 2, Remoting?

2007-01-11 Thread Jim Pickering
[RPC Fault faultString="[MessagingError message='Unknown
destination'Coldfusion'.']" faultCode="InvokeFailed"
faultDetail="Couldn'testablish a connection to 'Coldfusion'"]

Everything is default. CFMX 7.0.2 Multiserver on IIS DevNet Edition for
Development on one machine. FlexBuilder2 on my workstation machine. A
drive mapping to the webroot and to the JRun4 folder. My Flex Project is
configured and successfully validated to the root folder at 
J:\servers\cfusion\cfusion-ear\cfusion-war.

Compiler in FlexBuilder 2 is comfigured with this: -services
"J:\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\flex\services-config\
.xml" -locale en_US

This is as basic as it gets - I am trying to get a HelloWorld app (from
lynda.com actually) working with Flex 2 and CF via Remoting on a
remoteCF Development Server. Can this work or is there a bug with Flex
2which requires that CF be loaded locally for development?

If anyone is successfully developing Flex 2 apps with a remote
Coldfusion server, I would appreciate it if you could walk me through
the setup steps.  Below are more details of what I've done so far.

-

I have taken the time to read past entries on this topic, but the issues
were slightly different than mine and didn't offer enough of a solution
to help resolve my issue.

In my HelloFromColdfusion.mxml file is the following code:


http://www.adobe.com/2006/mxml";
layout="vertical">

 

 

 


In a subdirectory in the webroot called flex2btb, in the flex directory
is MyService.cfc. I have the crossdomain.xml file in my webroot also.
The code is very basic:



 
 
 


BTW, I get the blank white screen when I browse to
http://www.[mydomainhere].com/flex2gateway.

I get this error when I run the app at 
http://www.[mydomainhere].com/flex2btb/flex/HelloFromColdFusion.html:

[RPC Fault faultString="[MessagingError message='Unknown destination
'Coldfusion'.']" faultCode="InvokeFailed" faultDetail="Couldn't
establish a connection to 'Coldfusion'"]
 at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::invo\
ke()
 at
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/intern\
al::invoke()
 at mx.rpc.remoting::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.rpc.remoting.mxml::Operation/send()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/pro\
xy::callProperty()
 at HelloFromColdFusion/___Button1_click()

My services-config.xml file is default, but I have tried some different
settings, restarting my CF server with every change; none worked
successfully.  I've tried the default endpoint line and I tried putting
in http://www.[mydomainname].com/flex2gateway. Both throw the same
error.


 
 http://{server.name}:{server.port}{context.root}/flex2gateway/";
class="flex.messaging.endpoints.AMFEndpoint"/>

 
 false
 
 false
 
 
 
 

Is anybody using a remote Coldfusion development server with Flex 2  and
Remoting? I'd appreciate ideas to try or solutions to this mystery. I'm
not the type that likes to get super deep into the why and how it works.
I just want it to work so I can start developing my Flex 2/CF app.

Thanks,

Jim Pickering