[dba-VB] Access data across the internet. Now: Look up EU VAT No.

Doug Steele dbdoug at gmail.com
Mon Aug 31 12:40:47 CDT 2009


That's too easy!  Takes about a second here (west coast of Canada).

Doug

On Mon, Aug 31, 2009 at 10:21 AM, Gustav Brock <Gustav at cactus.dk> wrote:

> Hi Doug et al
>
> I created another service reference, ServiceEuViesCheckReference, and ran
> this code:
>
>            using (var svc = new
> ServiceEuViesCheckReference.checkVatPortTypeClient())
>            {
>                string countryCode = "DK";
>                string vatNumber = "12002696";
>                bool valid = false;
>                string name = String.Empty;
>                string address = String.Empty;
>                DateTime responseDate = svc.checkVat(
>                    ref countryCode, ref vatNumber,
>                    out valid, out name, out address);
>                Console.WriteLine(responseDate.ToShortDateString());
>                Console.WriteLine(valid.ToString());
>                Console.WriteLine(name);
>                Console.WriteLine(address);
>                Console.Write("Press a key");
>                Console.ReadLine();
>            }
>
> This returns correctly:
>
> ---
> 31-08-2009
> True
> CACTUS DATA APS
> KALKBRÆNDERILØBSKAJ 4A
>
> 2100 KØBENHAVN Ø
> Press a key
> ---
>
> This is fun!
> Response time is about 1 second.
>
>



More information about the dba-VB mailing list