闪存连接到WCF服务 [英] Flash connecting to a WCF service

查看:156
本文介绍了闪存连接到WCF服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想请求指导正确的端点配置为我的WCF服务,以使Flash应用程序来使用它。

I would like ask for guidance on the proper endpoint configuration for my WCF service to enable a Flash app to consume it.

谢谢, 基思·鲁尔房屋

Thanks, Keith Rull

推荐答案

那么你应该开始一个的的WebHttpBinding ,自然需要应用的 webHttp行为为好。然后你只需要弄清楚你要使用什么样的序列化格式。 Flash可以做到JSON或XML,所以你需要你决定preFER,然后将<一个href="http://msdn.microsoft.com/en-us/library/system.servicemodel.web.webinvokeattribute.requestformat.aspx"相对=nofollow> ReqeustFormat / <一href="http://msdn.microsoft.com/en-us/library/system.servicemodel.web.webinvokeattribute.responseformat.aspx"相对=nofollow> ResponseFormat 的的 WebInvokeAttribute 它们应用到你的操作。

Well you should start with a webHttpBinding and naturally you need to apply the webHttp behavior as well. Then you just need to figure out what serialization format you want to work with. Flash can do JSON or XML, so you need to decide which you prefer and then you set the ReqeustFormat/ResponseFormat properties of the WebInvokeAttribute which are applied to your operations.

这篇关于闪存连接到WCF服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆