Returning XMLDocument from Webservice

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • programmerboy
    New Member
    • Jul 2007
    • 84

    Returning XMLDocument from Webservice

    Hi,
    Can we return XMLDocument from webservice? If yes then why I am getting following exception

    "Cannot implicitly convert type 'System.Xml.Xml Node' to 'System.Xml.Xml Document'"

    If I test my webservice on Visual Studio in returns fine. But in the actual client I am getting this exception.

    This is how I am receiving it

    Code:
    XmlDocument testing = new XmlDocument();
    ReturnUsersXML getUsers = new ReturnUsersXML();
    testing = getUsers.GetUsersByPropertyXML(server,port,DN,LName,
    				ID,IMO,city,state);
    What I am doing wrong??

    P.S: What attribute should i put in code tag to make it C# code
Working...