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: Bulgaria Address Validation Results in Cyrillic and Latin Scripts

Example: Bulgaria Address Validation Results in Cyrillic and Latin Scripts

The following examples show the result outputs when you validate a Bulgaria address with and without the
PreferredScript
setting.
Bulgaria Address Validation Without Specifying the Preferred Script
The following request does not contain the
PreferredScript
parameter. The input address is in English and uses the Latin script.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://validator5.AddressDoctor.com/Webservice5/v2"> <soapenv:Header/> <soapenv:Body> <Process xmlns="http://validator5.AddressDoctor.com/Webservice5/v2"> <login>*****</login> <password>*****</password> <parameters> <ProcessMode>BATCH</ProcessMode> </parameters> <addresses> <Address> <FormattedAddress> <string>Suite 8</string> <string>32 Parchevich Str.</string> <string>1000 Sofia</string> <string>Bulgaria</string> </FormattedAddress> </Address> </addresses> </Process> </soapenv:Body></soapenv:Envelope>
Because the request does not specify the preferred script, Informatica AddressDoctor Cloud returns the validated address in the Cyrillic script:
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <ProcessResponse xmlns="http://validator5.AddressDoctor.com/Webservice5/v2"> <ProcessResult> <StatusCode>100</StatusCode> <StatusMessage>OK</StatusMessage> <Results> <Result> <ProcessStatus>C4</ProcessStatus> <CountryISO3>BGR</CountryISO3> <ResultDataSet> <ResultData> <ResultNumber>1</ResultNumber> <MailabilityScore>4</MailabilityScore> <ResultPercentage>84.35</ResultPercentage> <ElementInputStatus>60500040600000200060</ElementInputStatus> <ElementResultStatus>F0E08070F000004000E0</ElementResultStatus> <ElementRelevance>10101000000000000010</ElementRelevance> <ExtElementStatus>00000000000000B00000</ExtElementStatus> <AddressResolutionCode>00000000000000000000</AddressResolutionCode> <AddressType>S</AddressType> <LanguageISO3>ENG</LanguageISO3> <Address> <SubBuilding> <string>Suite 8</string> </SubBuilding> <Street> <string>ул.Петър Парчевич</string> </Street> <HouseNumber> <string>32</string> </HouseNumber> <Locality> <string>София</string> </Locality> <PostalCode> <string>1000</string> </PostalCode> <Province> <string>София</string> </Province> <Country> <string>BULGARIA</string> </Country> <DeliveryAddressLines> <string>Ул.Петър Парчевич 32, Suite 8</string> </DeliveryAddressLines> <CountrySpecificLocalityLine> <string>1000 София</string> </CountrySpecificLocalityLine> <FormattedAddress> <string>Ул.Петър Парчевич 32, Suite 8</string> <string>1000 София</string> <string>BULGARIA</string> </FormattedAddress> <AddressComplete>Ул.Петър Парчевич 32, Suite 8;1000 София;BULGARIA</AddressComplete> </Address> </ResultData> </ResultDataSet> </Result> </Results> </ProcessResult> </ProcessResponse> </soap:Body> </soap:Envelope>
Bulgaria Address Validation with the PreferredScript Parameter in the Request
In the following request, the
PreferredScript
parameter is set to LATIN. The input address is in English and uses the LATIN script.
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="http://validator5.AddressDoctor.com/Webservice5/v2"> <soapenv:Header/> <soapenv:Body> <Process xmlns="http://validator5.AddressDoctor.com/Webservice5/v2"> <login>*****</login> <password>*****</password> <parameters> <ProcessMode>BATCH</ProcessMode> <ValidationParameters> <PreferredScript>LATIN</PreferredScript> </ValidationParameters> </parameters> <addresses> <Address> <FormattedAddress> <string>Suite 8</string> <string>32 Parchevich Str.</string> <string>1000 Sofia</string> <string>Bulgaria</string> </FormattedAddress> </Address> </addresses> </Process> </soapenv:Body></soapenv:Envelope>
The result output is in English and uses the Latin script.
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <soap:Body> <ProcessResponse xmlns="http://validator5.AddressDoctor.com/Webservice5/v2"> <ProcessResult> <StatusCode>100</StatusCode> <StatusMessage>OK</StatusMessage> <Results> <Result> <ProcessStatus>C4</ProcessStatus> <CountryISO3>BGR</CountryISO3> <ResultDataSet> <ResultData> <ResultNumber>1</ResultNumber> <MailabilityScore>4</MailabilityScore> <ResultPercentage>84.35</ResultPercentage> <ElementInputStatus>60500040600000200060</ElementInputStatus> <ElementResultStatus>F0E08070F000004000E0</ElementResultStatus> <ElementRelevance>10101000000000000010</ElementRelevance> <ExtElementStatus>00000000000000B00000</ExtElementStatus> <AddressResolutionCode>00000000000000000000</AddressResolutionCode> <AddressType>S</AddressType> <LanguageISO3>ENG</LanguageISO3> <Address> <SubBuilding> <string>Suite 8</string> </SubBuilding> <Street> <string>ul.Petar Parchevich</string> </Street> <HouseNumber> <string>32</string> </HouseNumber> <Locality> <string>Sofia</string> </Locality> <PostalCode> <string>1000</string> </PostalCode> <Province> <string>Sofia</string> </Province> <Country> <string>BULGARIA</string> </Country> <DeliveryAddressLines> <string>Ul.Petar Parchevich 32, Suite 8</string> </DeliveryAddressLines> <CountrySpecificLocalityLine> <string>1000 Sofia</string> </CountrySpecificLocalityLine> <FormattedAddress> <string>Ul.Petar Parchevich 32, Suite 8</string> <string>1000 Sofia</string> <string>BULGARIA</string> </FormattedAddress> <AddressComplete>Ul.Petar Parchevich 32, Suite 8;1000 Sofia;BULGARIA</AddressComplete> </Address> </ResultData> </ResultDataSet> </Result> </Results> </ProcessResult> </ProcessResponse> </soap:Body> </soap:Envelope>

0 COMMENTS

We’d like to hear from you!