I am trying to decipher the USPS API system.  We have
been hitting their site for years and verifying our
shipping addresses.  They have updated the way this is
done and are now using API's/xml.  

I am having a problem working through the monstrous
amount of documentation to do what I need to do.  It
should be relatively simple but.... 

The following test code works (substituting my
username and password)  I am now sifting through the
documentation to figure out the USPS return codes that
show that the address was correct or not.  I know it
hits the site and I know it verifies the address. What
I don't know is how to find their return code showing
if it was an <error> or not.  Has anyone done this and
if so could you share your ideas.

<cfhttp
url="http://SERVERNAME/ShippingAPITest.dll?API=Verify&XML=<AddressValidateRequest%20USERID='xxxx'%20PASSWORD='xxxxx'><Address
ID='0'><Address1></Address1><Address2>3527 Sharonwood
Road
Apt.</Address2><City>Wilmington</City><State>DE</State><Zip5></Zip5><Zip4></Zip4></Address></AddressValidateRequest>"
method="get" resolveurl="true"></CFHTTP>


__________________________________________________
Do you Yahoo!?
HotJobs - Search new jobs daily now
http://hotjobs.yahoo.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Reply via email to