PAVv3 ColdFusion

From CDYNE Wiki
Jump to navigation Jump to search

Get Congressional District By Zip

1 <cfhttp method="GET" url="http://pav3.cdyne.com/PavService.svc/GetCongressionalDistrictByZip" result="result"> 	 
2 <cfhttpparam type="URL" name="ZipCode" value="23320"> 
3 <cfhttpparam type="URL" name="LicenseKey" value="YOUR LICENSE KEY"> 
4 </cfhttp>
5 <cfset xmlDoc = XmlParse(#result.FileContent#)> 
6 <cfdump var="#xmlDoc#"/>

Get City Names For Zip Code

1 <cfhttp method="GET" url="http://pav3.cdyne.com/PavService.svc/GetCityNamesForZipCode" result="result"> 	 
2 <cfhttpparam type="URL" name="ZipCode" value="23320"> 
3 <cfhttpparam type="URL" name="LicenseKey" value="YOUR LICENSE KEY"> 
4 </cfhttp>
5 <cfset xmlDoc = XmlParse(#result.FileContent#)> 
6 <cfdump var="#xmlDoc#"/>

Get Zip Codes For City And State

1 <cfhttp method="GET" url="http://pav3.cdyne.com/PavService.svc/GetZipCodesForCityAndState" result="result"> 	 
2 <cfhttpparam type="URL" name="City" value="Chesapeake"> 
3 <cfhttpparam type="URL" name="State" value="VA"> 
4 <cfhttpparam type="URL" name="LicenseKey" value="YOUR LICENSE KEY"> 
5 </cfhttp>
6 <cfset xmlDoc = XmlParse(#result.FileContent#)> 
7 <cfdump var="#xmlDoc#"/>

Get Urbanization List For ZipCode

1 <cfhttp method="GET" url="http://pav3.cdyne.com/PavService.svc/GetUrbanizationListForZipCode" result="result"> 	 
2 <cfhttpparam type="URL" name="ZipCode" value="23320"> 
3 <cfhttpparam type="URL" name="LicenseKey" value="YOUR LICENSE KEY"> 
4 </cfhttp>
5 <cfset xmlDoc = XmlParse(#result.FileContent#)> 
6 <cfdump var="#xmlDoc#"/>

Verify Address Advanced

 1 <cfsavecontent variable="soapBody">
 2 <cfoutput>
 3 <?xml version="1.0" encoding="utf-8"?>
 4 <PavRequest xmlns="pav3.cdyne.com">
 5 <CityName>Chesapeake</CityName>
 6 <FirmOrRecipient>CDYNE Corporation</FirmOrRecipient>
 7 <LicenseKey>YOUR LICENSE KEY</LicenseKey>
 8 <PrimaryAddressLine>505 Independence Parkway</PrimaryAddressLine>
 9 <ReturnCaseSensitive>true</ReturnCaseSensitive>
10 <ReturnCensusInfo>true</ReturnCensusInfo>
11 <ReturnCityAbbreviation>true</ReturnCityAbbreviation>
12 <ReturnGeoLocation>true</ReturnGeoLocation>
13 <ReturnLegislativeInfo>true</ReturnLegislativeInfo>
14 <ReturnMailingIndustryInfo>true</ReturnMailingIndustryInfo>
15 <ReturnResidentialIndicator>true</ReturnResidentialIndicator>
16 <ReturnStreetAbbreviated>true</ReturnStreetAbbreviated>
17 <SecondaryAddressLine>Suite 300</SecondaryAddressLine>
18 <State>VA</State>
19 <Urbanization></Urbanization>
20 <ZipCode>23320</ZipCode>
21 </PavRequest>
22 </cfoutput>
23 </cfsavecontent>
24 <cfhttp
25 url="http://pav3.cdyne.com/PavService.svc/VerifyAddressAdvanced"
26 method="POST"
27 result="httpResponse">
28 <cfhttpparam
29 type="header"
30 name="SOAPAction"
31 value="http://pav3.cdyne.com/PavService.svc/VerifyAddressAdvanced"
32 />
33 <cfhttpparam
34 type="xml"
35 value="#trim( soapBody )#"
36 />
37 </cfhttp>
38 <cfoutput>
39 #xmlParse(httpResponse.fileContent)#
40 </cfoutput>

Verify Address

 1 <cfhttp method="GET" url="http://pav3.cdyne.com/PavService.svc/VerifyAddress" result="result"> 	 
 2 <cfhttpparam type="URL" name="FirmOrRecipient" value="CDYNE Corporation">
 3 <cfhttpparam type="URL" name="PrimaryAddressLine" value="505 Independence Parkway">
 4 <cfhttpparam type="URL" name="SecondaryAddressLine" value="Suite 300">
 5 <cfhttpparam type="URL" name="Urbanization" value="">
 6 <cfhttpparam type="URL" name="CityName" value="Chesapeake"> 
 7 <cfhttpparam type="URL" name="State" value="VA">
 8 <cfhttpparam type="URL" name="ZipCode" value="23320"> 
 9 <cfhttpparam type="URL" name="LicenseKey" value="YOUR LICENSE KEY"> 
10 </cfhttp>
11 <cfset xmlDoc = XmlParse(#result.FileContent#)> 
12 <cfdump var="#xmlDoc#"/>

Get Intelligent Mail Barcode

 1 <cfhttp method="GET" url="http://pav3.cdyne.com/PavService.svc/GetIntelligentMailBarcode" result="result"> 	 
 2 <cfhttpparam type="URL" name="BarcodeIdentifier" value="12">
 3 <cfhttpparam type="URL" name="ServiceTypeIdentifier" value="123">
 4 <cfhttpparam type="URL" name="MailerIdentifier" value="123456">
 5 <cfhttpparam type="URL" name="SerialNumber" value="123456789">
 6 <cfhttpparam type="URL" name="IntelligentMailBarcodeKey" value="dw/cKC9h9Au0zJy+WGvQkQ=="> 
 7 <cfhttpparam type="URL" name="LicenseKey" value="YOUR LICENSE KEY"> 
 8 </cfhttp>
 9 <cfset xmlDoc = XmlParse(#result.FileContent#)> 
10 <cfdump var="#xmlDoc#"/>

Get Zip Codes For Fips

1 <cfhttp method="GET" url="http://pav3.cdyne.com/PavService.svc/GetZipCodesForFips" result="result"> 	 
2 <cfhttpparam type="URL" name="Fips" value="51550"> 
3 <cfhttpparam type="URL" name="LicenseKey" value="YOUR LICENSE KEY"> 
4 </cfhttp>
5 <cfset xmlDoc = XmlParse(#result.FileContent#)> 
6 <cfdump var="#xmlDoc#"/>

Get Zip Codes Within Distance

1 <cfhttp method="GET" url="http://pav3.cdyne.com/PavService.svc/GetZipCodesWithinDistance" result="result"> 	 
2 <cfhttpparam type="URL" name="Latitude" value="36.761560">
3 <cfhttpparam type="URL" name="Longitude" value="-76.259964"> 
4 <cfhttpparam type="URL" name="Radius" value="5"> 
5 <cfhttpparam type="URL" name="LicenseKey" value="YOUR LICENSE KEY"> 
6 </cfhttp>
7 <cfset xmlDoc = XmlParse(#result.FileContent#)> 
8 <cfdump var="#xmlDoc#"/>

Back to Postal_Address_Verification_V3