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