Hi guys,
I stumbled upon this nasty error where time to time i would get a:
ERRRORRR [FaultEvent fault=[RPC Fault faultString="error"
faultCode="Channel.Call.Failed"
faultDetail="NetConnection.Call.Failed: HTTP: Status 200"]
messageId="F7C2D1D0-BDCE-6067-4404-9CB9576D1282" type="fault"
bubbles=false cancelable=true eventPhase=2]
For no reasons.
The strange thing is that it was not happening until i started Pushing
some data : Bytearray and long String.
This post
http://jake.cfwebtools.com/2009/02/26/flex-channelconnectfailed-error-netconnectioncallfailed-http-status-200/gives the solutionas :
"add the following line to your services-config.xml file in the
“channel-definition” tags."
<add-no-cache-headers>false</add-no-cache-headers>
<channel-definition id="my-cfamf" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://{server.name}:{server.port}{context.root}/flex2gateway/"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<add-no-cache-headers>false</add-no-cache-headers>
<polling-enabled>false</polling-enabled>
<serialization>
<instantiate-types>false</instantiate-types>
</serialization>
</properties>
</channel-definition>
Since we dont have such xml with pyamf to configure Channels, how
would we solve this ?
So far i use in flex
======
channel = new AMFChannel( "pyamf-channel",
"
http://localhost:8000/amf/gateway/" );
channels = new ChannelSet();
channels.addChannel( channel );
// this is the service id
remoteObject = new RemoteObject( "edoservice" );
remoteObject.channelSet = channels;
======
Any help is welcome,
--
o/
_______________________________________________
PyAMF users mailing list -
users@...
http://lists.pyamf.org/mailman/listinfo/users