title: WCF REST return single method as JSON and XML
body: <p>I am using below Code for WCF Rest Services to get in JSON format</p>
  
  <pre><code>[OperationContract]   
  
  [WebGet(UriTemplate = "/GetOrderList?request={request}", BodyStyle = WebMessageBodyStyle.Wrapped, RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
  IEnumerable&lt;Order&gt; GetOrderList(Request request);
  </code></pre>
  
  <p>I want this method to return XML type also. Do i need to have one more method for it ?
  I want to do it in the same method without duplicating the code for XML.
  I am using WCF 3.5. I cannot change my version.</p>