title: How to send custom objects in WCF Message
body: <p>I wanted to send one custom object in <code>system.servicemodel.Channels.Message</code>. Like</p>
  
  <pre><code>public class person
  {
      string Id;
      string Name;
  }
  
  MessageVersion mv = MessageVersion.Create(Soap12);
  String action = "Msg";
  
  Message msg = Message.Create(mv, action, new person());
  
  serviceref.ProcessMsg(msg) // this is my service reference in client
  
  //when i tried to access this in Service like 
  person p = msg.GetBody&lt;person&gt;()
  //I am getting an serialization exception
  //I have the Person class on both client and service side
  </code></pre>
  
  <p>Can some one please help me in figure out my error?</p>