C# – How should client Flash(SWF) communicate with server-side .NET

actionscript-3cflashnet

So I have ASP.NET running on the server in IIS7. I think I'm going to use MVC for some static pages and basic dynamic forms – but the majority of the client side is written in Flash/ActionScript.

What's the simplest, most succint, most DRY way of building/generating proxies between client and server?

Which format should I use?

  • JSON
  • SOAP
  • Binary

And which comms protocol should I use?

  • WCF
  • HTTP via MVC Controller actions

I'm probably missing some format or protocol, but basically it should be relatively efficient, not require alot of plumbing code and preferably auto-generates client-side proxies.

Best Answer

WSDL web services are very easy to consume in Flash and simple to create in .NET.

I'd also suggest you at least look into AMF, which is Adobe's proprietary binary format for exchanging data between client and server. There are a couple of implementations for .NET, including amf.net and weborb.

I've never used it, but I've heard really great things about weborb: http://www.themidnightcoders.com/products/weborb-for-net/overview.html

Related Topic