[EMAIL PROTECTED] Mon Apr 12 10:43:52 2004
Return-Path: <[EMAIL PROTECTED]>
X-Sender: [EMAIL PROTECTED]
X-Apparently-To: [email protected]
Received: (qmail 66625 invoked from network); 12 Apr 2004 17:43:51 -0000
Received: from unknown (66.218.66.167)
  by m3.grp.scd.yahoo.com with QMQP; 12 Apr 2004 17:43:51 -0000
Received: from unknown (HELO p01mgw01.macromedia.com) (216.104.212.90)
  by mta6.grp.scd.yahoo.com with SMTP; 12 Apr 2004 17:43:51 -0000
Received: from S1001EXM02.macromedia.com ([10.4.48.132])
  by p01mgw01.macromedia.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id 
i3CHhn2N012575
  for <[email protected]>; Mon, 12 Apr 2004 10:43:50 -0700 (PDT)
Received: by S1001EXM02.macromedia.com with Internet Mail Service (5.5.2657.72)
  id <G3CST86Z>; Mon, 12 Apr 2004 13:43:49 -0400
Message-ID: <[EMAIL PROTECTED]>
To: "'[email protected]'" <[email protected]>
Date: Mon, 12 Apr 2004 13:43:49 -0400
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2657.72)
Content-Type: multipart/alternative;
  boundary="----_=_NextPart_001_01C420B5.869BE5A1"
X-eGroups-Remote-IP: 216.104.212.90
From: Brandon Purcell <[EMAIL PROTECTED]>
Subject: RE: [flexcoders] Flash Remoting using Flex
X-Yahoo-Group-Post: member; u=182034002

------_=_NextPart_001_01C420B5.869BE5A1
Content-Type: text/plain

You can connect to CFC's running in ColdFusion using the endpoint attribute
in <mx:RemoteObject>. I address it in this blog entry
http://www.bpurcell.org/blog/index.cfm?mode=entry
<http://www.bpurcell.org/blog/index.cfm?mode=entry&entry=1013> &entry=1013 I
am working with Gerald offline to see what is happening in his case. I have
tested this with several different configurations and have not ran into a
problem. You can use the netConnectionDebugger from the Flex /extras
directory to debug AMF traffic.

Brandon
<mailto:[EMAIL PROTECTED]> 

-----Original Message-----
From: Andrew Stopford [mailto:[EMAIL PROTECTED] 
Sent: Monday, April 12, 2004 1:08 PM
To: [email protected]
Subject: Re: [flexcoders] Flash Remoting using Flex



Hi Gerald,

CFC communication would be possible via Flash Remoting/AMF. Try adding your
gateway to your flex-config.xml under <amf-gateway>.

HTH

Andrew
http://weblogs.asp.net/astopford <http://weblogs.asp.net/astopford> 

----- Original Message ----- 
From: Gerald Williams <mailto:[EMAIL PROTECTED]> 
To: [email protected] <mailto:[email protected]> 
Sent: onday, April 12, 2004 5:52 PM
Subject: [flexcoders] Flash Remoting using Flex





Hi All

Is there another way of Flex accessing a CFC apart from a Web Service?
As far as I know the inbuilt AMF gateway can only access Java classes. 
Theoretically, it should be able to access CFC's too since they will be
compiled to Java classes. 

Therefore, I have been trying to use Flex with Flash Remoting. This example
compiles ok. But when clicking the button nothing happens, no data is being
transmitted. When deleting endpoint="http://127.0.0.1/flashservices/gateway
<http://127.0.0.1/flashservices/gateway> "
the application at least attempts to connect when the button is clicked. The
inclusion of the endpoint seems to disable the submit button.

Any ideas?


Thanks 



- Gerald


<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml
<http://www.macromedia.com/2003/mxml> " width="400"
height="400">

<mx:RemoteObject id="mySv" source="rest.stock"
endpoint="http://127.0.0.1/flashservices/gateway
<http://127.0.0.1/flashservices/gateway> " >

<mx:method name="login">
<mx:arguments>
<password>{txtPass.text}</password>
<user>{txtUser.text}</user>
</mx:arguments>
</mx:method>
</mx:RemoteObject>

<mx:Canvas width="400" height="400">

<mx:TextInput widthFlex="1" id="txtUser" x="25" y="59" />
<mx:TextInput widthFlex="1" id="txtPass" x="25" y="104" />
<mx:TextInput widthFlex="1" id="txtResp" x="25" y="14" />

<mx:Button
click="mySv.login.send()" id="login_but" label="Login" x="69" y="160" />
</mx:Canvas>
</mx:Application>







_____ 

Yahoo! Groups Links


*       To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<http://groups.yahoo.com/group/flexcoders/> 


*       To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]> 


*       Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> . 



------_=_NextPart_001_01C420B5.869BE5A1
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; charset=3Dus-ascii"=
>
<TITLE>Message</TITLE>

<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><SPAN class=3D593104317-12042004><FONT face=3DArial color=3D#0000ff si=
ze=3D2>You=20
can connect to CFC's running in ColdFusion using the endpoint attribute in=
=20
&lt;mx:RemoteObject&gt;. I address it in this blog entry <A=20
href=3D"http://www.bpurcell.org/blog/index.cfm?mode=3Dentry&amp;entry=3D101=
3">http://www.bpurcell.org/blog/index.cfm?mode=3Dentry&amp;entry=3D1013</A>=
&nbsp;I=20
am working with Gerald offline to see what is happening in his case. I have=
=20
tested this with several different configurations and have not ran into a=20
problem. You can use the netConnectionDebugger from the Flex /extras direct=
ory=20
to debug AMF traffic.</FONT></SPAN></DIV>
<DIV><SPAN class=3D593104317-12042004><FONT face=3DArial color=3D#0000ff=20
size=3D2></FONT></SPAN>&nbsp;</DIV>
<DIV><SPAN class=3D593104317-12042004><FONT face=3DArial color=3D#0000ff=20
size=3D2>Brandon</FONT></SPAN></DIV>
<DIV align=3Dleft><FONT face=3DArial size=3D2><A=20
href=3D"mailto:[EMAIL PROTECTED]"></A></FONT></DIV>
<DIV></DIV>
<DIV><FONT face=3DTahoma><FONT size=3D2><SPAN class=3D593104317-12042004><F=
ONT=20
face=3DArial color=3D#0000ff>&nbsp;</FONT></SPAN></FONT></FONT></DIV>
<DIV><FONT face=3DTahoma><FONT size=3D2><SPAN=20
class=3D593104317-12042004>&nbsp;</SPAN>-----Original Message-----<BR><B>Fr=
om:</B>=20
Andrew Stopford [mailto:[EMAIL PROTECTED] <BR><B>Sent:</B> Monday, A=
pril=20
12, 2004 1:08 PM<BR><B>To:</B> [email protected]<BR><B>Subject:</B=
> Re:=20
[flexcoders] Flash Remoting using Flex<BR><BR></DIV></FONT></FONT>
<BLOCKQUOTE dir=3Dltr style=3D"MARGIN-RIGHT: 0px">
<DIV><FONT face=3DArial size=3D2>Hi Gerald,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>CFC communication would be possible via =
Flash=20
Remoting/AMF. Try adding your gateway to your flex-config.xml under=20
&lt;amf-gateway&gt;.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>HTH</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Andrew</FONT></DIV>
<DIV><FONT face=3DArial size=3D2><A=20
href=3D"http://weblogs.asp.net/astopford";>http://weblogs.asp.net/astopfor=
d</A></FONT></DIV>
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-=
LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style=3D"FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV=20
style=3D"BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>F=
rom:</B>=20
<A [EMAIL PROTECTED] href=3D"mailto:[EMAIL PROTECTED]">Gerald Williams<=
/A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>To:</B> <A [EMAIL PROTECTED]
roups.com=20
href=3D"mailto:[email protected]";>[email protected]</=
A>=20
</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Sent:</B> onday, April 12, 2004 5:52=
=20
PM</DIV>
<DIV style=3D"FONT: 10pt arial"><B>Subject:</B> [flexcoders] Flash Remo=
ting=20
using Flex</DIV>
<DIV><BR></DIV><TT><BR><BR><BR><BR>Hi All<BR><BR>Is there another way o=
f=20
Flex accessing a CFC apart from a Web Service?<BR>As far as I know the=
=20
inbuilt AMF gateway can only access Java classes. <BR>Theoretically, it=
=20
should be able to access CFC's too since they will be<BR>compiled to Ja=
va=20
classes. <BR><BR>Therefore, I have been trying to use Flex with Flash=20
Remoting. This example<BR>compiles ok. But when clicking the button not=
hing=20
happens, no data is being<BR>transmitted. When deleting endpoint=3D"<A=
=20
href=3D"http://127.0.0.1/flashservices/gateway";>http://127.0.0.1/flashs=
ervices/gateway</A>"<BR>the=20
application at least attempts to connect when the button is clicked.=20
The<BR>inclusion of the endpoint seems to disable the submit=20
button.<BR><BR>Any ideas?<BR><BR><BR>Thanks <BR><BR><BR><BR>-=20
Gerald<BR><BR><BR>&lt;?xml version=3D"1.0"=20
encoding=3D"utf-8"?&gt;<BR>&lt;mx:Application xmlns:mx=3D"<A=20
href=3D"http://www.macromedia.com/2003/mxml";>http://www.macromedia.com/=
2003/mxml</A>"=20
width=3D"400"<BR>height=3D"400"&gt;<BR><BR>&lt;mx:RemoteObject id=3D"my=
Sv"=20
source=3D"rest.stock"<BR>endpoint=3D"<A=20
href=3D"http://127.0.0.1/flashservices/gateway";>http://127.0.0.1/flashs=
ervices/gateway</A>"=20
&gt;<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; &lt;mx:method=20
name=3D"login"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;=
=20
&lt;mx:arguments&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;password&gt;{txtPass.text}&lt;/password&gt;<BR>&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;=20
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;user&gt;{txtUser.text}&lt;/user&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
&lt;/mx:arguments&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/mx:method&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;/mx:RemoteObject&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mx:Canvas width=3D"400"=20
height=3D"400"&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;mx:TextInput widthFlex=3D"1"=20
id=3D"txtUser" x=3D"25" y=3D"59" /&gt;<BR>&nbsp; &lt;mx:TextInput width=
Flex=3D"1"=20
id=3D"txtPass" x=3D"25" y=3D"104" /&gt;<BR>&nbsp; &lt;mx:TextInput widt=
hFlex=3D"1"=20
id=3D"txtResp" x=3D"25" y=3D"14" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;=20
<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;mx:Button<BR>click=3D"mySv.login.send()" id=3D"login_but" label=3D"=
Login"=20
x=3D"69" y=3D"160" /&gt;<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
&lt;/mx:Canvas&gt;<BR>&lt;/mx:Application&gt;<BR><BR><BR><BR><BR><BR></=
TT></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>

------_=_NextPart_001_01C420B5.869BE5A1--

Reply via email to