应该如何与服务器端的.NET客户端Flash(SWF)进行通信?服务器端、客户端、通信、NET

2023-09-03 05:27:10 作者:她不美不眉不寐

所以,我在IIS7在服务器上运行ASP.NET。我想我会使用MVC一些静态页面和动态的基本形式 - 但大多数客户端都写入闪存/ ActionScript中。

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.

什么是最简单,最succint,最干燥建筑方式/生成客户端和服务器之间的代理?

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

我应该使用哪种格式?

JS​​ON 在SOAP 二进制

和其通讯科的协议,我应该使用?

And which comms protocol should I use?

WCF 通过MVC控制器动作 HTTP WCF HTTP via MVC Controller actions

我可能错过了一些格式或协议,但基本上应该是比较有效的,不需要水暖code和$ P $很多pferably自动生成客户端代理。

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.

推荐答案

WSDL Web服务是很容易消耗的Flash和简单的创建.NET。

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

我也建议你至少看看AMF,这是Adobe的交换客户端和服务器之间的数据专有的二进制格式。有一对夫妇的实现.NET,包括amf.net和的WebORB的。

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.

我从来没有使用过它,但我听说过真正伟大的事情的WebORB:的 HTTP://www.themidnight$c$crs.com/products/weborb-for-net/overview.html

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