var WebServiceRecherche=function() {
WebServiceRecherche.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
WebServiceRecherche.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return WebServiceRecherche._staticInstance.get_path();},
GetIngredients:function(q,limit,succeededCallback, failedCallback, userContext) {
/// <param name="q" type="String">System.String</param>
/// <param name="limit" 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(), 'GetIngredients',true,{q:q,limit:limit},succeededCallback,failedCallback,userContext); },
GetRecipesNames:function(q,limit,succeededCallback, failedCallback, userContext) {
/// <param name="q" type="String">System.String</param>
/// <param name="limit" 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(), 'GetRecipesNames',true,{q:q,limit:limit},succeededCallback,failedCallback,userContext); }}
WebServiceRecherche.registerClass('WebServiceRecherche',Sys.Net.WebServiceProxy);
WebServiceRecherche._staticInstance = new WebServiceRecherche();
WebServiceRecherche.set_path = function(value) {
WebServiceRecherche._staticInstance.set_path(value); }
WebServiceRecherche.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return WebServiceRecherche._staticInstance.get_path();}
WebServiceRecherche.set_timeout = function(value) {
WebServiceRecherche._staticInstance.set_timeout(value); }
WebServiceRecherche.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return WebServiceRecherche._staticInstance.get_timeout(); }
WebServiceRecherche.set_defaultUserContext = function(value) { 
WebServiceRecherche._staticInstance.set_defaultUserContext(value); }
WebServiceRecherche.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return WebServiceRecherche._staticInstance.get_defaultUserContext(); }
WebServiceRecherche.set_defaultSucceededCallback = function(value) { 
 WebServiceRecherche._staticInstance.set_defaultSucceededCallback(value); }
WebServiceRecherche.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return WebServiceRecherche._staticInstance.get_defaultSucceededCallback(); }
WebServiceRecherche.set_defaultFailedCallback = function(value) { 
WebServiceRecherche._staticInstance.set_defaultFailedCallback(value); }
WebServiceRecherche.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return WebServiceRecherche._staticInstance.get_defaultFailedCallback(); }
WebServiceRecherche.set_path("/WebServices/WebServiceRecherche.svc");
WebServiceRecherche.GetIngredients= function(q,limit,onSuccess,onFailed,userContext) {
/// <param name="q" type="String">System.String</param>
/// <param name="limit" 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>
WebServiceRecherche._staticInstance.GetIngredients(q,limit,onSuccess,onFailed,userContext); }
WebServiceRecherche.GetRecipesNames= function(q,limit,onSuccess,onFailed,userContext) {
/// <param name="q" type="String">System.String</param>
/// <param name="limit" 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>
WebServiceRecherche._staticInstance.GetRecipesNames(q,limit,onSuccess,onFailed,userContext); }
