ptran12001
September 26th, 2008, 11:38 AM
Thank you for reading my thread and any suggestion or hint will be greatly appreciated.
I am getting the error "Unable to cast object of type 'System.Object()' to type 'Xml.XmlNodeList()" from the following codes in VS2005.
Dim soapclient As New MSSOAPLib30.SoapClient30
Dim templatelist() As Xml.XmlNodeList
...
templatelist = soapclient.getservice(par1, par2)
These codes worked in VB6 with "Dim templatelist() As MSXML2.IXMLDOMSelection"
I tried with CType and DirectCast but to no avail.
Any suggestions?
Thanks
I am getting the error "Unable to cast object of type 'System.Object()' to type 'Xml.XmlNodeList()" from the following codes in VS2005.
Dim soapclient As New MSSOAPLib30.SoapClient30
Dim templatelist() As Xml.XmlNodeList
...
templatelist = soapclient.getservice(par1, par2)
These codes worked in VB6 with "Dim templatelist() As MSXML2.IXMLDOMSelection"
I tried with CType and DirectCast but to no avail.
Any suggestions?
Thanks