PAVv3 ColdFusion

From CDYNE Wiki
Jump to: navigation, search

Contents

Get Congressional District By Zip

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

Get City Names For Zip Code

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

Get Zip Codes For City And State

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

Get Urbanization List For ZipCode

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

Verify Address Advanced

<cfsavecontent variable="soapBody">
<cfoutput>
<?xml version="1.0" encoding="utf-8"?>
<PavRequest xmlns="pav3.cdyne.com">
<CityName>Chesapeake</CityName>
<FirmOrRecipient>CDYNE Corporation</FirmOrRecipient>
<LicenseKey>YOUR LICENSE KEY</LicenseKey>
<PrimaryAddressLine>505 Independence Parkway</PrimaryAddressLine>
<ReturnCaseSensitive>true</ReturnCaseSensitive>
<ReturnCensusInfo>true</ReturnCensusInfo>
<ReturnCityAbbreviation>true</ReturnCityAbbreviation>
<ReturnGeoLocation>true</ReturnGeoLocation>
<ReturnLegislativeInfo>true</ReturnLegislativeInfo>
<ReturnMailingIndustryInfo>true</ReturnMailingIndustryInfo>
<ReturnResidentialIndicator>true</ReturnResidentialIndicator>
<ReturnStreetAbbreviated>true</ReturnStreetAbbreviated>
<SecondaryAddressLine>Suite 300</SecondaryAddressLine>
<State>VA</State>
<Urbanization></Urbanization>
<ZipCode>23320</ZipCode>
</PavRequest>
</cfoutput>
</cfsavecontent>
<cfhttp
url="http://pav3.cdyne.com/PavService.svc/VerifyAddressAdvanced"
method="POST"
result="httpResponse">
<cfhttpparam
type="header"
name="SOAPAction"
value="http://pav3.cdyne.com/PavService.svc/VerifyAddressAdvanced"
/>
<cfhttpparam
type="xml"
value="#trim( soapBody )#"
/>
</cfhttp>
<cfoutput>
#xmlParse(httpResponse.fileContent)#
</cfoutput>

Verify Address

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

Get Intelligent Mail Barcode

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

Get Zip Codes For Fips

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

Get Zip Codes Within Distance

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

Back to Postal_Address_Verification_V3

Personal tools
Namespaces

Variants
Actions
Navigation
Tools

Trial Key