Can AMF be used as “just a different output format” from a web service?

I am working on a RESTish server project that responds to HTTP requests in various formats. This allows us to write applications that appeal to the user and retrieve any format that was most convenient at that time. For example, to find out if there is a logged in user, we can send:

http://serverurl/Authentication?command=whoami&format=xml

As you can imagine, this returns an XML that contains information about the registered user (if any). We can get the same information in json:

http://serverurl/Authentication?command=whoami&format=json

Recently, we have been discussing adding yaml support, as it is popular with some ruby ​​and python developers. At the same time, we are talking about writing a prototype client application in Flex (which, if you cannot say from my question, will be our first foray into Flex development). I understand that we can use one of our existing formats to communicate with the Flex application, but if we decided to add support for these additional formats “just because we can,” is there anything that would make using amf especially difficult or other than xml or json output?

+3
source share
5 answers

AMF - RPC (Remote Procedure Call) , SOAP, . , AMF - not, .

, , AMF "Flex Remoting", , Flex, REST API.

: SOAP XMLRPC REST API?

-2

AMF - , . AMF RPC - . , Flex (Consumer/Producer), AMF , RPC..

: ? AMF . , , HTTP-, REST.

+2

AMF , ( .NET). :

  • DTO, , .
  • ByteArray DTO WriteObject()
  • AMF
  • ByteArray

URLLoader . loader.data ByteArray ReadObject, DTO. [RemoteClass] registerClassAlias, - .

, DTO, , XML- JSON-, .

ByteArrays /, , , . , AMF REST.

, , -, .

+2

, AMF ( Zend Framework). , . .

0

Source: https://habr.com/ru/post/1705211/


All Articles