ASP.NET的Web API接口(WSDL) [英] ASP.NET Web API interface (WSDL)

查看:1174
本文介绍了ASP.NET的Web API接口(WSDL)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经得到有关ASP的Web API的一些信息。 它看起来像好东西为Web服务,但如何创造这样的WSDL我的API像WCF服务呢? 党怎样3D组件都可以使用我的服务?或者我需要手动描述每个我的方法?

I have get some information about ASP Web API. It is look like good stuff for web services but how to create something like WSDL for my API like WCF service does ? how 3d party component can use my service? Or i need to describe each my method manually ?

推荐答案

至于是否看起来不错,多数民众赞成意见,以便尝试一下,看看(我个人喜欢吧)

As to whether it looks good, thats an opinion so try it and see (I personally like it)

至于一个WDSL的网络API是一个RESTful API不是基于SOAP的,所以没有WSDL支持,WCF具有REST支持和SOAP,所以如果你需要一个SOAP服务和WSDL,ScottGu的最新博客,可能是更好的选择在API非常有趣和有联系的教程(WSDL中产生问题的意见也回答)

As far as a WDSL the Web API is a RESTful API not SOAP based so there is no WSDL support, WCF has REST support and SOAP so that may be a better choice if you require a SOAP service and WSDL, ScottGu's latest blog on the API is quite interesting and has links to tutorials (the WSDL generation question is answered in the comments too)

<一个href="http://weblogs.asp.net/scottgu/archive/2012/02/23/asp-net-web-api-part-1.aspx">http://weblogs.asp.net/scottgu/archive/2012/02/23/asp-net-web-api-part-1.aspx

这篇关于ASP.NET的Web API接口(WSDL)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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