Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

UPS World Ship XML autoimport sample..

Status
Not open for further replies.

EzLogic

Programmer
Aug 21, 2001
1,230
US
After so many hours of reading and testing, i finally got my ERP system to work with UPS world ship using their Auto Import/Export XML feature.

Basically, you can have your system export out the shipment in this format and world ship will automatically print out the label for you for shipping and then, it will output a file for you, where you can do filetostr() and capture the tracking number and post it back to your data.

anyway, here is the XML.. i was hoping someone had done that in the past, alas, i couldn't find it.. so i spent a good 2 weeks to finally get it to work..

hope this helps someone!

Code:
<?xml version="1.0" encoding="windows-1252" ?> 
<OpenShipments xmlns="x-schema:OpenShipments.xdr">
  <OpenShipment ShipmentOption="" ProcessStatus="">   
	<ShipTo>  
		<CompanyOrName>ABC Company</CompanyOrName> 
		<Attention>George</Attention> 
		<Address1>6th Avenue</Address1> 
		<CityOrTown>New York</CityOrTown> 
		<CountryTerritory>US</CountryTerritory> 
		<PostalCode>10001</PostalCode> 
		<StateProvinceCounty>NY</StateProvinceCounty>       
		<Telephone>212-444-3232</Telephone> 
		<EmailAddress>George@ABCCompany.com</EmailAddress> 
	</ShipTo> 	
	<ShipmentInformation> 
		<VoidIndicator />
		<ShipperNumber>123456</ShipperNumber>
		<ServiceType>Ground</ServiceType>
		<PackageType>Package</PackageType> 
		<NumberOfPackages>1</NumberOfPackages> 
		<ShipmentActualWeight>1</ShipmentActualWeight> 
		<DescriptionOfGoods>Computer Hardware</DescriptionOfGoods> 
		<Reference1>TEST</Reference1>
		<DocumentOnly/>
		<GoodsNotInFreeCirculation/>
		<SpecialInstructionForShipment/>
		<BillingOption>PP</BillingOption> 
	</ShipmentInformation>	
    </OpenShipment>
   </OpenShipments>

Ali Koumaiha
TeknoSoft Inc.
Michigan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top