title: Closing A SOAP Connection
body: <p>I've made soap connection to a server and the server doesn't seem to be dropping that connection, in netstat the status of the connection is listed as CLOSE WAIT.</p>
  
  <p>I'm told that the client that created the soap connection has to send a command to the server to close the connection. Can anyone tell me the correct way to do this in C#? Below is an example piece of code.</p>
  
  <pre><code>SOAPServer.Service Soap = new SOAPServer.Service(); // SOAPServer is a web reference
  Soap.Timeout = 30000;
  string[] SOAPReturnResult = Soap.DepotData(100, "Test");
  Soap.Dispose();
  </code></pre>