2 replies [Last post]
spanchal's picture
Offline
Joined: 05/11/2009
Juice: 5
Was this information Helpful?

Hello there..

well, I have created a simple application for generating Shipping Rates from Ups & Fedex servers...earlier i was working with the simple request xml passing only zipFrom, zipTo, & weight to the server & getting back the ground rate...
But now, i want to add the dimension parameters as well, to this request xml to get the rate more precisely...here, i tried to add the dimension part to the xml but the response xml sent the error message:

UPS Response Error : "Missing/Illegal Combination of Package/Dimensions"
FedEx Response Error: "Unknown Error"

I dont know what wrong is happening there...so, need your help in this...

btw, here is my UPS Request XML:

...
   <?xml version=\"1.0\"?>
    <RatingServiceSelectionRequest xml:lang=\"en-US\">
     <Request>
      <TransactionReference>
       <CustomerContext>Rating and Service</CustomerContext>
       <XpciVersion>1.0001</XpciVersion>
      </TransactionReference>
      <RequestAction>Rate</RequestAction>
      <RequestOption>Shop</RequestOption>
     </Request>
     <PickupType>
      <Code>" + pickupType + "</Code>
     </PickupType>
     <Shipment>
      <Shipper>
       <ShipperNumber>" + UPSAccount + "</ShipperNumber>
       <Address>
        <PostalCode>" + zipFrom + "</PostalCode>
       </Address>
      </Shipper>
      <ShipTo>
       <Address>
        <PostalCode>" + zipTo + "</PostalCode>
       </Address>
      </ShipTo>
      <Package>
       <PackagingType>
        <Code>" + packageType + "</Code>
        <Description>Package</Description>
       </PackagingType>
       <Dimensions>
        <UnitOfMeasurement>
         <Code>IN</Code>
        </UnitOfMeasurement>
        <Length>" + length + "</Length>
        <Width>" + width + "</Width>
        <Height>" + height + "</Height>
       </Dimensions>
       <Description>Rate Shipping</Description>
       <PackageWeight>
        <UnitOfMeasurement>
         <Code>LBS</Code>
        </UnitOfMeasurement>
        <Weight>" + weight + "</Weight>
       </PackageWeight>
      </Package>
     </Shipment>
    </RatingServiceSelectionRequest>
...

Need you help....
Thanks in Adv...

TR
TR's picture
Offline
Bug FinderFAQ ModeratorGetting busy with the Ubercode.
Joined: 11/05/2007
Juice: 3284
Re: Error While Adding Dimensional Values to the UPS/FedEx Shipp

Does this post have anything to do with Ubercart? Ubercart has both UPS and FedEx shipping modules, so you don't have to do any of this yourself.

spanchal's picture
Offline
Joined: 05/11/2009
Juice: 5
Re: Re: Error While Adding Dimensional Values to the UPS/FedEx S

No, I am not using Ubercart...I am a newbie with the shopping cart...so I was creating my own simple module for using it into my company's (where I work) website...
That's why I was trying to create this XML with Dimensions, but the response XML sends the error as described..

So, can you help me in this?