title: How to consume WSDL web service
body: <p>I need to consume (send request and retrieve the response) of WSDL SAOP web service.</p>
  
  <p>The WSDL document is built with objects of request and response.</p>
  
  <p>How can I call it with XML structure and get as response the XML structure data? </p>
  
  <ul>
  <li>I only experienced web service with serializing data and deserializing the data that comes back.</li>
  </ul>
  
  <p><strong>From the docs:</strong></p>
  
  <pre><code>public class GetOrderDetailRequest : Request
  {
    public string UserName { get; set; } //Required
    public int SiteID { get; set; }    //Required
    public string Password { get; set; } //Required
    public string OrderID { get; set; }  //Required
  }
  
  //    Sample Request XML
  //    &lt;GetAdminOrderDetail&gt;
  //      &lt;MethodParameters&gt;
  //        &lt;req&gt;
  //          &lt;OrderID&gt;9063384&lt;/OrderID&gt;
  //          &lt;Password&gt;test&lt;/Password&gt;
  //          &lt;SiteID&gt;123&lt;/SiteID&gt;
  //          &lt;UserName&gt;test&lt;/UserName&gt;
  //        &lt;/req&gt;
  //      &lt;/MethodParameters&gt;
  //    &lt;/GetAdminOrderDetail&gt;
  
  
  // GetOrderDetailResponse object
  public class AdminOrderDetail
  {
   public List&lt;OrderedColumn&gt; Columns { get; set; }       
   public Invoice Invoice { get; set; }               
   public List&lt;OrderedItem&gt; Items { get; set; }       
   public AdminOrderDetails Details { get; set; }     
  }
  </code></pre>
  
  <p>The only examples that I found online, are ones with calling a function in the service, but the service that I need to work with now- don't use functions that I can call to retrieve data.</p>