/**
  * List Inbound Shipments By Next Token
  * Gets the next set of inbound shipments created by a Seller with the 
  * NextToken which can be used to iterate through the remaining inbound 
  * shipments. If a NextToken is not returned, it indicates the end-of-data.
  *
  * @param mixed $request array of parameters for FBAInboundServiceMWS_Model_ListInboundShipmentsByNextToken request or FBAInboundServiceMWS_Model_ListInboundShipmentsByNextToken object itself
  * @see FBAInboundServiceMWS_Model_ListInboundShipmentsByNextTokenRequest
  * @return FBAInboundServiceMWS_Model_ListInboundShipmentsByNextTokenResponse
  *
  * @throws FbaInbound_Exception
  */
 public function listInboundShipmentsByNextToken($request)
 {
     if (!$request instanceof Model\FBAInboundServiceMWS_Model_ListInboundShipmentsByNextTokenRequest) {
         //require_once (dirname(__FILE__) . '/Model/ListInboundShipmentsByNextTokenRequest.php');
         $request = new FBAInboundServiceMWS_Model_ListInboundShipmentsByNextTokenRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'ListInboundShipmentsByNextToken';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/ListInboundShipmentsByNextTokenResponse.php');
     $response = Model\FBAInboundServiceMWS_Model_ListInboundShipmentsByNextTokenResponse::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 List Inbound Shipments By Next Token Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as FBAInboundServiceMWS_Model_ListInboundShipmentsByNextToken
$request = new FBAInboundServiceMWS_Model_ListInboundShipmentsByNextTokenRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeListInboundShipmentsByNextToken($service, $request);
/**
 * Get List Inbound Shipments By Next Token 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_ListInboundShipmentsByNextToken or array of parameters
 */
function invokeListInboundShipmentsByNextToken(FBAInboundServiceMWS_Interface $service, $request)
{
    try {
        $response = $service->ListInboundShipmentsByNextToken($request);