title: How to consume SOAP web service from .NET Core 3.0 WPF app
body: <p>I have a SOAP web service. I want to consume it in my WPF app. I am using .NET Core 3.0, Visual Studio 2019. So I used the Microsoft WCF Web Service Reference Provider to add reference to my project.  This created the following classes: <a href="https://i.stack.imgur.com/yMUAs.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/yMUAs.jpg" alt="picture1"></a> 
  and <a href="https://i.stack.imgur.com/s2URk.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/s2URk.jpg" alt="enter image description here"></a></p>
  
  <p>Now, how do I use these to get my data by calling the web service?  I tried the following; is this the correct way to call the web service?  In many examples that I have seen on the internet, the client constructor does not need the EndpointConfiguration parameter.  Why is this required in my case?   Can I use the InsertRecordResponse class directly without creating the 'client' first? If yes, how would I do that (to keep the code simpler). Finally, what is the use for InsertRecordRequest and InsertRecordRequestBody and what is the differnce?</p>
  
  <pre><code>  var client = new mserviceSoapClient(mserviceSoapClient.EndpointConfiguration.mserviceSoap);
    Task&lt;InsertRecordResponse&gt; x = client.InsertRecordAsync("", "",     "", "", "",""); //call InsertRecord asynchronously
  </code></pre>