* responses without calling MWSCartService service. * * Responses are loaded from local XML files. You can tweak XML files to * experiment with various outputs during development * * XML files available under MWSCartService/Mock tree * ***********************************************************************/ // $service = new MWSCartService_Mock(); /************************************************************************ * Setup request parameters and uncomment invoke to try out * sample for Get Service Status Action ***********************************************************************/ // @TODO: set request. Action can be passed as MWSCartService_Model_GetServiceStatus $request = new MWSCartService_Model_GetServiceStatusRequest(); $request->setSellerId(MERCHANT_ID); // object or array of parameters invokeGetServiceStatus($service, $request); /** * Get Get Service Status Action Sample * Gets competitive pricing and related information for a product identified by * the MarketplaceId and ASIN. * * @param MWSCartService_Interface $service instance of MWSCartService_Interface * @param mixed $request MWSCartService_Model_GetServiceStatus or array of parameters */ function invokeGetServiceStatus(MWSCartService_Interface $service, $request) { try { $response = $service->GetServiceStatus($request); echo "Service Response\n";