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