if (in_array($val["CalcMethod"], $calcCodes)) {
        $shipAPI->addItemCalc($val["refCode"], $val["quantity"], $val["weight"], $val['weightUOM'], $val["length"], $val["width"], $val["height"], $val["dimUOM"], $val["value"], $val["packMethod"], $val["lotSize"], $val["CalcMethod"]);
        if (isset($val["originCode"])) {
            $shipAPI->addItemOriginCode($val["originCode"]);
        }
        if (isset($val["odServices"])) {
            $shipAPI->addItemOnDemandServices($val["odServices"]);
        }
        if (isset($val["suppHandlingCode"])) {
            $shipAPI->addItemSuppHandlingCode($val["suppHandlingCode"]);
        }
        if (isset($val["suppHandlingFee"])) {
            $shipAPI->addItemHandlingFee($val["suppHandlingFee"]);
        }
        if (isset($val["specCarrierSvcs"])) {
            $shipAPI->addItemSpecialCarrierServices($val["specCarrierSvcs"]);
        }
    } elseif ($val["CalcMethod"] == "F") {
        $shipAPI->addItemFixed($val["refCode"], $val["quantity"], $val["FeeType"], $val["fixedAmt_1"], $val["fixedAmt_2"], $val["fixedFeeCode"]);
    } elseif ($val["CalcMethod"] == "N") {
        $shipAPI->addItemFree($val["refCode"], $val["quantity"]);
    }
}
//************************************************
// Call the AuctionInc SS API
// Utilizes account configured info for default
// origin address and enabled carrier services
//************************************************
echo '<h2>GetItemShipRatesSS Method</h2>';
echo 'This method utilizes shipping preferences that are pre-configured at the AuctionInc website.<p>';
$ok = $shipAPI->GetItemShipRateSS($shipRates);