Click here to Skip to main content
15,886,094 members
Articles / Desktop Programming / Windows Forms

.NET UPS XML Tracking Interface DLL

Rate me:
Please Sign up or sign in to vote.
4.00/5 (5 votes)
20 Jan 20051 min read 82.6K   2.1K   27  
A .NET DLL and sample application that interfaces with UPS's XML API to retrieve tracking information. You can also use it to generate an RSS feed..
using System;
using System.Xml.Serialization;

namespace YTech.ShipperInterface.UPS.Tracking.RequestComponents
{
	/// <summary>
	/// Summary description for Request.
	/// </summary>
	public class Request
	{
		TransactionReference _tr;
		string _requestAction = "Track";
		string _requestOption = "activity";

		public Request()
		{
		}

		public Request(string contextKey)
		{
			_tr = new TransactionReference(contextKey);
		}

		[XmlElement("TransactionReference")]
		public TransactionReference TransReference
		{
			get
			{
				return _tr;
			}
			set
			{
				_tr = value;
			}
		}

		[XmlElement("RequestAction")]
		public string RequestAction
		{
			get
			{
				return _requestAction;
			}
			set
			{
				_requestAction = value;
			}
		}

		[XmlElement("RequestOption")]
		public string RequestOption
		{
			get
			{
				return _requestOption;
			}
			set
			{
				_requestOption = value;
			}
		}
	}
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Web Developer
United States United States


By day, I work as a software engineer for one of the largest companies in the word. By night, I take care of my son, and work on personal projects.



My personal blog is located at http://www.SuperJason.com



Many of the projects I work on are published at http://www.Young-Technologies.com


Comments and Discussions