amf

How to parse AMF data in Ruby?

So I see that there are a few Rails plugins for serving AMF. However, is there a library that I can use in a Ruby environment to act as an AMF client: to read AMF data, and deserialize it into a Ruby object? If not, how could I best go about using tools built in other languages? I suppose I could write something in Python or Java or wha...

Is there something wrong with this code? AMFReader vs AMFWriter

Something doesn't seem right about the source code for Flash Remoting's Date(AS3) <-> DateTime(.NET) stream reader/writer methods, when it comes to handling UTC <-> Local times. It seems to write the DateTime data fine, including a 64-bit representation as milliseconds elapsed since Jan 1, 1970, as well as a UTC offset. public void Wri...

ActionScript: Type coercion problem with BlazeDS/AMF and class interfaces

Hi, I've got a problem with type coercion in a Java/Hibernate/BlazeDS/Flex-Setup. First of all, my classes look like this: --- JAVA --- Interface I (Abstract) Class A implements I Class B extends A --- ActionScript --- Interface I Class A implements I Class B extends A I got RemoteClass-Meta-Tags in all ActionScript-Classes/...

Coldfusion returning typed objects / AMF remoting

Is the same possible in ColdFusion? Currently I am using .Net/Fluorine to return objects to the client. Whilst in testing I like to pass strings representing the select statement and the custom object I wish to have returned from my service. Fluorine has a class ASObject to which you can set the var 'typeName'; which works great. I am h...

use AMF instead of JSON on iPhone? (for web services)

Although iPhone support JSON natively, AMF is a binary protocol and it supposes to use much less bandwidth. Do you think using AMF is a good idea? Just found this AMF library in cocoa (Objective-C): http://github.com/nesium/cocoa-amf/ Here's the famous benchmark that shows AMF is smaller and faster than JSON + gzip in Flex: http://www...

Java library to encode / decode AMF

Hi chaps, I currently have a Java server that talks to a Flash client by passing JSON encoded data over a binary socket connection. Is there a way on either side to encode / decode packets as AMF instead of JSON? It seems to me that there should be some native support in Flash player for doing this? All the implementations I have found ...

AMF and Cross Site scripting vulnerabilty confusion

I just got hammered on a Security Audit by Deloitte on behalf of SFDC. Basically we use flex and communicate via AMF. We use FluorineFX for this (as opposed to LCDS and Blaze). We are being told that because the AMF response is not encoded and that someone can manipulate the AMF parameters and insert Javascript that this is a XSS vulnera...

With FlourineFX being used as client, how to deal with Header AppendToGatewayUrl

I am using FlourineFX (trunk from 2010/07) as a client to talk to a Apache Axis Server dealing out AMF data. I can connect fine but the server issues a header. Name: AppendToGatewayUrl Must Understand: true Content =";jsessionId=0003048u39483948940"; How would I go about amending the URL to append the string with Flourine? ...

C library to encode/decode AMF

After googling a lot, I've found AMF libraries for PHP, Perl, Java, Python, Ruby... but none in C. Some of them have a C implementation, but it's too tied to the hosting language and they don't compile with a bare C compiler. Do you know of any pure C (or C++) implementation of AMF protocol? If not, which do you think would be the easie...

Suggestions for getting PHP to act as an AMF client

I have been looking at Zend AMF and AMFPHP to see if either can operate as a client and I am not finding anything that says it definitely can or cannot operate as a client. Is this possible withe either of these libraries? Are there other solid AMF libraries for PHP that will provide a client interface? ...

How can I call an AMF service using Flex and get back an MP3?

My flex 3.5 application has an audio player whose content is accessed by calling an AMF service to get the mp3 data. As far as I can tell, flash.media.Sound is initialized with a URLRequest, so it's not clear to me how I can provide it with data using my RemoteObject. I want to do one of the following things: Provide data to the Sound...

Any suggestions on a basic PHP library for doing session management and authentication?

Hi, I am working on a project that exposes a number of web services to the public. Right now I have the serialisation side done (Using ZendAMF) and now I need to do the authentication. I was looking over Zend Session and Zend Auth and they look like they do what I want, but while doing that research I came across a lot of people expre...

RemoteObject ReferenceError handling

I use amf calls in flex application. I've created actionscipt class with RemoteObject metatag for synchroinzation with PHP server class. The PHP-actoinscript class conversion works well, but I've specially tested invalid case when actionscript class doesn't have field which exists in PHP class. I've got ReferenceError message in my outp...

Is AMF3 protocol is good for flash/flex client server development ?

I need to develop client server application that involve gaming. I have no experience in flash and I was reading about the AMF3 protocol that is compact and fast, is it better than xml/json for data exchange? Also I need it to be on port 80. ...

Stress test BlazeDS polling

Hi, I'm looking for some guidance on stress testing BlazeDS polling channels. I've followed this excellent article on using jmeter to test AMF messaging: http://blog.jteam.nl/2009/07/14/performance-testing-a-flex-blazeds-application/ But that's only suitable for non-polling messages. I can't just generate the AMF for all polling mess...

Zend_Amf & addDirectory() vs setClass()

Is anyone else having problems with Zend_Amf's addDirectory()? It is supposed to autoload service classes and doesn't seem to. Though it works with setClass just fine. See snippet below. Ive seen olders posts on ZF 1.8 that had a bug like this. Is it possible that this bug still exists or am I missing something? I'm starting up the se...

How to use Android with AMFPHP gateway

I have a amfphp gateway and i would like to use for android developpement. Anyone know if a amfcaller already exist ? ...

Is is possible to provide REST and SOAP and AMF (BlazeDS) services from the same WAR?

Is there any issues with providing several different formats of web services from the same application server? ...

How to deserialize an AMF3-object from a byte array with FluorineFX

I am receiving AMF3 serialized objects via a socket connection, thus I have byte arrays of these objects. What is the officially designated way to deserialize these byte arrays to an ASObject or dictionary with FluorineFX? The most promising of my tries MemoryStream ms = new MemoryStream(data, 0, recv); AMFReader input = new AMFReader...

Fields are mismatched when passing object from Java to Flex, how do I fix it?

We have a pretty big application with lots of objects being passed between flex and java. One object in particular has a subtle bug: It's a plain old java object being passed to the flex front end (using blazeds producer/consumer messaging). The POJO has two String properties such as: myShirt.color = "brown"; myShirt.description = "wi...