amf

Zend AMF custom dispatcher

落花浮王杯 提交于 2020-01-17 09:33:09
问题 Is it possible to use a custom dispatcher when using Zend_AMF? I know I can pass either a class name or an object to setClass() for Zend_AMF. However, when I pass an object to setClass, it does not seem to store a copy of that object. Instead it worksout the class name and then instantiates a copy of the object itself. This is a problem as I use the yadif dependency injection container. Objects should be instantiated with constructor dependencies and/or property dependencies. Since the Zend

How to deserialize and serialize AMF Packets in Python?

点点圈 提交于 2020-01-17 05:18:14
问题 I am rewriting the following Perl code in Python: my $data = Data::AMF::Packet->new->deserialize($packet); $data->messages->[0]->{value}->[1] = $data->messages->[1]->{value}->[1] = $mid; $data = $data->serialize; I would like to know how to write this in Python? I am new to PyAMF and the examples I googled wont help. Thanks a lot! 回答1: Something along the lines of: from pyamf import remoting packet = remoting.decode(bytes) packet['/1'][1] = packet['/2'][1] stream = remoting.encode(packet)

Flex and Zend_AMF: How do I get a Flex arrayCollection from Flex into PHP?

半世苍凉 提交于 2020-01-15 09:53:09
问题 I currently have an arrayCollection in Flex and I want to sent it to PHP (Zend_AMF). According to the Zend_AMF wiki, sending an arrayCollection over directly will force Zend_AMF to cast the arrayCollection as an object which is no good. I'd rather have an array of my models. I assume the best way would be to convert the arrayCollection to an array in flex and then send it over. Is this true, and if so how would I do that in Flex 3? If you have a better recommendation, that would be

Decode amf3 object using PHP

可紊 提交于 2020-01-15 06:06:16
问题 My flash code: var request=new URLRequest('http://localhost/test.php'); request.method = URLRequestMethod.POST; var data = new URLVariables(); var bytes:ByteArray = new ByteArray(); bytes.objectEncoding = ObjectEncoding.AMF3; //write an object into the bytearray bytes.writeObject( { myString:"Hello World"} ); data.data = bytes; request.data = data; var urlLoader:URLLoader = new URLLoader(); urlLoader.dataFormat = URLLoaderDataFormat.BINARY; urlLoader.addEventListener(Event.COMPLETE,

Using RemoteObject (AMF) from a Flash or Pure AS3 Project

こ雲淡風輕ζ 提交于 2020-01-14 13:40:48
问题 I recently ported some code from a Flex project over to a new pure AS3 project. When i attempted to make an AMF call, I am getting an error message like this: TypeError: Error #1034: Type Coercion failed: cannot convert Object@5425371 to mx.messaging.messages.ErrorMessage. There was no stack trace associated with the error, so debugging was difficult. I tried all manner of things (checking that all required libraries from the flex framework were included, etc) but nothing worked. 回答1: After

Unable to record in JMeter using AMF proxy server

时光总嘲笑我的痴心妄想 提交于 2020-01-11 12:44:29
问题 I have downloaded amf plugins as given in How to enable amf sampler type and started recording using AMF proxy server in Jmeter 4.0 but I am getting below error message in log and web page is not loading java.lang.NoClassDefFoundError: org/apache/jmeter/protocol/http/sampler/HTTPSampler2 at java.lang.ClassLoader.defineClass1(Native Method) ~[?:1.8.0_141] at java.lang.ClassLoader.defineClass(ClassLoader.java:763) ~[?:1.8.0_141] at java.security.SecureClassLoader.defineClass(SecureClassLoader

.NET and AMF

大兔子大兔子 提交于 2020-01-10 19:55:08
问题 How can I get a ASP.NET (inc MVC) application talking to a Flex UI over AMF. I am wanting to push approx 100+ records around at a time and AMF would appear to be the way forward, but there doesn't appear to be anything obvious. 回答1: If you're pressed for time, you can just use the RemoteObject to hit a compiled DLL (like WebORB - its free for .NET, but you need a VS copy above Express to compile your classes that you want to expose to Flex) and Retrieve the object that way... Obviously your

flex : Random NetConnection.Call.Failed: HTTP: Failed

人盡茶涼 提交于 2020-01-10 05:17:09
问题 We are experiencing some random NetConnection.Call.Failed: HTTP: Failed when using the flex 4 mx.messaging.channels::SecureAMFChannel We have never had this problem in our local servers (server/client on the same machine), but when we went live, some users experienced this problem randomely (about 5% of the 800 beta users). Lately, at last i was able to reproduce the problem every once in a while on one client machine (windows XP), in our LAN using a remote server in the same LAN (but not on

Sending ByteArray to Zend_Amf

我只是一个虾纸丫 提交于 2020-01-06 04:33:30
问题 I'm having problems sending a ByteArray over to my Zend_Amf_server. I get a NetConnection.Bad.Call back from the server. If I send a variable with another datatype then ByteArray it works fine. I used the same script before with AMFPHP witouth any problems. But for this project I really need this to work in Zend_Amf. AS3: var path:String = "/images/picture.jpg"; var ba:ByteArray = jpgencoder.encode(bitmap.bitmapData); var nc:NetConnection = new NetConnection(); nc.connect(zend_amf_server); nc

Issues in running Jmeter amfproxy

陌路散爱 提交于 2020-01-05 20:48:10
问题 Have been trying to do a load test on flash game server that uses amfPHP for backend interaction. I have added the Jmeter- amf plugin from Ken(steeltomato) and followed all the steps mentioned in the user guide(https://github.com/steeltomato/jmeter-amf/wiki/User-guide) But whenever i start recording using the proxy i get this following error in the log 2014/02/18 12:14:11 ERROR - jmeter.JMeter: Uncaught exception: java.lang.NullPointerException at org.apache.jmeter.protocol.amf.proxy