UPSship Control User's Guide
  BurdickSoft (www.burdicksoft.com)
 
 

The BurdickSoft UPSship Control is a Visual Basic developed, server-side, ActiveX component that dramatically improves the ease of implementing and integrating real-time UPS shipping cost data into Internet E-Commerce sites.  It eliminates guesswork and shipping calculation errors by acquiring real-time, streaming shipping cost quote data and rate messages directly from the on-line UPS Rating and Service Selection server. As an Active-X control, it can be used either as server-side IIS/ASP component or integrated into any Microsoft application language for use in web-based client or server applications. The simplicity of the UPSship Active-X interface allows web-site developers to add real-time UPS shipping information to their commerce sites in minutes (by following 3 easy steps and only 15 lines of code) while providing maximum flexibility to control and display rate information that integrates seamlessly into the look and feel of the site.  

A Word About UPS Shipping

Excerpted from www.ups.com

UPS is the world's largest express carrier, the world's largest package delivery company and a leading global provider of specialized transportation and logistics services. UPS was founded in 1907 to provide private messenger and delivery services in the Seattle, Washington area. Over the past 93 years, it has expanded its small regional parcel delivery service into a global company. UPS delivers packages each business day for 1.8 million shipping customers to six million consignees. In 1999, it delivered an average of almost 13 million pieces per day worldwide, generating revenue of over $27 billion.

E-Commerce Capabilities. UPS is a leading participant in and facilitator of e-commerce.  It has teamed with over 100 e-commerce leaders to offer fully integrated Web-enabled solutions for our customers. Over two-thirds of ActivMedia, Inc.'s top 50 websites that use transportation services are UPS customers.

For more information about UPS and its shipping and E-Commerce offerings, please visit http://www.ups.com

Disclaimer:
BurdickSoft is not affiliated in any way with UPS.  The UPSship control written by BurdickSoft is an E-Commerce tool that works in conjunction with public UPS on-line E-Commerce capabilities such as the UPS Rates and Service Selection Datastream Server.  UPS assumes no liability either expressed or implied by a person(s) use of the BurdickSoft UPSship Control.  

Licensing

The UPSship control license grants the user 2 simultaneous server installations (one for development, the other for production).  A developer may choose to use one license on his or her development machine that uses Microsoft Personal or Peer Web Services and another license for the production server which in most cases will be running under IIS  in a remote location at the ISP site.  

Installing the UPSship Control

The UPSship control is packaged as an Active-X DLL.  There are two different build packages to choose from:

1.  The UPSShip DLL (UPSship.exe) - 100KB

2.  The UPSShip DLL with the Visual Basic Version 6.0 Run-Time libraries (UPSshipVB.exe) - 2.5 MB

The functionality of the two packages is identical, however, the second build package includes the Visual Basic 6.0 run-time libraries, which for most users are unnecessary, since these are already installed on most IIS/ASP servers.  

Important Note: Please check with your ISP hosting administrator to ensure that they will in fact allow you to install the UPSship DLL on their server.  While most ISP's are quite cooperative about this, a few forbid the installation of extended applications and DLL's.  

To install the control, simply double click the on the self-extracting executable file (e.g. UPSship.exe or UPSshipVB.exe) from anywhere on your desktop and follow the simple, self-guided installation sequence.  The DLL, user guide, and sample program will automatically install and self-register the necessary components. The sample programs and documentation are defaulted to install in the folder c:\Program Files\BurdickSoft.  The DLL is installed in the sytems directory C:\Windows\System.

After installing the UPSship Control, confirmation testing can be performed by running the "UPStest.asp" file.  This asp page tests to ensure that there is a working "handshake" between your server and the UPS web server.

Using UPSship Control 

The "UPSsample.asp" page contains a simple example of how to implement the UPSship control.  A real, live E-Commerce production example can also be seen at http://www.winekings.com

There are basically three steps required to implement the UPSship on a web-site:

Step 1 - Declare and instantiate the control  

ASP Example:

Dim UPS 
Set UPS= Server.CreateObject("UPSship.ship")                 ' create the UPSship object

Visual Basic Example:

In the Visual Basic IDE, select "Project/References" from the main menu and find the UPSship reference and click on it and hit the "apply" button.

Dim UPS as new UPSship.ship                                        ' create and instantiate the UPSship object

Step 2 - Set the input variables

ASP Example: (where the input is generated from an HTML form - see UPSsample.asp)

UPS.ResidentCode = Cint(request("chkResBus") ) 
UPS.ShipperZip = request("shipzip") 
UPS.DestinationZip = request("destzip") 
UPS.DestinationCountry = request("country") 
UPS.PackagingType = request("package") 
UPS.RateChart = request("ratechart") 
UPS.ServiceType = request("servicetype") 
UPS.Weight = request("weight") 
UPS.message = ""

Visual Basic Example: (where input is generated from a VB form)

UPS.ResidentCode = Cint(text1.text ) 
UPS.ShipperZip = text2.text
UPS.DestinationZip = text3.text
UPS.DestinationCountry = text4.text 
UPS.PackagingType = Cint(text5.text)
UPS.RateChart = Cint(text6.text )
UPS.ServiceType = Cint(text7.text)
UPS.Weight = Cint(text8.text)
UPS.message = ""

Step 3 - Get the rate info from the UPS site and display the results

ASP and Visual Basic Example

UPS.calculate                                                 ' get the data from the UPS server

message = UPS.message                                 ' capture the returned UPS message
status = UPS.StatusCode                               '  get the return code, 0 = success 
If status = 0 then price = UPS.ShipPrice          ' capture the price data if successful
Set UPS = nothing                                          ' destroy and release the UPS object from memory

That's It! Just 3 easy steps and 15 lines of code total.

Detailed Documentation