WebMethod Return xml

Posted by BabelFish on Stack Overflow See other posts from Stack Overflow or by BabelFish
Published on 2010-03-17T22:38:00Z Indexed on 2010/03/17 22:41 UTC
Read the original article Hit count: 203

Filed under:
|
|

I keep reading how everyone states to return XmlDocument when you want to return XML. Is there a way to return raw XML as a string? I have used many web services (written by others) that return string and the string contains XML. If you return XmlDocument how is that method consumed by users that are not on .Net?

What is the method to just return the raw XML as string without it having being wrapped with <string></string>

Thanks!

© Stack Overflow or respective owner

Related posts about webmethods

Related posts about web-services