title: Implementing a SOAP client in C# with WCF and .NET 4.0
body: <p>I'm having trouble getting started with WCF in .NET 4.0. This is my situation:  </p>
  
  <p>I have created a small SOAP Server in PHP. I have a C# project in which I want to connect to this Server and initiate the SOAP communication.</p>
  
  <p>My problem is, I have no idea how to do this in C#. I can't find the right introduction to WCF. There are ways to do this. But I can't find the right classes and references to add to my C# project. Are the any tutorials how to achieve this in C#? I searched a lot and found nothing which helped me.</p>
  
  <p>I want to load the WSDL from my SOAP Server at run time, make the SOAP request, retrieve the answer and be done. But where can I get started? The MSDN site about WCF is only confusing me more.</p>
  
  <p><strong>Edit</strong>: It probably is not necessary to fetch the WSDL file at run time. So that is not needed anymore.<br>
  I used svcutil to create the class and embedded it in my project. I haven't been able to test it yet, because I have some trouble with the MySQL database (It's running and accessible from the mysql command line tool or mysqladmin, but I can't connect to it with any other programm...). I'll report back as soon as I know if it works.</p>
  
  <p><strong>Edit 2</strong>: I've followed Kevs approach and it worked out very good in the end. My final problem was, that I used the Service Class in a DLL. I needed the app.config in the programm which used the DLL too. After I did that it worked out well.</p>