locked
Accepting and returning custom format RRS feed

  • Question

  • Currently ADO.NET data services only supports xml or json format, e.g. in the headers specify:
    Accept: application/atom+xml               return format: atom
    Accept: application/json                        return format: json

    So if I want to have my customized format like:
    Accept: application/kml                         return format: kml
    Accept: applilcation/georss                    return format: georss

    Is it possible for me to intercept the request and check whats inside the Accept header before the request gets executed?
    And is it possible for me to return my own format instead of being wrapped in a xml layer?
    Tuesday, January 12, 2010 6:01 PM

Answers