How to get Plain XMl from ADO.Net data services? RRS feed

  • Question

  • Hi All,

    is it possible to get  plain XML (not ATOM) from a data service? let say i want my data base table data serialized in XML format then what header i should provide?

    Akhilesh Bhale
    Monday, December 14, 2009 6:58 AM


  • Hi,

    WCF Data Services only support ATOM or JSON payloads right now. If you ask the server for an XML payload it will respond with ATOM (which is XML).
    You could apply some kind of transformation on the ATOM to get the plain XML you're looking for (for example XSLT).
    Could you please describe your scenario in a bit more detail so that we can consider it for some of the future releases? (Why you need plain XML, why does not ATOM work for you, ...)

    Thanks a lot,
    Vitek Karas [MSFT]
    Monday, December 14, 2009 10:19 AM