在'描述'这个词上我收到错误'Type expected'
Imports System.ServiceModel
Imports System.Web
Imports System.IO
Imports System.Runtime.Remoting.Activation
Imports System.Collections.Generic
Imports System.ServiceModel.Web
Namespace SimpleRESTService
<ServiceContract()> _
Public Interface IService
<Description("Simple echo operation over HTTP GET"), _
WebGet()> _
Function EchoWithGet(ByVal s As String) As String
<Description("Simple echo operation over HTTP POST"), _
WebInvoke()> _
Function EchoWithPost(ByVal s As String) As String
End Interface
End Namespace
答案 0 :(得分:0)
WCF中没有“描述”属性。也许您可以使用此解决方法:
http://andrewtokeley.net/archive/2008/10/30/adding-wsdl-documentation-to-your-wcf-services.aspx