/**
  * Get Service Status
  * Gets the status of the service.
  *     Status is one of GREEN, RED representing:
  *     GREEN: The service section is operating normally.
  *     RED: The service section disruption.
  *
  * @param mixed $request array of parameters for FbaInventory_Model_GetServiceStatus request or FbaInventory_Model_GetServiceStatus object itself
  * @see FbaInventory_Model_GetServiceStatusRequest
  * @return FbaInventory_Model_GetServiceStatusResponse
  *
  * @throws FbaInventory_Exception
  */
 public function getServiceStatus($request)
 {
     if (!$request instanceof Model\FbaInventory_Model_GetServiceStatusRequest) {
         //require_once (dirname(__FILE__) . '/Model/GetServiceStatusRequest.php');
         $request = new FbaInventory_Model_GetServiceStatusRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetServiceStatus';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/GetServiceStatusResponse.php');
     $response = Model\FbaInventory_Model_GetServiceStatusResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
 * Uncomment to try out Mock Service that simulates FBAInventoryServiceMWS
 * responses without calling FBAInventoryServiceMWS service.
 *
 * Responses are loaded from local XML files. You can tweak XML files to
 * experiment with various outputs during development
 *
 * XML files available under FBAInventoryServiceMWS/Mock tree
 *
 ***********************************************************************/
// $service = new FBAInventoryServiceMWS_Mock();
/************************************************************************
 * Setup request parameters and uncomment invoke to try out
 * sample for Get Service Status Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as FbaInventory_Model_GetServiceStatus
$request = new FbaInventory_Model_GetServiceStatusRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeGetServiceStatus($service, $request);
/**
 * Get Get Service Status Action Sample
 * Gets competitive pricing and related information for a product identified by
 * the MarketplaceId and ASIN.
 *
 * @param FBAInventoryServiceMWS_Interface $service instance of FBAInventoryServiceMWS_Interface
 * @param mixed $request FbaInventory_Model_GetServiceStatus or array of parameters
 */
function invokeGetServiceStatus(FBAInventoryServiceMWS_Interface $service, $request)
{
    try {
        $response = $service->GetServiceStatus($request);