Well the problem with it not passing solved itself somehow. Debugger
still wont let me watch variables though.
I tried the ? and while it prevented it from hanging, when I go do one
search I get a message about unsupported type in stream so I just went
back to the webservice. Even tried diffferent tweeks to the cfc etc
and it wouldn't work.
Peter Farland wrote:
Note that my suggestion was
to append the ? query string marker, please let me know if this
resolves the issue as your initial symptoms described the issue with
AppendToGatewayUrl exactly.
Also, the problem is that
Flash Remoting (and hence still Flex's RemoteObject) with ColdFusion
introduced the concept of named arguments. That is, if your CFC is
expecting a Struct as a single argument and you're sending it an
object, then it won't work as the CFC proxy between the gateway
interprets them as "named arguments" and thus looks for parameters to
match each of the keys in the AS Object. Try adding a second, dummy
variable to the CFC function and let me know if this solves the issue.
I will give that the / suggestion a try. As a workaround I switched to
a webservice vs remoteobject and it has no problems and seems to let
the client load faster.
But I just commented out the remoteobject so I will try flipping back
and see what happens.
Now my biggest problems are I am making a call to a CFC and passing it
a parameter but the CFC is complaining that it wasn't passed. Plus my
debugger for some reason who let me watch variables anymore. I put an
alert in the Flex code just before the CFC call and it shows valid data
in the variable I am sending, but it just doesn't get to the CFC for
some reason. Doing the same exact thing with all the other CFCs and
they work fine :/
Peter Farland wrote:
Actually, it's likely that you're getting an
AppendToGatewayUrl AMF
Response Header from the server because it detected that while a session
was created during the request, the client didn't inform the server
whether it could accept cookies.
This AMF Response Header is trying to tell the client NetConnection to
decorate its connection URL with some extra info, for example a
jsessionid for Java or a cfid/cftoken for ColdFusion.
You may then be using IIS... In which case it may be barfing on the
semi-colon in something like the jsessionid token, irrespective of
whether you have a ;.
http://cfxtest.research.unc.edu/flashservices/gateway/;jessionid=XYZ123A
BC
I believe CF released a hot fix for this issue, but the work around is
easy... Just add a ? To the gateway URL (or "endpoint" in flex speak) so
that the session information won't annoy IIS.
endpoint="http://cfxtest.research.unc.edu/flashservices/gateway?"
Pete
-----Original Message-----
From: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]
On
Behalf Of Muzak
Sent: Wednesday, September 28, 2005 11:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Calls to CFCs
A wild guess: try adding a "/" at the end of the gateway url.
endpoint="http://cfxtest.research.unc.edu/flashservices/gateway/"
I've seen USERID and alike being added to the gateway url when making
remote calls.
In that case, without the ending '/', the gateway url gets messed up.
Might not be the case here, but it's the first thing I'd check ;-)
regards,
Muzak
----- Original Message -----
From: "Greg Johnson" <[EMAIL PROTECTED]>
To: <flexcoders@yahoogroups.com>
Sent: Wednesday, September 28, 2005 2:28 PM
Subject: Re: [flexcoders] Calls to CFCs
> Here is where the connection is setup in the main file:
>
------------------------------------------------------------------------
>
> <mx:RemoteObject id="mr_cfc"
> endpoint="http://cfxtest.research.unc.edu/flashservices/gateway"
> source="mr.mr_cfc"
> fault="mx.controls.Alert.show(event.fault.faultstring)"
> showBusyCursor="true" >
--
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
As
a professional in computers, I personaly recommend Avast Antivirus
avast! Antivirus: Inbound
message clean.
Virus
Database (VPS): 0539-1, 09/27/2005
Tested on: 9/29/2005 8:13:54 AM
avast! - copyright (c) 2000-2004 ALWIL
Software.
--
Greg Johnson
Owner & Lead Technician
[EMAIL PROTECTED]
Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
----------------------
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560
As
a professional in computers, I personaly recommend Avast Antivirus
avast! Antivirus: Inbound
message clean.
Virus
Database (VPS): 0539-1, 09/27/2005
Tested on: 9/29/2005 10:15:19 AM
avast! - copyright (c) 2000-2004 ALWIL Software.
--
Greg Johnson
Owner & Lead Technician
[EMAIL PROTECTED]
Techno-Fix-It
Filling the Gap Between the Store and the Repair Shop
----------------------
www.technofixit.com
Phone:(919)-371-1476
Fax:(919)-882-9804
P.O. Box 1094
Morrisville, N.C. 27560
--
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
|