By Victor A Reinhart | Article Rating: |
|
June 4, 2008 10:45 AM EDT | Reads: |
15,115 |

You could buy a third-party product, and that works okay, but
these are often licensed per user and must be renewed yearly. They often have
their own database, so it’s quite a bit of work to integrate it with your
database. Finally, you have to install the package on every desktop where
you’ll ship.
There is another way. UPS offers a totally free solution where you directly access their Web Service using XML. All data is secured via https. There’s no software to install, no expiration date, and no proprietary database. It’s a lightweight elegant solution. In case you have problems, UPS provides support. Imagine that, support for a free solution! This technology is mature – in three years, we’ve never had to change our application due to a change in the XML specs.
To get started, go to ups.com, Business Solutions, Portfolio of Services, and pick UPS Online Tools. This article covers the UPS Shipping Tool. You’ll need to get this tool from UPS and sign up with them.
Read their information carefully. You start with a “test” account and pass tests to move into “production.” But the real question is: how can you code this in PowerBuilder?
Your PowerBuilder program must do the following:
- Create an XML Message.
- Send the XML over the Internet to the UPS site securely.
- Receive XML back from UPS.
- Decode the label image.
- Print the label.
You can download a completed sample application in PowerBuilder 9 from the Sybase CodeXchange, under PowerBuilder Web Services. This demo uses two free controls:
- The XMLHTTP Com Control from Microsoft
-
Base64.dll, from Alvaro Redondo
Published June 4, 2008 Reads 15,115
Copyright © 2008 SYS-CON Media, Inc. — All Rights Reserved.
Syndicated stories and blog feeds, all rights reserved by the author.
More Stories By Victor A Reinhart
Victor Reinhart is a PowerBuilder architect and developer at Maintstar.
Feb. 22, 2019 12:30 PM EST |
By Zakia Bouachraoui Feb. 22, 2019 11:45 AM EST |
By Zakia Bouachraoui ![]() Feb. 22, 2019 11:00 AM EST |
By Pat Romanski Feb. 22, 2019 10:00 AM EST |
By Zakia Bouachraoui Feb. 22, 2019 07:00 AM EST |
By Yeshim Deniz Feb. 21, 2019 04:30 AM EST |
By Zakia Bouachraoui ![]() Feb. 19, 2019 04:15 PM EST |
By Yeshim Deniz ![]() Feb. 18, 2019 07:45 AM EST |
By Zakia Bouachraoui Feb. 17, 2019 05:00 PM EST |
By Elizabeth White ![]() Feb. 16, 2019 04:45 PM EST Reads: 14,062 |