return nodelist web service error

return nodelist web service error

Post by U2hlb » Wed, 02 Feb 2005 00:55:20


Hi Folks, I have written a small webservice in which one of the methods
returns a nodelist. The file compiles OK, but when I ry to run it I ge teh
following error:
"You must implement the Add(System.Object) method on System.Xml.XmlNodeList
because it inherits from IEnumerable".
Can anybody help???
 
 
 

return nodelist web service error

Post by Dilip Kris » Thu, 03 Feb 2005 05:26:47

Hello Shem,
NodeList is not xml serializable. Try to just create an array of xml nodes
and change your return value to XmlNode [] instead of XmlNodeList

HTH
Regards,
Dilip Krishnan
MCAD, MCSD.net
dkrishnan at geniant dot com
http://www.yqcomputer.com/