/**
  * Cancel Fulfillment Order
  * Request for Amazon to no longer attempt to fulfill an existing
  *   fulfillment order. Amazon will attempt to stop fulfillment of all
  *   items that haven't already shipped, but cannot guarantee success.
  *   Note: Items that have already shipped cannot be cancelled.
  *
  * @param mixed $request array of parameters for MwsFbaOutboundServiceModel_CancelFulfillmentOrder request or MwsFbaOutboundServiceModel_CancelFulfillmentOrder object itself
  * @see MwsFbaOutboundServiceModel_CancelFulfillmentOrderRequest
  * @return MwsFbaOutboundServiceModel_CancelFulfillmentOrderResponse
  *
  * @throws FbaOutbound_Exception
  */
 public function cancelFulfillmentOrder($request)
 {
     if (!$request instanceof Model\MwsFbaOutboundServiceModel_CancelFulfillmentOrderRequest) {
         //require_once (dirname(__FILE__) . '/Model/CancelFulfillmentOrderRequest.php');
         $request = new MwsFbaOutboundServiceModel_CancelFulfillmentOrderRequest($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'CancelFulfillmentOrder';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/CancelFulfillmentOrderResponse.php');
     $response = Model\MwsFbaOutboundServiceModel_CancelFulfillmentOrderResponse::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 Cancel Fulfillment Order Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as MwsFbaOutboundServiceModel_CancelFulfillmentOrder
$request = new MwsFbaOutboundServiceModel_CancelFulfillmentOrderRequest();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeCancelFulfillmentOrder($service, $request);
/**
 * Get Cancel Fulfillment Order 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_CancelFulfillmentOrder or array of parameters
 */
function invokeCancelFulfillmentOrder(FBAOutboundServiceMWS_Interface $service, $request)
{
    try {
        $response = $service->CancelFulfillmentOrder($request);