コード例 #1
0
 * 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 List Registered Destinations Action
 ***********************************************************************/
// @TODO: set request. Action can be passed as MWSSubscriptions_Model_ListRegisteredDestinations
$request = new MWSSubscriptions_Model_ListRegisteredDestinationsInput();
$request->setSellerId(MERCHANT_ID);
// object or array of parameters
invokeListRegisteredDestinations($service, $request);
/**
 * Get List Registered Destinations 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_ListRegisteredDestinations or array of parameters
 */
function invokeListRegisteredDestinations(MWSSubscriptionsService_Interface $service, $request)
{
    try {
        $response = $service->ListRegisteredDestinations($request);
        echo "Service Response\n";