title: Construct SOAP Envelope XML using C#
body: <p>I searched all over and i dont know what is the best way to construct an XML like this in C#.</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
      &lt;SOAP-ENV:Envelope
  SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
  xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
  xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"&gt;
          &lt;SOAP-ENV:Body&gt;
              &lt;ns5572:calculate_something xmlns:ns5572="http://tempuri.org"&gt;
                  &lt;Input_data&gt;
                  &lt;code_user xsi:type="xsd:string"&gt;test_user&lt;/code_user&gt;
                  &lt;password_broker xsi:type="xsd:string"&gt;test_password&lt;/password&gt;
                  &lt;subuser_id xsi:type="xsd:string"&gt;&lt;/subuser_id&gt;
                  &lt;/Input_data&gt;
              &lt;/ns5572:calculate_something&gt;
          &lt;/SOAP-ENV:Body&gt;
      &lt;/SOAP-ENV:Envelope&gt;
  </code></pre>
  
  <p>My question is if there are any special dedicated classes for this kind of structure.
  Thanks in advance.</p>