getTotalPrepaidLiability($request); echo ("Service Response\n"); echo ("=============================================================================\n"); echo(" GetTotalPrepaidLiabilityResponse\n"); if ($response->isSetGetTotalPrepaidLiabilityResult()) { echo(" GetTotalPrepaidLiabilityResult\n"); $getTotalPrepaidLiabilityResult = $response->getGetTotalPrepaidLiabilityResult(); if ($getTotalPrepaidLiabilityResult->isSetOutstandingPrepaidLiability()) { echo(" OutstandingPrepaidLiability\n"); $outstandingPrepaidLiability = $getTotalPrepaidLiabilityResult->getOutstandingPrepaidLiability(); if ($outstandingPrepaidLiability->isSetOutstandingBalance()) { echo(" OutstandingBalance\n"); $outstandingBalance = $outstandingPrepaidLiability->getOutstandingBalance(); if ($outstandingBalance->isSetCurrencyCode()) { echo(" CurrencyCode\n"); echo(" " . $outstandingBalance->getCurrencyCode() . "\n"); } if ($outstandingBalance->isSetValue()) { echo(" Value\n"); echo(" " . $outstandingBalance->getValue() . "\n"); } } if ($outstandingPrepaidLiability->isSetPendingInBalance()) { echo(" PendingInBalance\n"); $pendingInBalance = $outstandingPrepaidLiability->getPendingInBalance(); if ($pendingInBalance->isSetCurrencyCode()) { echo(" CurrencyCode\n"); echo(" " . $pendingInBalance->getCurrencyCode() . "\n"); } if ($pendingInBalance->isSetValue()) { echo(" Value\n"); echo(" " . $pendingInBalance->getValue() . "\n"); } } } } if ($response->isSetResponseMetadata()) { echo(" ResponseMetadata\n"); $responseMetadata = $response->getResponseMetadata(); if ($responseMetadata->isSetRequestId()) { echo(" RequestId\n"); echo(" " . $responseMetadata->getRequestId() . "\n"); } } } catch (Amazon_FPS_Exception $ex) { echo("Caught Exception: " . $ex->getMessage() . "\n"); echo("Response Status Code: " . $ex->getStatusCode() . "\n"); echo("Error Code: " . $ex->getErrorCode() . "\n"); echo("Error Type: " . $ex->getErrorType() . "\n"); echo("Request ID: " . $ex->getRequestId() . "\n"); echo("XML: " . $ex->getXML() . "\n"); } }