title: SOAP xml client - using Visual Studio 2010 c# - how?
body: <p>I'm new to .NET world, yet have to use VStudio C# 2010 (.NET 4.0) to produce a client that requests data from a web service in SOAP Xml fashion. I've searched here for answers but got confused even more. MSDN says that "Building XML Web Service Clients" is legacy for .NET 4.0, i.e. WSDL is legacy. Use "WCF" instead, they say.
  In WCF i got lost - too much and too vague. It must be simpler then that...
  And all examples that i could find on the web - they all use WSDL, "the legacy".</p>
  
  <p>Here are the definitions of the service i need to use in order to obtain the data from the web service:</p>
  
  <p>request:</p>
  
  <pre><code>POST /catalog.asmx HTTP/1.1
  Host: www.somewebsite.com
  Content-Type: text/xml; charset=utf-8
  Content-Length: length
  SOAPAction: "https://www.somewebsite.com/KeywordSearch"
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Body&gt;
      &lt;KeywordSearch xmlns="https://www.somewebsite.com/"&gt;
    &lt;searchTerm&gt;string&lt;/searchTerm&gt;
    &lt;resultsReturned&gt;int&lt;/resultsReturned&gt;
     &lt;/KeywordSearch&gt;
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>Response:</p>
  
  <pre><code>HTTP/1.1 200 OK
  Content-Type: text/xml; charset=utf-8
  Content-Length: length
  
  &lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"&gt;
    &lt;soap:Body&gt;
      ...some stuff...
    &lt;/soap:Body&gt;
  &lt;/soap:Envelope&gt;
  </code></pre>
  
  <p>So, what is the right, or at least most logical way to built this simple client? What tools/libraries/methodologies would you suggest to newbie (assuming VS 2010 C#, .NET 4.0 environment)?</p>