General downloads

Check VAT Registration No. with a web service

Author
Waldo  
Category
General downloads
Date
20/12/2011
Size
42,28 KB
Downloads
2178
MD5 digest
159816276E5D531BD7F5008515D23239
Rating
432150
Popularity
Downloaded 3 times in the last two weeks

This example in code is going to use a web service (an official one - from taxation and customs union - ec.europa.eu) to validate a VAT number. The web service returns a company name and address.

The download contains:
- The RTC codeunit. You'll have to provide an action on some page to be able to run it.
- A classic codeunit. this is code what it would look like in the classic environment. It also works .. but who wants to write that? :-) It's just there for your reference/comparison.
- The Proxy class. In the folder mentioned above, you'll find the dll that you'll have to deploy

The code is meant to show how to connect with it, and is not written to be used in production. So please use it at your own risk.

In this blogpost, I explain it more in detail: http://dynamicsuser.net/blogs/waldo/archive/2011/12/20/net-interop-consume-a-third-party-web-service-check-vat-registration-no.aspx