title: WCF add attribute to soap body
body: <p>i need to add an attribute to body element. How can i do this?</p>
  
  <pre><code>&lt;soapenv:Body wsu:Id="body"&gt;
  </code></pre>
  
  <p>I'm using XmlSerializerFormat. My Code:</p>
  
  <pre><code>f[ServiceContract(Namespace = "http://TSUtoMFC")]
  [XmlSerializerFormat]
  public interface IService
  {
      [XmlSerializerFormat]
      [OperationContract]
      ResponseType SampleTestSmev();
  
  }
  
      [MessageContract]
      [XmlSerializerFormat]
      public class ResponseType
      {
          [MessageHeader]
          public SecurityType Security = new SecurityType();
          [MessageHeader]
          public smevheader header = new smevheader();
          [MessageBodyMember(Namespace = "http://smev.gosuslugi.ru/rev120315")]
          public MessageType Message = new MessageType();
          [MessageBodyMember(Namespace = "http://smev.gosuslugi.ru/rev120315")]
          public MessageDataType MessageData = new MessageDataType();
  </code></pre>
  
  <p>}</p>