/**
  * 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 MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersByNextToken request or MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersByNextToken object itself
  * @see MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersByNextTokenRequest
  * @return MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersByNextTokenResponse
  *
  * @throws FbaOutbound_Exception
  */
 public function listAllFulfillmentOrdersByNextToken($request)
 {
     if (!$request instanceof Model\MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersByNextTokenRequest) {
         //require_once (dirname(__FILE__) . '/Model/ListAllFulfillmentOrdersByNextTokenRequest.php');
         $request = new MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersByNextTokenRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListAllFulfillmentOrdersByNextToken';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/ListAllFulfillmentOrdersByNextTokenResponse.php');
     $response = Model\MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersByNextTokenResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
 * 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 MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersByNextToken
$request = new MwsFbaOutboundServiceModel_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 MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersByNextToken or array of parameters
 */
function invokeListAllFulfillmentOrdersByNextToken(FBAOutboundServiceMWS_Interface $service, $request)
{
    try {
        $response = $service->ListAllFulfillmentOrdersByNextToken($request);