【发布时间】:2013-07-10 10:02:24
【问题描述】:
我有这样的方法
<OperationContract()>
<Web.WebGet(UriTemplate:="/GetBedTypeList?strErrMsg={strErrMsg}&chrErrFlg={chrErrFlg}&pcompanycode={pcompanycode}&pdiv={pdiv}&ploc={ploc}", ResponseFormat:=WebMessageFormat.Json, BodyStyle:=WebMessageBodyStyle.Wrapped)> _
Function GetBedTypeList(ByRef strErrMsg As System.Collections.Generic.List(Of String), ByRef chrErrFlg As Char, _
ByVal pcompanycode As String,ByVal pdiv As Integer, _
ByVal ploc As Integer) As System.Collections.Generic.List(Of CWReadClasses.clsBedTypeMaster)
但报错请帮忙
合约“iBedTypeMaster”中的操作“GetBedTypeList”有一个名为“strErrMsg”的查询变量,类型为“System.Collections.Generic.List1[System.String]', but type 'System.Collections.Generic.List1[System.String]”,不能由“QueryStringConverter”转换。 UriTemplate 查询值的变量必须具有可由“QueryStringConverter”转换的类型。
【问题讨论】:
标签: wcf