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