简体   繁体   English

使用WCF和wsdl定义的REST服务

[英]Rest service with WCF and wsdl definition

i read on the net that there is no wsdl definition for REST services and also that in WCF we can use webHttpBinding to create restful services. 我在网上阅读到,没有REST服务的wsdl定义,而且在WCF中,我们可以使用webHttpBinding创建宁静的服务。 I downloaded SOA cleaner software to test my services and its screen confused me a littel. 我下载了SOA清洁软件来测试我的服务,它的屏幕使我困惑。 Plz have a look at following shot 请看下面的镜头 在此处输入图片说明 Now look that webHttpBinding is selected which is supposed to be a REST service and this software is asking for wsdl definition of this service. 现在查看选择了应该是REST服务的webHttpBinding ,并且该软件正在请求该服务的wsdl定义。 However if i switch to second option which is Plain Http(s) /REST it only requires a url to communicate with that service. 但是,如果我切换到第二个选项,即纯Http / REST,则只需要一个URL即可与该服务进行通信。 Does REST have a wsdl or doesn't webHttpBinding provide REST service? REST是否具有wsdl或webHttpBinding不提供REST服务?

REST Services can only be described by by WADL or WSDL 2.0 which is not supported by WCF. REST服务只能由WDL不支持的WADL或WSDL 2.0描述。 This stackoverflow thread my help you out. 这个stackoverflow线程可以帮助您。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM