Best way for Flex to communicate with C# backend?

半世苍凉 提交于 2020-01-01 07:12:14

问题


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



来源:https://stackoverflow.com/questions/1103061/best-way-for-flex-to-communicate-with-c-sharp-backend

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!