ASP.NET WebAPI + 肥皂 [英] ASP.NET WebAPI + Soap
本文介绍了ASP.NET WebAPI + 肥皂的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
WebAPI 是否支持 SOAP?我正在尝试在 MVC4 中编写一个 SOAP 服务器,虽然我可以在 WCF 中做到这一点,但似乎 WebAPI 正在取代它,但我还没有看到在这方面使用 SOAP 的方法,只是使用 REST 样式接口的 JSON/XML.
Does WebAPI support SOAP? I'm trying to write a SOAP Server in MVC4 and whilst I can do it in WCF it seems that WebAPI is replacing this but I see no ways to utilize SOAP in this yet, just JSON / XML using a REST Style interface.
推荐答案
引用 Scott Guthrie 的话:过去几年见证了 Web API 的兴起——服务通过纯 HTTP 而不是通过更正式的服务合同(如 SOAP或 WS*).
To quote Scott Guthrie: The last few years have seen the rise of Web APIs - services exposed over plain HTTP rather than through a more formal service contract (like SOAP or WS*).
所以我会说不.
这篇关于ASP.NET WebAPI + 肥皂的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文