/**
  * Get Service Status
  *
  *
  * @param mixed $request array of parameters for MWSRecommendationsSectionService_Model_GetServiceStatus request or MWSRecommendationsSectionService_Model_GetServiceStatus object itself
  * @see MWSRecommendationsSectionService_Model_GetServiceStatus
  * @return MWSRecommendationsSectionService_Model_GetServiceStatusResponse
  *
  * @throws MWSRecommendationsSectionService_Exception
  */
 public function getServiceStatus($request)
 {
     require_once dirname(__FILE__) . '/Model/GetServiceStatusResponse.php';
     return MWSRecommendationsSectionService_Model_GetServiceStatusResponse::fromXML($this->_invoke('GetServiceStatus'));
 }
Beispiel #2
0
 /**
  * Get Service Status
  * 
  *
  * @param mixed $request array of parameters for MWSRecommendationsSectionService_Model_GetServiceStatus request or MWSRecommendationsSectionService_Model_GetServiceStatus object itself
  * @see MWSRecommendationsSectionService_Model_GetServiceStatusRequest
  * @return MWSRecommendationsSectionService_Model_GetServiceStatusResponse
  *
  * @throws MWSRecommendationsSectionService_Exception
  */
 public function getServiceStatus($request)
 {
     if (!$request instanceof MWSRecommendationsSectionService_Model_GetServiceStatusRequest) {
         require_once dirname(__FILE__) . '/Model/GetServiceStatusRequest.php';
         $request = new MWSRecommendationsSectionService_Model_GetServiceStatusRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetServiceStatus';
     $httpResponse = $this->_invoke($parameters);
     require_once dirname(__FILE__) . '/Model/GetServiceStatusResponse.php';
     $response = MWSRecommendationsSectionService_Model_GetServiceStatusResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }