PAVv3 VB

From CDYNE Wiki for Web Services
Jump to: navigation, search

Verify Address Advanced

In this sample, the WCFPAV is a service reference with the pavsoap endpoint.

Dim PS As New PavServiceClient("pavsoap")
        Dim PR As New PavRequest
 
        PR.LicenseKey = "(Your License Key)"
        PR.FirmOrRecipient = "CDYNE Corporation"
        PR.PrimaryAddressLine = "2125 Smith Ave"
        PR.SecondaryAddressLine = "Ste 200"
        PR.CityName = "Chesapeake"
        PR.State = "VA"
        PR.ZipCode = "23320"
        PR.ReturnCensusInfo = True
        PR.ReturnCityAbbreviation = True
        PR.ReturnGeoLocation = True
        PR.ReturnLegislativeInfo = True
        PR.ReturnMailingIndustryInfo = True
        PR.ReturnResidentialIndicator = True
        PR.ReturnStreetAbbreviated = True
 
        Dim PavRes As New PavResponse
        PavRes = PS.VerifyAddressAdvanced(PR)
 
        Console.WriteLine(PavRes.ReturnCode.ToString())
 
        Console.WriteLine(
        PavRes.FirmOrRecipient.ToString() & " " &
        PavRes.PrimaryDeliveryLine.ToString() & " " &
        PavRes.SecondaryDeliveryLine.ToString() & " " &
        PavRes.CityName.ToString() & " " &
        PavRes.StateAbbreviation.ToString() & " " &
        PavRes.ZipCode.ToString() & " " &
        PavRes.ResidentialDeliveryIndicator.ToString())
Personal tools
Toolbox





Trial Key