// Provide a default path to dwr.engine if (dwr == null) var dwr = {}; if (dwr.engine == null) dwr.engine = {}; if (DWREngine == null) var DWREngine = dwr.engine; if (ProductService == null) var ProductService = {}; ProductService._path = '/mgt/dwr'; ProductService.newProduct = function(callback) { dwr.engine._execute(ProductService._path, 'ProductService', 'newProduct', callback); } ProductService.saveProduct = function(p0, callback) { dwr.engine._execute(ProductService._path, 'ProductService', 'saveProduct', p0, callback); } ProductService.readProduct = function(p0, callback) { dwr.engine._execute(ProductService._path, 'ProductService', 'readProduct', p0, callback); } ProductService.readProductPrice = function(p0, callback) { dwr.engine._execute(ProductService._path, 'ProductService', 'readProductPrice', p0, callback); }