title: WCF Service Client with svcutil ( no "extra" clientside-datatype def. )
body: <p>i got the problem, that a WCF service ( generated with svcutil.exe ) generates it's own datatypes, instead of using the ones i already defined..</p>
  
  <p>for example:</p>
  
  <p>The svcutil generated something like this:</p>
  
  <pre><code> public partial class EmailTransactionRequestMsg : object,   System.Runtime.Serialization.IExtensibleDataObject
  {
  
      private System.Runtime.Serialization.ExtensionDataObject extensionDataField;
  
      private int bit_to_setField;
  
      private string country_db_identifierField;
  .
  
  .
  }
  </code></pre>
  
  <p>when i actually want it to use the class already exists:</p>
  
  <pre><code>[DataContract(Namespace = "Ps.App.Mailing.MsgQueue.MsgInterfaces")]
  public class EmailTransactionRequestMsg
  {
      [DataMember]
      public string country_db_identifier;
  
      [DataMember]
      public int bit_to_set;
  
  }
  </code></pre>
  
  <p>i see that the svcutil service creates a new extensionData-field ( which i don't know for which purpose this is required )</p>
  
  <p>So, how do i get svcutil to use my own class ( because i don't want to cast the objects by every single field )</p>
  
  <p>Thank you all!</p>