Flash connecting to a WCF service

2019-01-25 21:45发布

问题:

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

回答1:

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.