http://ec.europa.eu/taxation_customs/vies/checkVatService.wsdl to check VAT in Italy. I wrote this
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
It always return todays data if vat is either wrong or correct , I don-t either understand why a checkVAt
function gives back a date not a string or boolean
I saw they also have checkVatAsync
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
This runs no error but I don-t get a value back. If I write
s = pivawe.checkVatAsync("IT", piva)
I get error
expression does not produce value.
May be web service simply does not work. Any suggestion thx