* Uncomment to try out Mock Service that simulates FBAOutboundServiceMWS
 * responses without calling FBAOutboundServiceMWS service.
 *
 * Responses are loaded from local XML files. You can tweak XML files to
 * experiment with various outputs during development
 *
 * XML files available under FBAOutboundServiceMWS/Mock tree
 *
 ***********************************************************************/
// $service = new FBAOutboundServiceMWS_Mock();
/************************************************************************
 * Setup request parameters and uncomment invoke to try out
 * sample for List All Fulfillment Orders By Next Token Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextToken
$request = new FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeListAllFulfillmentOrdersByNextToken($service, $request);
/**
 * Get List All Fulfillment Orders By Next Token Action Sample
 * Gets competitive pricing and related information for a product identified by
 * the MarketplaceId and ASIN.
 *
 * @param FBAOutboundServiceMWS_Interface $service instance of FBAOutboundServiceMWS_Interface
 * @param mixed $request FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextToken or array of parameters
 */
function invokeListAllFulfillmentOrdersByNextToken(FBAOutboundServiceMWS_Interface $service, $request)
{
    try {
        $response = $service->ListAllFulfillmentOrdersByNextToken($request);
Example #2
0
 /**
  * List All Fulfillment Orders By Next Token
  * Gets the next set of fulfillment orders that are currently being
  *   being fulfilled or that were being fulfilled at some time in the
  *   past.
  *
  *   If a NextToken is not returned, it indicates the end-of-data.
  *
  * @param mixed $request array of parameters for FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextToken request or FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextToken object itself
  * @see FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenRequest
  * @return FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenResponse
  *
  * @throws FBAOutboundServiceMWS_Exception
  */
 public function listAllFulfillmentOrdersByNextToken($request)
 {
     if (!$request instanceof FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenRequest) {
         $request = new FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListAllFulfillmentOrdersByNextToken';
     $httpResponse = $this->_invoke($parameters);
     $response = FBAOutboundServiceMWS_Model_ListAllFulfillmentOrdersByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }