简体   繁体   English

wcf在客户端的宁静服务细节

[英]wcf restful service detail at client

Is there some way that I can get list of all the WCF restful services operations at client side( something like helpEnabled). 有没有办法让我可以获得客户端所有WCF restful服务操作的列表(类似于helpEnabled)。

I tried to use http://servername/service/help , but it returns complete html. 我尝试使用http:// servername / service / help ,但它返回完整的html。 I want to get the operations suported by the service in the program. 我想在程序中获得服务支持的操作。 I want to list all the operations supported by the service. 我想列出该服务支持的所有操作。

Is there any way to do it? 有什么办法吗?

The short answer: It depends on what the creator of the service you are trying to consume has exposed. 简短的回答:这取决于您尝试使用的服务的创建者所暴露的内容。

There are two sides to this particular "issue". 这个特殊的“问题”有两个方面。 One side states that you should be able to hit a GET endpoint and then follow links (often ATOM PUB, esp. for the REST in Practice crowd). 一方说明你应该能够点击GET端点,然后关注链接(通常是ATOM PUB,尤其是REST in Practice人群)。 The other is pushing WADL, a REST analog to WSDL (SOAP Services). 另一个是推动WADL,一个REST模拟到WSDL(SOAP服务)。 In the first camp, there is no map and the service works more like a website. 在第一个阵营中,没有地图,服务更像是一个网站。 In the second, you have a description of all services. 在第二个中,您有所有服务的描述。

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

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