/**
  * Get Fulfillment Preview
  * Get estimated shipping dates and fees for all 
  *   available shipping speed given a set of seller SKUs and quantities      
  * 
  *   If "ShippingSpeedCategories" are inputed, only previews for those options will be returned. 
  *   
  *   If "ShippingSpeedCategories" are not inputed, then previews for all available options 
  *   are returned.
  * 
  *   The service will return the fulfillment estimates for a set of Seller 
  *   SKUs and quantities.
  *
  * @param mixed $request array of parameters for MwsFbaOutboundServiceModel_GetFulfillmentPreview request or MwsFbaOutboundServiceModel_GetFulfillmentPreview object itself
  * @see MwsFbaOutboundServiceModel_GetFulfillmentPreviewRequest
  * @return MwsFbaOutboundServiceModel_GetFulfillmentPreviewResponse
  *
  * @throws FbaOutbound_Exception
  */
 public function getFulfillmentPreview($request)
 {
     if (!$request instanceof Model\MwsFbaOutboundServiceModel_GetFulfillmentPreviewRequest) {
         //require_once (dirname(__FILE__) . '/Model/GetFulfillmentPreviewRequest.php');
         $request = new MwsFbaOutboundServiceModel_GetFulfillmentPreviewRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'GetFulfillmentPreview';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/GetFulfillmentPreviewResponse.php');
     $response = Model\MwsFbaOutboundServiceModel_GetFulfillmentPreviewResponse::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 Get Fulfillment Preview Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as MwsFbaOutboundServiceModel_GetFulfillmentPreview
$request = new MwsFbaOutboundServiceModel_GetFulfillmentPreviewRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeGetFulfillmentPreview($service, $request);
/**
 * Get Get Fulfillment Preview 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_GetFulfillmentPreview or array of parameters
 */
function invokeGetFulfillmentPreview(FBAOutboundServiceMWS_Interface $service, $request)
{
    try {
        $response = $service->GetFulfillmentPreview($request);