function track($trackingNumber)
 {
     $xml = $this->ups->access();
     $xml .= $this->ups->sandwich($this->ups->templatePath . 'Tracking/TrackRequest.xml', array('{TRACKING_NUMBER}'), array($trackingNumber));
     // Put the xml that is sent do UPS into a variable so we can call it later for debugging.
     $this->xmlSent = $xml;
     $responseXML = $this->ups->request('Track', $xml);
     $xmlParser = new upsxmlParser();
     $fromUPS = $xmlParser->xmlparser($responseXML);
     $fromUPS = $xmlParser->getData();
     $this->trackResponse = $fromUPS;
     return $fromUPS;
 }
 function sendRateRequest()
 {
     // First part of XML is the access part,
     $xml = $this->ups->access();
     $content = $this->requestXML;
     $content .= $this->shipmentXML;
     $xml .= $this->ups->sandwich($this->ups->templatePath . 'Rates/RatingServiceSelection_Main.xml', array('{CONTENT}'), array($content));
     # Put the xml send to UPS into a variable so we can call it later for debugging purposes
     $this->xmlSent = $xml;
     $responseXML = $this->ups->request('Rate', $xml);
     #$xmlParser = new XML2Array();
     #$fromUPS = $xmlParser->parse($responseXML);
     $xmlParser = new upsxmlParser();
     $fromUPS = $xmlParser->xmlparser($responseXML);
     $fromUPS = $xmlParser->getData();
     $this->rateResponse = $fromUPS;
     return $fromUPS;
 }
 function responseArray()
 {
     $xmlParser = new upsxmlParser();
     $responseArray = $xmlParser->xmlParser($this->responseXML);
     $responseArray = $xmlParser->getData();
     return $responseArray;
 }