title: How to remove xml namespace when return type is generic type in wcf restful service
body: <p>Following is interface definition.</p>
  
  <pre><code>[OperationContract]
  [WebGet(UriTemplate = "FacebookData/?accessToken={accessToken}")]
  OperationResult&lt;FacebookData&gt; GetFacebookData(string accessToken);
  </code></pre>
  
  <p>The return type is <code>OperationResult&lt;FacebookData&gt;</code>,  it is a generic type</p>
  
  <p>Then i will get xml like following...</p>
  
  <p>OperationResultOfFacebookDataNcCATIYq xmlns:i="http://www.w3.org/2001/XMLSchema-instance"</p>
  
  <p>How can I remove namespace and rename xml element as "OperationResult" </p>
  
  <p>By the way, I already set Namespace is empty </p>
  
  <pre><code>[DataContract(Namespace = "")]
  public class OperationResult&lt;T&gt;
  </code></pre>
  
  <p>but I think generic type will generate class by every T.</p>