/**
  * List All Fulfillment Orders
  * Gets the first set of fulfillment orders that are currently being
  *   fulfilled or that were being fulfilled at some time in the past
  *   (as specified by the query parameters). Also returns a NextToken
  *   which can be used iterate through the remaining fulfillment orders
  *   (via the ListAllFulfillmentOrdersByNextToken operation).
  * 
  *   If a NextToken is not returned, it indicates the end-of-data.
  *   
  *   If the QueryStartDateTime is set, the results will include all orders
  *   currently being fulfilled, and all orders that were being fulfilled
  *   since that date and time.
  *
  * @param mixed $request array of parameters for MwsFbaOutboundServiceModel_ListAllFulfillmentOrders request or MwsFbaOutboundServiceModel_ListAllFulfillmentOrders object itself
  * @see MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersRequest
  * @return MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersResponse
  *
  * @throws FbaOutbound_Exception
  */
 public function listAllFulfillmentOrders($request)
 {
     if (!$request instanceof Model\MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersRequest) {
         //require_once (dirname(__FILE__) . '/Model/ListAllFulfillmentOrdersRequest.php');
         $request = new MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListAllFulfillmentOrders';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/ListAllFulfillmentOrdersResponse.php');
     $response = Model\MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersResponse::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 Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as MwsFbaOutboundServiceModel_ListAllFulfillmentOrders
$request = new MwsFbaOutboundServiceModel_ListAllFulfillmentOrdersRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeListAllFulfillmentOrders($service, $request);
/**
 * Get List All Fulfillment Orders 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_ListAllFulfillmentOrders or array of parameters
 */
function invokeListAllFulfillmentOrders(FBAOutboundServiceMWS_Interface $service, $request)
{
    try {
        $response = $service->ListAllFulfillmentOrders($request);