zend-amf

Serializing to/from Adobe AMF in C#/Mono?

安稳与你 提交于 2020-01-01 19:03:39
问题 Using Zend_Amf it's possible to serialize php objects to/from Adobe AMF format. Is there an equivalent library for serializing/unserializing C# objects to/from AMF? I'm working in Mono 2.4. 回答1: There are several options. Here's the best. http://www.fluorinefx.com/ Fluorine provides a full client and server implementations of AMF over HTTP and at least server implementations of AMF over RTMP (I'm not sure about client for RTMP--we just haven't used it so I haven't looked into it). It also

Mapping PHP and Flex Objects

半世苍凉 提交于 2019-12-12 13:29:53
问题 I am using ZendAMF for remoting. <?php error_reporting(E_ALL | E_STRICT); //error reporting, not needed require_once "Zend/Amf/Server.php"; //the zendAMF server require_once "process.php"; //our test class $server = new Zend_Amf_Server(); //declare the server $server->setClass("process"); //load our test-class to the server $server->setClassMap("Session", "Session"); echo($server->handle()); // needed to start the server ?> My Question is i have a ActionScript class Session and a PHP Class

Flex is deserializing generic objects from Zend AMF instead of strictly typed objects

眉间皱痕 提交于 2019-12-12 02:54:41
问题 I'm using Zend AMF to send my remote objects to Flex. I've defined a Constant class and created getASClassName() method. Then I've created Action script class in flex. Objects are send successfully, but they are deserialized to generic Objects in Flex instead of specific ones. EDIT: On network monitor in Flex I can see that AMF value is set to com.my.project.valueobjects.Constant . Although array from event.result contains Objects . What am I doing wrong? Php declaration of class: <?php

Action Message Format vs downloading XML files?

 ̄綄美尐妖づ 提交于 2019-12-11 18:15:44
问题 As we are about to start downloading big data from the server, we have two options to work with: Downloading compressed XML file each 10 seconds, where we will store data to be consumed at the client site. Calling Zend AMF Server each 10 seconds, and listening to methods callback results, it will return data that we will be consuming at client side. ( inspired by Zend AMF – AS3 and PHP ) Which approach will be faster? and which approach will save us bandwidth? Any recommendation? 回答1: AMF

AMF class mapping not working

↘锁芯ラ 提交于 2019-12-11 12:11:47
问题 I am building an application using Flex 4.5 and Zend_AMF as my AMF endpoint. I would like to map a class called CRequest in PHP to a class called Request in Flex. This is my php class: <?php namespace app\web; class CRequest{ public $_explicitType = 'com.site.remote.Request'; public $stuff1; public $stuff2; } This is the actionscript class: com.site.remote.Request package com.dreamatique.remoting { [Bindable] [RemoteClass(alias="com.site.remote.Request")] public class Request { public var

How can I use Flex RemoteObjects with NodeJS?

拥有回忆 提交于 2019-12-11 10:49:21
问题 I have a application builded in Flex/AS3, and I use a server LAMP as a proxy/gateway. I use ZendAMF to make the conversation between Flex <=> PHP. Now I need to build another server (proxy/gateway) in NodeJS, but the librarys are very very very poor (https://github.com/jamesward/JSAMF, https://github.com/timwhitlock/node-amf, https://github.com/TooTallNate/node-amf), because they dont support RemoteObjects, only NetConnection. Someone knows any library or already did something between Flex

AMF typed objects from flex back to PHP

亡梦爱人 提交于 2019-12-11 07:01:50
问题 Yesterday, I succeeded in sending typed objects from a PHP application to a flex front-end using Zend_AMF as per this question. The problem I am facing now is that I would like to send a typed object from flex to PHP and on the PHP side, be able to recieve it as a typed object instead of stdClass . Here is the class in flex: package com.mysite { [Bindable] [RemoteClass(alias="CTest")] public class CTest { public var stuff1:String; public var stuff2:String; public function CTest() { } } } And

Serializing to/from Adobe AMF in C#/Mono?

纵饮孤独 提交于 2019-12-04 16:54:11
Using Zend_Amf it's possible to serialize php objects to/from Adobe AMF format. Is there an equivalent library for serializing/unserializing C# objects to/from AMF? I'm working in Mono 2.4. There are several options. Here's the best. http://www.fluorinefx.com/ Fluorine provides a full client and server implementations of AMF over HTTP and at least server implementations of AMF over RTMP (I'm not sure about client for RTMP--we just haven't used it so I haven't looked into it). It also includes classes that can be utilized directly for AMF serialization and deserialization. We use it extensively