Best way for Flex to communicate with C# backend?

2019-04-02 15:02发布

问题:

What is the best way for flex frontend to communicate with backend writted in C#? The only communication channel in HTTP, so no custom sockets.

I used SOAP in the past, but am concerned about performance since the large overhead of xml, and this application I'm currently working on will be pretty data intensive.

Anything that supports easy setup and transparent marshaling/unmarshaling is OK.

Is there something as BlazeDS for .net?

回答1:

I found a few options by googling AMF .NET and AMF C# (AMF is the protocol that BlazeDS uses)-

  • WebOrb for .NET (commercial)
  • FlourineFX (open source)
  • AMF.NET (open source - appears to be dead)

However, I haven't used any of these projects - I've just used Flex backed by Java and PHP.



回答2:

Have you looked into using JSON?

I don't know anything about flex tbh, so best I give you some links to look at:

www.json.org

flexexamples.blogspot.com/2007/12/flex-json-net-sample-application.html

www.lostechies.com/blogs/rhouston/archive/2008/02/25/a-custom-converter-for-json-net.aspx

Hope this helps