[SabreAMF] SabreAMF_Client Red5/lcds

Evert | Rooftop evert at rooftopsolutions.nl
Fri Sep 28 09:22:50 PDT 2007


17 = 0x11 = the actual AMF3 wrapper..

Sounds like red5 doesn't support AMF3 for its remoting service properly 
yet.. There's no real benefit in using AMF3 over AMF0 anyway, unless you 
want to make use of the bytearray or externalized objects.

Evert

Daniel Rossi wrote:
> AMF0 array type expected but found 17
>
> Its prob not working on the red5 end maybe is there a way to check that ?
>
> Message: Buffer underrun at position: 0. Trying to fetch 1 bytes
>
>  $result = $client->sendRequest('myService.getToken',new 
> SabreAMF_AMF3_Wrapper(array('username'=>'admin','password'=>'secretpassword')));
>
>
> On 29/09/2007, at 1:37 AM, Evert | Rooftop wrote:
>
>> Daniel Rossi wrote:
>>> Hi for some reason the AMF wrapper wont work with a service in 
>>> Red5.  How have you encoded the array for AMF3 if you are using that 
>>> ? Next  is to get the service under ssl as my system in php is 
>>> calling to  receive a token service to send along with the flash 
>>> client. Its only  half done yet still trying to work out the acegi 
>>> security / tokens /  session stuff :)
>>>
>>>   
>>>
>> Hi Daniel/Darren,
>>
>> The client class could definitely use some love. The api is a bit 
>> clunky, and I think I can improve it here and there..
>>
>> e.g. :
>>
>> $client = new SabreAMF_Client($gatewayUrl,$serviceName, /* specify 
>> amf0/3 encoding here */ );
>> $result = $client->method($arg1,$arg2);
>>
>> But if there's bugs, those should obviously be solved first. Is there 
>> any way one of you guys could setup a test-bed so I can see whats 
>> going on? Or is this a problem with red5 and not SabreAMF?
>>
>> Evert
>




More information about the sabreamf mailing list