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