V
Valmir
I've built a web service that has a method which should return XmlDocument
object's.
The problem is: in the client, inspecting the web service reference in
Object Browser, it always says that it returns an XmlNode.
The portion of the code where I try to assign the return call of this method
to an XmlDocument object gives me a message saying that is not possible to
convert to XmlNode from XmlDocument.
Am I forgetting something? Is there something I need to put in directives or
else instructing the client that a method will return an XmlDocument object?
The XmlDocument is created as following
[WebMethod]
public XmlDocument myMethod()
{
string buffer = "<root><blahblahblah></blahblahblah></root>"
xmlDocument objXmlDocument
objXmlDocument.LoadXml(buffer)
return objXmlDocument
}
Thanks in advance
object's.
The problem is: in the client, inspecting the web service reference in
Object Browser, it always says that it returns an XmlNode.
The portion of the code where I try to assign the return call of this method
to an XmlDocument object gives me a message saying that is not possible to
convert to XmlNode from XmlDocument.
Am I forgetting something? Is there something I need to put in directives or
else instructing the client that a method will return an XmlDocument object?
The XmlDocument is created as following
[WebMethod]
public XmlDocument myMethod()
{
string buffer = "<root><blahblahblah></blahblahblah></root>"
xmlDocument objXmlDocument
objXmlDocument.LoadXml(buffer)
return objXmlDocument
}
Thanks in advance