Type.registerNamespace('Kiss');
Kiss.CatalogService=function() {
Kiss.CatalogService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Kiss.CatalogService.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Kiss.CatalogService._staticInstance.get_path();},
DoWork:function(succeededCallback, failedCallback, userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'DoWork',false,{},succeededCallback,failedCallback,userContext); },
GetProduct:function(code,succeededCallback, failedCallback, userContext) {
/// <param name="code" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
return this._invoke(this._get_path(), 'GetProduct',false,{code:code},succeededCallback,failedCallback,userContext); }}
Kiss.CatalogService.registerClass('Kiss.CatalogService',Sys.Net.WebServiceProxy);
Kiss.CatalogService._staticInstance = new Kiss.CatalogService();
Kiss.CatalogService.set_path = function(value) {
Kiss.CatalogService._staticInstance.set_path(value); }
Kiss.CatalogService.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Kiss.CatalogService._staticInstance.get_path();}
Kiss.CatalogService.set_timeout = function(value) {
Kiss.CatalogService._staticInstance.set_timeout(value); }
Kiss.CatalogService.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Kiss.CatalogService._staticInstance.get_timeout(); }
Kiss.CatalogService.set_defaultUserContext = function(value) { 
Kiss.CatalogService._staticInstance.set_defaultUserContext(value); }
Kiss.CatalogService.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Kiss.CatalogService._staticInstance.get_defaultUserContext(); }
Kiss.CatalogService.set_defaultSucceededCallback = function(value) { 
 Kiss.CatalogService._staticInstance.set_defaultSucceededCallback(value); }
Kiss.CatalogService.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Kiss.CatalogService._staticInstance.get_defaultSucceededCallback(); }
Kiss.CatalogService.set_defaultFailedCallback = function(value) { 
Kiss.CatalogService._staticInstance.set_defaultFailedCallback(value); }
Kiss.CatalogService.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Kiss.CatalogService._staticInstance.get_defaultFailedCallback(); }
Kiss.CatalogService.set_path("/Client.Services/CatalogService.svc");
Kiss.CatalogService.DoWork= function(onSuccess,onFailed,userContext) {
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Kiss.CatalogService._staticInstance.DoWork(onSuccess,onFailed,userContext); }
Kiss.CatalogService.GetProduct= function(code,onSuccess,onFailed,userContext) {
/// <param name="code" type="String">System.String</param>
/// <param name="succeededCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="failedCallback" type="Function" optional="true" mayBeNull="true"></param>
/// <param name="userContext" optional="true" mayBeNull="true"></param>
Kiss.CatalogService._staticInstance.GetProduct(code,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('FKI.Commerce.CTO.Catalog');
if (typeof(FKI.Commerce.CTO.Catalog.Product) === 'undefined') {
FKI.Commerce.CTO.Catalog.Product=gtc("Product:http://schemas.datacontract.org/2004/07/FKI.Commerce.CTO.Catalog");
FKI.Commerce.CTO.Catalog.Product.registerClass('FKI.Commerce.CTO.Catalog.Product');
}
