Benefits to switching from classic asmx to wcf

前端 未结 2 1332
猫巷女王i
猫巷女王i 2021-02-09 22:48

Recently I made the switch from using asmx web services to using wcf services, the transition is nearly finished, but I know I\'m in for a lot of error checking and testing to m

2条回答
  •  借酒劲吻你
    2021-02-09 23:31

    WCF allows you detach service from the physical layout and protocols. For example, you can write one service and deploy it as either REST or SOAP, or whatever that may happen in the future. ASMX is great, but it's pretty much hardcoded to SOAP. Also the idea is that you can plug-in existing features like throttling just by changing preferences, which I haven't seen much benefit of.

提交回复
热议问题