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



Yep, your solution moves me forward.

Now I get always get error 80040B18 "An error has occurred with the service. Please contact the administrator or try again."
Same message whether or not I use a valid or invalid USERID. So I deduce the XML is correct and being accepted.

Perhaps the service is down. Will do some more research and experimentation.

Thanks you for your help.

Sam

On 1/3/2022 2:56 PM, Jack Woehr via MIDRANGE-L wrote:
Hmm, try this with your correct USERID and tell me what happens ... maybe
it does not like the ? and & being encoded ... I tried it and got an auth
error.

values QSYS2.HTTP_GET('http://production.shippingapis.com/ShippingAPI.dll'
concat '?API=Verify&' concat
url_encode(
'XML=' concat
'<AddressValidateRequest USERID="xxxxxxxxx">' concat
'<Revision>1</Revision>' concat
'<Address ID="0">' concat
'<Address1/>' concat
'<Address2>8 Wildwood Drive</Address2>' concat
'<City/>' concat
'<State>CT</State>' concat
'<Zip5>06371</Zip5>' concat
'</Zip4>' concat
'</Address>' concat
'</AddressValidateRequest>'),
'{
"header":"Content-Type,text/xml",
"header":"Accept,*",
"header":"Content type,charset=UTF-8"
}'
)
;

On Mon, Jan 3, 2022 at 9:51 AM Sam_L <lennon_s_j@xxxxxxxxxxx> wrote:

I am experimenting with QSYS2.HTTP_GET and the USPS APIs




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.