× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



It looks like you are merging the GET request and a POST request. Move the API and &XML into the Request Message instead of the URL.


It appear you should be doing something like this:

select *
from table(systools.httppostclobverbose('https://secure.shippingapis.com/ShippingAPI.dll'

,'<httpHeader><header name="Content-type" value="text/xml"/></httpHeader>'

,'API=RateV4&XML=<AddressValidateRequest USERID="xxxxxxxxxxxx"><Revision>1</Revision><Address ID="0"><Address1>4166 Berkeley Landing</Address1></Address2><City>Kennesaw</City><State>GA</State><Zip5>30144</Zip5></Zip4></Address></AddressValidateRequest>'
)
) as request;


Which gave me this response, because of user xxx.

<?xml version="1.0" encoding="UTF-8"?>
<Error><Number>80040B19</Number><Description>XML Syntax Error: Please check the XML request to see if it can be parsed.(B)</Description><Source>USPSCOM::DoAuth</Source></Error>

--
Chris Hiebert
Senior Programmer/Analyst
Disclaimer: Any views or opinions presented are solely those of the author and do not necessarily represent those of the company.

From: MIDRANGE-L <midrange-l-bounces@xxxxxxxxxxxxxxxxxx> On Behalf Of Jay Vaughn
Sent: Thursday, November 10, 2022 5:46 AM
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxxxxxxxx>
Subject: Re: usps verify address api


Thanks Jack... I did take a look at the link you provided... after that I

applied the following and still have no luck...



I added, value="text/xml; charset=utf‑8" and encoded url, header, and xml

(just to play it safe... and every combination in between)... still cannot

get a valid response...

anymore clues?

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.