/** * Get Transport Content * A read-only operation which sellers use to retrieve the current * details about the transportation of an inbound shipment, including status of the * partnered carrier workflow and status of individual packages when they arrive at our FCs. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_GetTransportContent request or FBAInboundServiceMWS_Model_GetTransportContent object itself * @see FBAInboundServiceMWS_Model_GetTransportContentRequest * @return FBAInboundServiceMWS_Model_GetTransportContentResponse * * @throws FBAInboundServiceMWS_Exception */ public function getTransportContent($request) { if (!$request instanceof FBAInboundServiceMWS_Model_GetTransportContentRequest) { $request = new FBAInboundServiceMWS_Model_GetTransportContentRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetTransportContent'; $httpResponse = $this->_invoke($parameters); $response = FBAInboundServiceMWS_Model_GetTransportContentResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
/** * Get Transport Content * A read-only operation which sellers use to retrieve the current * details about the transportation of an inbound shipment, including status of the * partnered carrier workflow and status of individual packages when they arrive at our FCs. * * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_GetTransportContent request or FBAInboundServiceMWS_Model_GetTransportContent object itself * @see FBAInboundServiceMWS_Model_GetTransportContentRequest * @return FBAInboundServiceMWS_Model_GetTransportContentResponse * * @throws FbaInbound_Exception */ public function getTransportContent($request) { if (!$request instanceof Model\FBAInboundServiceMWS_Model_GetTransportContentRequest) { //require_once (dirname(__FILE__) . '/Model/GetTransportContentRequest.php'); $request = new FBAInboundServiceMWS_Model_GetTransportContentRequest($request); } $parameters = $request->toQueryParameterArray(); $parameters['Action'] = 'GetTransportContent'; $httpResponse = $this->_invoke($parameters); //require_once (dirname(__FILE__) . '/Model/GetTransportContentResponse.php'); $response = Model\FBAInboundServiceMWS_Model_GetTransportContentResponse::fromXML($httpResponse['ResponseBody']); $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']); return $response; }
* Uncomment to try out Mock Service that simulates FBAInboundServiceMWS * responses without calling FBAInboundServiceMWS service. * * Responses are loaded from local XML files. You can tweak XML files to * experiment with various outputs during development * * XML files available under FBAInboundServiceMWS/Mock tree * ***********************************************************************/ // $service = new FBAInboundServiceMWS_Mock(); /************************************************************************ * Setup request parameters and uncomment invoke to try out * sample for Get Transport Content Action ***********************************************************************/ // @TODO: set request. Action can be passed as FBAInboundServiceMWS_Model_GetTransportContent $request = new FBAInboundServiceMWS_Model_GetTransportContentRequest(); $request->setSellerId(MERCHANT_ID); // object or array of parameters invokeGetTransportContent($service, $request); /** * Get Get Transport Content Action Sample * Gets competitive pricing and related information for a product identified by * the MarketplaceId and ASIN. * * @param FBAInboundServiceMWS_Interface $service instance of FBAInboundServiceMWS_Interface * @param mixed $request FBAInboundServiceMWS_Model_GetTransportContent or array of parameters */ function invokeGetTransportContent(FBAInboundServiceMWS_Interface $service, $request) { try { $response = $service->GetTransportContent($request);