WCF Custom Serialization

V

Vikas

Hi

I am using WCF RESTful services for my application.

However the services are required to return either JSON or XML
depending on a parameter that is passed to the service. So I cannot
use the ResponseFormat property of the WebInvoke attribute directly.

Can anyone tell me what is the best way to achieve this? Do I need to
create 2 different endpoints or can I plug in custom formatters into
the WCF pipeline?

Thanks in advance

Vikas Manghani
 

My Computer

Top