title: Namespace issue with WCF Messagecontract
body: <p>We have developed a WCF which uses message contracts as parameters. When I am generated WSDL for them, for some of the Message contracts the WCF is adding <a href="http://schemas.datacontract.org/2004/07/" rel="nofollow">http://schemas.datacontract.org/2004/07/</a> Namesapce, even though I am overriding the namespace attribute for MessageContract with my custom namespace. Please help me in overriding the default namespace (<a href="http://schemas.datacontract.org/2004/07/" rel="nofollow">http://schemas.datacontract.org/2004/07/</a>).</p>
  
  <p>Here is sample code for the Contracts and WSDL</p>
  
  <pre><code>[ServiceBehavior(Namespace="http://www.example.com/unh0/xwds/wd/service/0")]
  public class WithholdingDeterminationLiteService : IWithholdingDeterminationLiteService 
  {   
      public withholdingDeterminationResponse WithholdingDeterminationLite(withholdingDeterminationLiteRequest request)
      {
          throw new NotImplementedException();
      } 
  }
  
  
  
  [MessageContract(WrapperNamespace = "http://www.example.com/unh0/xwds/wd/lite/request/1")]
  public class withholdingDeterminationLiteRequest : baseVersionableType
  {
  
      …
      private withholdingDeterminationLiteRequestTrade tradeField;
  
      …
  
      /// &lt;remarks/&gt;
      [MessageBodyMember(Namespace = "http://example.com/xods/common/1")]
      public withholdingDeterminationLiteRequestTrade trade
      {
          Get  { return this.tradeField; } set { this.tradeField = value; }
      }
  
      …
  }
  </code></pre>
  
  <p>WSDL Generated out of this has </p>
  
  <pre><code> &lt;wsdl:definitions  …&gt;
      &lt;wsdl:types&gt;
      &lt;xsd:schema elementFormDefault="qualified" targetNamespace="http://www.example.com/unh0/xwds/wd/lite/request/1"&gt;
      &lt;xsd:element name="withholdingDeterminationLiteRequest"&gt;
      &lt;xsd:complexType&gt;
      &lt;xsd:sequence&gt;
      …
      &lt;xsd:element xmlns:q2="http://schemas.datacontract.org/2004/07/" minOccurs="1" name="trade" type="q2:withholdingDeterminationLiteRequestTrade"/&gt;
      …
      &lt;/xsd:sequence&gt;
      &lt;/xsd:complexType&gt;
      &lt;/xsd:element&gt;
      &lt;/xsd:schema&gt;
      &lt;xsd:schema xmlns:tns="http://schemas.datacontract.org/2004/07/" elementFormDefault="qualified" targetNamespace="http://schemas.datacontract.org/2004/07/"&gt;
      …
      &lt;xsd:complexType name="withholdingDeterminationLiteRequestTrade"&gt;
      …
      &lt;/xs
  
  d:complexType&gt;
  &lt;xsd:element name="withholdingDeterminationLiteRequestTrade" type="tns:withholdingDeterminationLiteRequestTrade"/&gt;
  ..
  &lt;/xsd:schema&gt;
  
  &lt;/wsdl:types&gt;
  …
  &lt;/wsdl:definitions&gt;
  </code></pre>
  
  <p>Any help is highly appreciated. </p>