/**
  * Delete Subscription
  * Delete a subscription.
  *
  * @param mixed $request array of parameters for MWSSubscriptions_Model_DeleteSubscription request or MWSSubscriptions_Model_DeleteSubscription object itself
  * @see MWSSubscriptions_Model_DeleteSubscriptionInput
  * @return MWSSubscriptions_Model_DeleteSubscriptionResponse
  *
  * @throws Subscriptions_Exception
  */
 public function deleteSubscription($request)
 {
     if (!$request instanceof Model\MWSSubscriptions_Model_DeleteSubscriptionInput) {
         //require_once (dirname(__FILE__) . '/Model/DeleteSubscriptionInput.php');
         $request = new MWSSubscriptions_Model_DeleteSubscriptionInput($request);
     }
     $parameters = $request->toQueryParameterArray();
     $parameters['Action'] = 'DeleteSubscription';
     $httpResponse = $this->_invoke($parameters);
     //require_once (dirname(__FILE__) . '/Model/DeleteSubscriptionResponse.php');
     $response = Model\MWSSubscriptions_Model_DeleteSubscriptionResponse::fromXML($httpResponse['ResponseBody']);
     $response->setResponseHeaderMetadata($httpResponse['ResponseHeaderMetadata']);
     return $response;
 }
 * Uncomment to try out Mock Service that simulates MWSSubscriptionsService
 * responses without calling MWSSubscriptionsService service.
 *
 * Responses are loaded from local XML files. You can tweak XML files to
 * experiment with various outputs during development
 *
 * XML files available under MWSSubscriptionsService/Mock tree
 *
 ***********************************************************************/
// $service = new MWSSubscriptionsService_Mock();
/************************************************************************
 * Setup request parameters and uncomment invoke to try out
 * sample for Delete Subscription Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as MWSSubscriptions_Model_DeleteSubscription
$request = new MWSSubscriptions_Model_DeleteSubscriptionInput();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeDeleteSubscription($service, $request);
/**
 * Get Delete Subscription Action Sample
 * Gets competitive pricing and related information for a product identified by
 * the MarketplaceId and ASIN.
 *
 * @param MWSSubscriptionsService_Interface $service instance of MWSSubscriptionsService_Interface
 * @param mixed $request MWSSubscriptions_Model_DeleteSubscription or array of parameters
 */
function invokeDeleteSubscription(MWSSubscriptionsService_Interface $service, $request)
{
    try {
        $response = $service->DeleteSubscription($request);