Total Pageviews

Search This Blog

Thursday, March 5, 2015

How to consume ABN (Australian Business Number) or ACN web services from AX 2012 R3

Dear Friends,


Have been super busy with so much to do in so less time!

However, I wanted to take some time and post about my recent experience on how I went integrating ABN Web Service with AX 2012 R3 CU8.

In Australia, we have a concept of ABN and ACN numbers for business registration. ABN is for Australian Business Number and ACN is for Australian Company Number. These registrations are governed by ABR as they are the authority to issue the registration numbers and they maintain this database.

Now, let's get started.

First thing, you would need to go to the ABR site and register to use their webservices.

Once the application is processed which happens within an hour they will e-mail you an authentication GUID (Globally Unique Identifier) which is required to access the ABN Lookup web services. Also with the email, they will send you a pdf which shows you how to access the webservice through various clients like C#, Java, VB6, MS Access etc

Next step, is to open Visual Studio, create a Windows Class Library project and reference the web service. Note, since this is classic web service (.asmx based), so just consume it via the web references node as shown

Web Reference -

Once this is done, next step is to deploy the Project to AOT (as shown below).

Now, back in AX you should be able to see your deployed project

Now, let's write some code.. Here is a simple job which I have used to pass a valid ACN number and it returns me the organisation name.


No comments: