Remove xml namespaces from WCF restful response -


I am using WCF to return a plain old XML (POX) document to the caller. I am using XML Serializer formatter to convert items into XML.

In the returned document, I have XML Schema and for example some XML XML namespace reference (which were not in the ASMX version). I have seen various debates on the web that they should not be removed which I do not buy to return a plain XML document.

What is the simplest way to get these XML references from XML document in WCF?

The signature looks like this:

  public responseInfo process (string input) {}  

text> itemprop = "text">

  [ DataContract namespace = "")] Public class ResponseInfo {// ...}  

I hope it helps ...


Comments