title: consuming a webservice in vb 2010
body: <p>Sorry, it's been a while since I've worked with MS web service clients.  I'm using web developer 2010.  I created a web method that returns:</p>
  
  <pre><code>-&lt;NewDataSet xmlns=""&gt; -&lt;TC diffgr:id="TC1" msdata:rowOrder="0"&gt;
   &lt;SalesN&gt;25&lt;/SalesN&gt; 
    &lt;PctDiscount&gt;0.0000&lt;/PctDiscount&gt; 
     &lt;SubDiscount&gt;0.0000&lt;/SubDiscount&gt; 
   &lt;/TC&gt; 
  &lt;TC diffgr:id="TC2" msdata:rowOrder="1"/&gt; 
   -&lt;TC diffgr:id="TC3" msdata:rowOrder="2"&gt; 
    &lt;PctDiscount&gt;0.0000&lt;/PctDiscount&gt; 
     &lt;SubDiscount&gt;0.0000&lt;/SubDiscount&gt; 
     &lt;SalesT&gt;685.89&lt;/SalesT&gt; 
  &lt;/TC&gt;
  ...
  </code></pre>
  
  <p>I'm trying to get to the information in SalesN and SalesT</p>
  
  <p>My aspx button click looks like this:</p>
  
  <pre><code>Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
      Dim date1 As String
      Dim date2 As String
      Dim myString As String
      date1 = TextBox1.Text
      date2 = TextBox2.Text
  
      Dim myreport As New ServiceReferenceReport.wsReportEngineSoapClient
      myreport.GetSalesTotals(date1, date2)
  End Sub
  </code></pre>
  
  <p>Can someone point me to a tutorial, or refresh my memory?</p>
  
  <p>I've load a datagrid and can't seems to parse out the data elements.</p>