/** * Get Service Status * Request to poll the system for availability. * 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 MwsFbaOutboundServiceModel_GetServiceStatus request or MwsFbaOutboundServiceModel_GetServiceStatus object itself * @see MwsFbaOutboundServiceModel_GetServiceStatusRequest * @return MwsFbaOutboundServiceModel_GetServiceStatusResponse * * @throws FbaOutbound_Exception */ public function getServiceStatus($request) { if (!$request instanceof Model\MwsFbaOutboundServiceModel_GetServiceStatusRequest) { //require_once (dirname(__FILE__) . '/Model/GetServiceStatusRequest.php'); $request = new MwsFbaOutboundServiceModel_GetServiceStatusRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetServiceStatus'; $httpResponse = $this->_invoke($parameters); //require_once (dirname(__FILE__) . '/Model/GetServiceStatusResponse.php'); $response = Model\MwsFbaOutboundServiceModel_GetServiceStatusResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }