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