I can get to it if I browse to the same
cfc. http://servername/mappedName/services/app/service.cfc.
I can also execute it from CF code. The problem is that Flash Remoting is not
configuring properly since I can’t do http://servername/flashservices/gateway.
On my other servers, it’s working just fine and after doing comprehensive
comparison, I can’t find anything wrong.
Agha Mehdi
IDT - eBusiness Program Manager
If the mapped path to the
CFC was "/remote/RemoteService.cfc", then move the CFC to a directory
under the webroot with the same path.
You should be able to get to it via a browser:
http://servername/remote/RemoteService.cfc
If you do that, you can now call the CFC as a remote object:
<mx:RemoteObject id="remote"
endpoint="
http://servername/flashservices/gateway"
source="remote.RemoteService"/>
The key to it all is that the CFC must be under the webroot.
On 1/31/06, Mehdi,
Agha <[EMAIL PROTECTED]>
wrote:
Flashgateway.ear is not deployed.
Agha Mehdi
IDT - eBusiness Program Manager
If you're deploying CF and Flex on top of JRun, make sure the
JRun flashgateway.ear isn't being deployed for your web application as it
may be using the /flashservices context root.
From: [email protected]
[mailto:
[email protected]] On Behalf Of Paul
Kenney
Sent: Monday, January 30, 2006
9:21 PM
To: [email protected]
Subject: Re: [flexcoders] Re:
FlashServices/Gateway
Agha, is the CFC located under the IIS webroot?
On
1/30/06, João Fernandes <[EMAIL PROTECTED]>
wrote:
To tell you the truth, I never runned Flex side-by-side
with ColdFusion in separated instances, always under the same instance + under
the same contextRoot.
Try to change your endpoint to Flex's amfgateway
"/amfgateway" see if you can get any data.
BTW, what was the fault when calling the RO pointing
to /flashservices/gateway ?
João Fernandes
Secção de Desenvolvimento
Departamento de Informática
-----Original Message-----
From: [email protected]
on behalf of Mehdi, Agha
Sent: Mon 30-Jan-06 11:36 PM
To: [email protected]
Subject: RE: [flexcoders] Re: FlashServices/Gateway
Flex is a separate instance and both CF and Flex
instances are running under
IIS. I have already mapped the instances to IIS
sites using wsconfig.exe.
The CF instance is running just fine no problem.
Flex runs fine too if it
doesn't have to communicate with the backend (CF
instance)
Agha Mehdi
IDT - eBusiness Program Manager
-----Original Message-----
From: [email protected] [mailto:
[email protected]] On
Behalf Of joao_m_fernandes
Sent: Monday, January 30, 2006 3:30 PM
To: [email protected]
Subject: [flexcoders] Re: FlashServices/Gateway
To map a CFInstance to a IIS you can go to your
CFinstallationFolder\bin and run wsconfig.exe.
This will allow you to
map any of your current CFInstances to your (or
all) IIS site(s).
After mapping it if it doesn't work:
1)Are ColdFusion and Flex running under the same
instance?
if yes 2) Are they under the same contextRoot or
in separate ?
if no 2) shouldn't your Http://server/flashservices/gateway
be
Http://server/{cfcontextRoot}/flashservices/gateway
?
João Fernandes
Secção de Desenvolvimento
Departamento de Informática
--- In [email protected], "Mehdi, Agha"
<[EMAIL PROTECTED]> wrote:
>
> When I run the cfc from coldfusion, it runs
just fine. It doesn't
work when
> I run it through my Remote Object from Flex.
>
> Flash Remoting is not configured for the CF
instance that runs on
IIS, which
> is why Http://server/flashservices/gateway
doesn't work. I found
this link
>
>
http://www.macromedia.com/support/flashremoting//ts/documents/iis_gateway_co
> nnection.htm
>
> but I can't find the connectors.bat files
anywhere on the server.
>
> Agha Mehdi
> IDT - eBusiness Program Manager
>
>
> -----Original Message-----
> From: [email protected]
[mailto:
[email protected]] On
> Behalf Of joao_m_fernandes
> Sent: Monday, January 30, 2006 3:09 PM
> To: [email protected]
> Subject: [flexcoders] Re:
FlashServices/Gateway
>
> Can you send a bit of your code? how are you
calling your CFC?
>
>
> João Fernandes
> Secção de Desenvolvimento
> Departamento de Informática
>
> --- In [email protected],
"Mehdi, Agha" <[EMAIL PROTECTED]>
wrote:
> >
> > I am seeing this error in the logs:
> >
> > ==================================================
> > [Flash Remoting MX]->Request received
was not Flash-based (not of
> the binary
> > AMF protocol).
> >
==================================================
> >
> > when I try to access
http://<server>/flashservices/gateway. The
> server is
> > CF.
> >
> > Please let me know how to fix it.
> >
> > Thanks
> >
> > Agha Mehdi
> > IDT - eBusiness Program Manager
> > Work: 408.284.8239
> > Cell : 209.275.0482
> > Fax : 408.284.2766
> >
>
>
>
>
>
>
>
> --
> 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
>
--
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
--
Paul Kenney
[EMAIL PROTECTED]
[EMAIL PROTECTED]
http://www.pjk.us
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
YAHOO! GROUPS LINKS
|