Table of Contents

Search

  1. Preface
  2. Introduction to Informatica AddressDoctor Cloud
  3. Informatica AddressDoctor Cloud Interface
  4. Informatica AddressDoctor Cloud Request Parameters
  5. Informatica AddressDoctor Cloud Response Elements
  6. Examples

Developer Guide

Developer Guide

Example: VisualBasic .NET Interface

Example: VisualBasic .NET Interface

The following examples show how you can use Visual Studio 2010 to add a Service Reference to Informatica AddressDoctor Cloud. The example uses proxy classes to make calling Informatica AddressDoctor Cloud easy. You do not need to construct the SOAP XML request or parse the response. When adding a Service Reference to a project, you can click the
Advanced…
button to change the Collection type from
System.Array
to
System.Collections.Generic.List
. For example, the addresses parameter is defined as
addresses() As Address
. instead of
addresses As List(Of Address)
This setting is assumed in the following description of the Interface.

The Process method

Function Process(login As String, password As String, parameters As Parameters, Addresses() As Address, enrichments() As Enrichment) As Response

The Parameter classes

Public Class Parameters Public ProcessMode As String Public ServiceParameters As ServiceParameters Public ValidationParameters As ValidationParameters End Class Public Class ServiceParameters Public JobToken As String Public CampaignId As String Public ReservedXml As String Public UseTransactionPool As String End Class Public Class ValidationParameters Public FormatType As String Public FormatDelimiter As String Public DefaultCountryISO3 As String Public ForceCountryISO3 As String Public CountryType As String Public CountryOfOriginISO3 As String Public StreetWithNumber As Boolean Public FormatWithCountry As Boolean Public ElementAbbreviation As Boolean Public PreferredScript As String Public PreferredLanguage As String Public AliasStreet As String Public AliasLocality As String Public GlobalCasing As String Public GlobalMaxLength As Integer Public GlobalPreferredDescriptor As String Public MatchingScope As String Public MaxResultCount As Integer Public DualAddressPriority As String Public StandardizeInvalidAddresses As Boolean Public RangesToExpand As String Public FlexibleRangeExpansion As Boolean Public GeoCodingType As String Public MatchingAlternatives As String Public MatchingExtendedArchive As Boolean Public DisableCertifiedModeISO3 As String Public FormatMaxLines As Integer Public Standardizations() As Standardize Public OutputOptions As AddressOptions End Class

The Address class

Public Class Address Public RecordId As String Public Organization() As String Public Department() As String Public Contact() As String Public Email() As String Public Building() As String Public SubBuilding() As String Public Street() As String Public HouseNumber() As String Public DeliveryService() As String Public Locality() As String Public PreferredLocality() As String Public PostalCode() As String Public Province() As String Public Country() As String Public Residue() As String Public DeliveryAddressLines() As String Public CountrySpecificLocalityLine() As String Public FormattedAddress() As String End Class
All address elements are defined as arrays because address formats differ from country to country. In some countries, there are two or more street lines, such as street and dependent street, whereas some other countries have multiple entries for locality. The current Informatica AddressDoctor version supports up to six lines for each address element.

The Enrichment class

Public Class Enrichment Public Type As String Public PayloadXml As String End Class

The Standardize class

Public Class Standardize Public Element As String Public Casing As String Public MaxLength As Integer Public MaxItemCount As Integer End Class

The Response class

Public Class Response Public StatusCode As Integer Public StatusMessage As String Public JobToken As String Public CampaignId As String Public ReservedXml As String Public Results() As Result End Class

The Result class

Public Class Result Public ProcessStatus As String Public CountryISO3 As String Public ResultDataSet() As ResultData Public Enrichments() As Enrichment End Class

The ResultData class

Public Class ResultData Public MailabilityScore As String Public ResultPercentage As String Public ElementInputStatus As String Public ElementResultStatus As String Public ElementRelevance As String Public ExtElementStatus As String Public AddressResolutionCode As String Public Address As Address End Class

0 COMMENTS

We’d like to hear from you!