title: Create soap request
body: <p>I've tried to serialize an object with XmlSerializer and SoapFormatter but i can't get the output to look like this:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
   &lt;soap:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;
  &lt;Login xmlns="http://www.myfirm.com/2010/core/ConnectTypes"&gt;
    &lt;UserLogin&gt;
      &lt;UserName&gt;User&lt;/UserName&gt;
      &lt;Password&gt;PW&lt;/Password&gt;
      &lt;Mandant&gt;1&lt;/Mandant&gt;
    &lt;/UserLogin&gt;
  &lt;/Login&gt;
  
   &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>My classes:</p>
  
  <pre><code>[System.SerializableAttribute()]
  [System.Diagnostics.DebuggerStepThroughAttribute()]
  [System.ComponentModel.DesignerCategoryAttribute("code")]
  public partial class UserLoginType
  {
  
      private string userNameField;
  
      private string passwordField;
  
      private int mandantField;
  
      /// &lt;remarks/&gt;
      public string UserName
      {
          get
          {
              return this.userNameField;
          }
          set
          {
              this.userNameField = value;
          }
      }
  
      /// &lt;remarks/&gt;
      public string Password
      {
          get
          {
              return this.passwordField;
          }
          set
          {
              this.passwordField = value;
          }
      }
  
      /// &lt;remarks/&gt;
      public int Mandant
      {
          get
          {
              return this.mandantField;
          }
          set
          {
              this.mandantField = value;
          }
      }
  }
  
  [System.SerializableAttribute()]
  [System.Diagnostics.DebuggerStepThroughAttribute()]
  [System.ComponentModel.DesignerCategoryAttribute("code")]
  public partial class LoginType
  {
  
      private object itemField;
  
      /// &lt;remarks/&gt;
      [System.Xml.Serialization.XmlElementAttribute("LoginToken", typeof(string))]
      [System.Xml.Serialization.XmlElementAttribute("UserLogin", typeof(UserLoginType))]
      public object Item
      {
          get
          {
              return this.itemField;
          }
          set
          {
              this.itemField = value;
          }
      }
  }
  </code></pre>
  
  <p>Can anyone help?</p>