cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
225
Views
0
Helpful
0
Comments
cdnadmin
Level 11
Level 11
This document was generated from CDN thread

Created by: Michael Dunsdon on 27-07-2012 05:55:59 AM
Hi
 
I'm trying to update a hunt list using the .net API but get the following error
 
"The type XHuntListMembers was not expected. Use
the XmlInclude or SoapInclude attribute to specify types that are not known
statically."
 
I've managed to find out that this is a problem with .net in that you have to specify the type of any derived classes used in the XML using XmlInclude or SoapInclude
 
What I can't work out is where in the autogenerated vb.net file I need to put it.
 
Does anyone know if it goes on the call itself (below) or somewhere else ?

 
    <System.Web.Services.Protocols.SoapDocumentMethodAttribute("CUCMB 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", :="http://www.cisco.com/AXL/API/8.0")> ByVal updateHuntList1 As UpdateHuntListReq) As <System.Xml.Serialization.XmlElementAttribute("updateHuntListResponse", :="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
 
Really appreciate any pointers
 
Thanks
 
Mike
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Quick Links