var WebServices=function() {
WebServices.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WebServices.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WebServices._staticInstance.get_path();},
GetProductsInCategory:function(CategoryId,succeededCallback, failedCallback, userContext) {
/// <param name="CategoryId" type="Number">System.Int32</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(), 'GetProductsInCategory',false,{CategoryId:CategoryId},succeededCallback,failedCallback,userContext); },
GetProductsInGroup:function(ProductGroupId,succeededCallback, failedCallback, userContext) {
/// <param name="ProductGroupId" type="Number">System.Int32</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(), 'GetProductsInGroup',false,{ProductGroupId:ProductGroupId},succeededCallback,failedCallback,userContext); }}
WebServices.registerClass('WebServices',Sys.Net.WebServiceProxy);
WebServices._staticInstance = new WebServices();
WebServices.set_path = function(value) {
WebServices._staticInstance.set_path(value); }
WebServices.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return WebServices._staticInstance.get_path();}
WebServices.set_timeout = function(value) {
WebServices._staticInstance.set_timeout(value); }
WebServices.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return WebServices._staticInstance.get_timeout(); }
WebServices.set_defaultUserContext = function(value) { 
WebServices._staticInstance.set_defaultUserContext(value); }
WebServices.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return WebServices._staticInstance.get_defaultUserContext(); }
WebServices.set_defaultSucceededCallback = function(value) { 
 WebServices._staticInstance.set_defaultSucceededCallback(value); }
WebServices.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return WebServices._staticInstance.get_defaultSucceededCallback(); }
WebServices.set_defaultFailedCallback = function(value) { 
WebServices._staticInstance.set_defaultFailedCallback(value); }
WebServices.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return WebServices._staticInstance.get_defaultFailedCallback(); }
WebServices.set_path("/Ws/CpkWs.svc");
WebServices.GetProductsInCategory= function(CategoryId,onSuccess,onFailed,userContext) {
/// <param name="CategoryId" type="Number">System.Int32</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>
WebServices._staticInstance.GetProductsInCategory(CategoryId,onSuccess,onFailed,userContext); }
WebServices.GetProductsInGroup= function(ProductGroupId,onSuccess,onFailed,userContext) {
/// <param name="ProductGroupId" type="Number">System.Int32</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>
WebServices._staticInstance.GetProductsInGroup(ProductGroupId,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('CarphoneKits.Website');
if (typeof(CarphoneKits.Website.WebProduct) === 'undefined') {
CarphoneKits.Website.WebProduct=gtc("WebProduct:http://schemas.datacontract.org/2004/07/CarphoneKits.Website");
CarphoneKits.Website.WebProduct.registerClass('CarphoneKits.Website.WebProduct');
}
