/** * Construct MarketplaceWebService_Model_ErrorResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_ErrorResponse */ public static function fromXML($xml, $ns = null) { return parent::fromXML($xml, 'ErrorResponse'); }
/** * Construct MarketplaceWebService_Model_CancelReportRequestsResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_CancelReportRequestsResponse */ public static function fromXML($xml, $ns = null) { return parent::fromXML($xml, 'CancelReportRequestsResponse'); }
/** * Construct MarketplaceWebService_Model_GetReportScheduleCountResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_GetReportScheduleCountResponse */ public static function fromXML($xml, $ns = null) { return parent::fromXML($xml, 'GetReportScheduleCountResponse'); }
/** * Construct MarketplaceWebService_Model_UpdateReportAcknowledgementsResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_UpdateReportAcknowledgementsResponse */ public static function fromXML($xml, $ns = null) { return parent::fromXML($xml, 'UpdateReportAcknowledgementsResponse'); }
/** * Construct MarketplaceWebService_Model_GetFeedSubmissionResultResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_GetFeedSubmissionResultResponse */ public static function fromXML($xml, $ns = null) { return parent::fromXML($xml, 'GetFeedSubmissionResultResponse'); }
/** * Construct MarketplaceWebService_Model_GetReportListByNextTokenResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_GetReportListByNextTokenResponse */ public static function fromXML($xml, $ns = null) { return parent::fromXML($xml, 'GetReportListByNextTokenResponse'); }
/** * Construct MarketplaceWebService_Model_CancelFeedSubmissionsResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_CancelFeedSubmissionsResponse */ public static function fromXML($xml, $ns = null) { return parent::fromXML($xml, 'CancelFeedSubmissionsResponse'); }
/** * Construct MarketplaceWebService_Model_GetFeedSubmissionListByNextTokenResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_GetFeedSubmissionListByNextTokenResponse */ public static function fromXML($xml, $ns = null) { return parent::fromXML($xml, 'GetFeedSubmissionListByNextTokenResponse'); }
/** * Construct MarketplaceWebService_Model_SubmitFeedResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_SubmitFeedResponse */ public static function fromXML($xml, $ns = null) { return parent::fromXML($xml, 'SubmitFeedResponse'); }
/** * * @param $method * @param $args */ public function __call($method, $args) { // TODO make namespace a property; maybe even allow multiple namespaces $classname = 'MarketplaceWebService_Model_' . ucfirst($method); $requestClassname = $classname . 'Request'; // replacement for service access points if (class_exists($requestClassname)) { // TODO check function argument count $request = array_shift($args); if (!$request instanceof $requestClassname) { $request = new $requestClassname($request); } $converted = $this->convert($method, $request); // TODO abstract feature to only use if needed $dataHandle = $request->getDataHandle(); $contentMd5 = $request->getContentMd5(); $xml = $this->invoke($converted, $dataHandle, $contentMd5); // using factory $ns = ucfirst($method) . 'Response'; $response = MarketplaceWebService_ModelResponse::fromXML($xml, $ns); return $response; } // unknown/ unsupported method throw new BadMethodCallException("No such method {$method}."); }
/** * Construct MarketplaceWebService_Model_GetReportRequestListResponse from XML string * * @param string $xml XML string to construct from * @return MarketplaceWebService_Model_GetReportRequestListResponse */ public static function fromXML($xml, $ns) { return parent::fromXML($xml, 'GetReportRequestListResponse'); }