Table of Contents

Search

  1. Preface
  2. Getting Started with Informatica Address Verification (On-Premises)
  3. General Settings
  4. Input Parameters
  5. Process Parameters
  6. Address Enrichments
  7. Result Parameters
  8. Output Fields
  9. Assessment Codes and Return Codes
  10. Frequently Asked Questions
  11. Appendix A: Geocode Countries
  12. Appendix B: CASS Enrichments

Developer Guide (On-Premises)

Developer Guide (On-Premises)

How Do I Initialize Informatica Address Verification?

How Do I Initialize Informatica Address Verification?

If you are using a C language APIs, you must call
AD_Initialize()
or
AD_InitializeW()
functions to initialize Informatica Address Verification. If you are using Java APIs, call the
AddressDoctor.initialize
function. The initialization function evaluates the settings and configures the engine accordingly.
You can call other functions such as
AD_GetAddressObject()
only after the initialization function is successful. If the initialization failed, Address Verification returns an error code of -1300.
The following example shows a sample code for C API.
AD_Initialize( "<?xml version='1.0' encoding='iso-8859-1' ?>\n" "<!DOCTYPE SetConfig SYSTEM 'SetConfig.dtd'>\n" "<SetConfig>\n" "<General />\n" "<UnlockCode>(Enter Code here)</UnlockCode>\n" "<DataBase CountryISO3='ALL' Type='BATCH_INTERACTIVE' Path='/ADDB' PreloadingType='NONE'/>\n" "</SetConfig>\n", NULL, NULL, NULL );
Alternatively, you can store the
SetConfig.xml
in an external file. In such cases, you can use the following initialization call.
AD_Initialize( NULL, "SetConfig.xml", NULL, NULL );
The following example shows a sample code Java API.
// Initialize the Engine using the 'Direct' API AddressDoctor.initialize( "<?xml version='1.0' encoding='UTF-16LE'?>\n" + "<!DOCTYPE SetConfig SYSTEM 'SetConfig.dtd'>\n" + "<SetConfig>\n" + "<General WriteXMLEncoding='UTF-16LE' />\n" + "<UnlockCode>(Enter Code here)</UnlockCode>\n" + "<DataBase CountryISO3='ALL' Type='BATCH_INTERACTIVE' Path='/ADDB' PreloadingType='NONE'/>\n" + "</SetConfig>", null, null, null );
Alternatively, you can store the
SetConfig.xml
in an external file. In such cases, you can use the following initialization call.
// Initialize the Engine using the 'XML' API AddressDoctor.initialize( null, “SetConfig.xml”, null, null );