Shamil Salakhetdinov
shamil at smsconsulting.spb.ru
Mon Aug 31 12:54:23 CDT 2009
<<< That's too easy! >>> Yes, C# (VB.NET) development is usually a way easier than VB6/VBA - I mean that! :) Of course one need some time to get on speed with .NET Framework, C# and/or VB.NET... Well, it may happen you'll get some cases as with WCF Web Services and my system but if you compare how much such cases did you have with VB6/VBA/"DLL-Hell" then you'll definitely love .NET Framework/C#/VB.NET development... -- Shamil -----Original Message----- From: dba-vb-bounces at databaseadvisors.com [mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of Doug Steele Sent: Monday, August 31, 2009 9:41 PM To: Discussion concerning Visual Basic and related programming issues. Subject: Re: [dba-VB] Access data across the internet. Now: Look up EU VAT No. 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. > > _______________________________________________ dba-VB mailing list dba-VB at databaseadvisors.com http://databaseadvisors.com/mailman/listinfo/dba-vb http://www.databaseadvisors.com __________ Information from ESET NOD32 Antivirus, version of virus signature database 4384 (20090831) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru __________ Information from ESET NOD32 Antivirus, version of virus signature database 4384 (20090831) __________ The message was checked by ESET NOD32 Antivirus. http://www.esetnod32.ru