title: Connect to SOAP in C#
body: <p>I'm new to C# and used to work with PHP.
  In PHP I used this code to connect to a SOAP-service:</p>
  
  <pre><code>&lt;?
  $client = new SoapClient('soapurl.com/soap.php?wsdl');
  $createBatch = $client-&gt;createBatch('username','password');
  $newstring = $createBatch['ResString'];
  echo $newstring;
  ?&gt;
  </code></pre>
  
  <p>How to do this in C#? I've added the soap-url to the reference of the solution.
  I have this code so far:</p>
  
  <pre><code>createBatch b1 = new createBatch("username", "password");
  this.label1.Text = ResString;
  </code></pre>
  
  <p>But how to get the string in the label?</p>