× 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.



GOT IT TO WORK.

1. REMOVE "header":"Content type,charset=UTF-8" (and of course the comma
that precedes this header element)
2. INCLUDE a value for *every* element even if it's nonsense. You
*cannot* omit Zip4 for example.

With my brand new USERID (not shown below) this works and the returned XML
correctly alters the nonsense Zip4 value I provided for Absolute
Performance, Inc.'s "World HQ":

values QSYS2.HTTP_GET('http://production.shippingapis.com/ShippingAPI.dll'
concat '?API=Verify&XML=' concat
url_encode(
'<AddressValidateRequest USERID="xxxxxxxxx"><Address ID="0"><Address1>Suite
100</Address1><Address2>12303 Airport
Way</Address2><City>Broomfield</City><State>CO</State><Zip5>80021</Zip5><Zip4>1234</Zip4></Address></AddressValidateRequest>'),
'{
"header":"Content-Type,text/xml",
"header":"Accept,*"
}'
)
;

On Wed, Jan 5, 2022 at 9:32 AM Sam_L <lennon_s_j@xxxxxxxxxxx> wrote:

Yes, I get the same with a nonsense USERID and it does seems the API us
getting enough of the XML to figure out the USERID.



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.