Service returns xmlNode instead of xmlDocument!
I have a web service that I'm trying to return an xml document from. the webmethod signature is xmlDocument.
When I consume the service from an aspx page, the IDE allows me to assign the return value to a variable of type xmlDocument, then throws and invalid cast at runtime. When hovering over the webservice method call, intellisense indicates the return type is xmlNode.
For test purposes I'm trying to assign the document to and xml control on the page before making the document available to other internal consumers of the service.
the consumption code would look like this:
dim MyXmlDoc as xmlDocument
MyXmlDoc = ws.GetData("1234") 'where 1234 is an id to look up via the service.
when the above line executes the error is thrown. The call to the web service itself is successful.