title: vb.net use checkVatService.wsdl
body: <p><a href="http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl" rel="nofollow noreferrer">http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl</a>
  to check VAT in Italy.
  I wrote this</p>
  
  <pre><code>Public Function check_piva() As Date
      Dim pivawe As New checkvatService.europa.ec.checkVatService
      Dim piva As String = "0798012121lk9"
      Dim bb As Boolean
      Dim s As String
      Dim n As String = String.Empty
      Dim data As Date
      data = pivawe.checkVat("IT", piva, bb, n, n)
      MsgBox(data)
      Return data
  </code></pre>
  
  <p>It always return todays data if vat is either wrong or correct , I don-t either understand why a <code>checkVAt</code> function gives back a date not a string or boolean</p>
  
  <p>I saw they also have <code>checkVatAsync</code></p>
  
  <pre><code>Dim pivawe As New checkvatService.europa.ec.checkVatService
  Dim piva As String = "0798012121lk9"
  Dim bb As Boolean
  Dim s As String
  Dim n As String = String.Empty
  Dim data As Date
  pivawe.checkVatAsync("IT", piva)
  MsgBox(data)
  Return data     
  </code></pre>
  
  <p>This runs no error but I don-t get a value back. If I write</p>
  
  <pre><code>s = pivawe.checkVatAsync("IT", piva)
  </code></pre>
  
  <p>I get error</p>
  
  <blockquote>
    <p>expression does not produce value.</p>
  </blockquote>
  
  <p>May be web service simply does not work.
  Any suggestion thx</p>