Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/vb.net/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
不应为UpdateHuntListReq类型。使用XmlInclude或SoapInclude属性指定静态未知的类型_Xml_Vb.net - Fatal编程技术网

不应为UpdateHuntListReq类型。使用XmlInclude或SoapInclude属性指定静态未知的类型

不应为UpdateHuntListReq类型。使用XmlInclude或SoapInclude属性指定静态未知的类型,xml,vb.net,Xml,Vb.net,调用从Cisco WSDL文件生成的代码时,我遇到了以下错误,希望有人能发现我的错误 我已经在这里查看了类似问题的答案,但显然我仍然遗漏了一些东西 “不应为UpdateHuntListReq类型。请使用XmlInclude或SoapInclude属性指定静态未知的类型。” 这就是我得到错误的地方: <System.Web.Services.Protocols.SoapDocumentMethodAttribute("CUCM:DB ver=8.0 updateHuntList",

调用从Cisco WSDL文件生成的代码时,我遇到了以下错误,希望有人能发现我的错误

我已经在这里查看了类似问题的答案,但显然我仍然遗漏了一些东西

“不应为UpdateHuntListReq类型。请使用XmlInclude或SoapInclude属性指定静态未知的类型。”

这就是我得到错误的地方:

    <System.Web.Services.Protocols.SoapDocumentMethodAttribute("CUCM:DB ver=8.0 updateHuntList", _
Use:=System.Web.Services.Description.SoapBindingUse.Literal, _
ParameterStyle:=System.Web.Services.Protocols.SoapParameterStyle.Bare)> _
        Public Function updateHuntList(<System.Xml.Serialization.XmlElementAttribute("updateHuntList", [Namespace]:="http://www.cisco.com/AXL/API/8.0", [Type]:=GetType(NameAndGUIDRequest))> ByVal updateHuntList1 As UpdateHuntListReq) As <System.Xml.Serialization.XmlElementAttribute("updateHuntListResponse", [Namespace]:="http://www.cisco.com/AXL/API/8.0")> StandardResponse
            Dim results() As Object = Me.Invoke("updateHuntList", New Object() {updateHuntList1})
            Return CType(results(0), StandardResponse)
        End Function
_
作为标准响应的公共函数updateHuntList(ByVal updateHuntList1作为UpdateHuntListReq)
Dim results()作为Object=Me.Invoke(“updateHuntList”,New Object(){updateHuntList1})
返回CType(结果(0),StandardResponse)
端函数
这是UpdateHuntListReq类的顶部:

 <System.SerializableAttribute(), _
System.Xml.Serialization.XmlTypeAttribute([Namespace]:="http://www.cisco.com/AXL/API/8.0"), _
XmlInclude(GetType(NameAndGUIDRequest))> _
Partial Public Class UpdateHuntListReq
        Inherits NameAndGUIDRequest

        Private newNameField As String
        Private descriptionField As String
        Private callManagerGroupNameField As XFkType
        Private routeListEnabledField As String
        Private voiceMailUsageField As String
        Private itemsField() As XCommonMembersExtension

    .... Rest of the class
_
部分公共类UpdateHuntListReq
继承NameAndGUIDRequest
私有newNameField作为字符串
私有描述符字段为字符串
私有callManagerGroupNameField作为XFkType
私有routeListEnabledField作为字符串
私有voiceMailUsageField作为字符串
Private itemsField()作为XCommonMembersExtension
.... 班上其他同学
谢谢你的帮助

迈克