Type.registerNamespace('Service');
Service.Service=function() {
Service.Service.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
Service.Service.prototype={
_get_path:function() {
 var p = this.get_path();
 if (p) return p;
 else return Service.Service._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); },
SetPoint:function(JsonString,succeededCallback, failedCallback, userContext) {
/// <param name="JsonString" 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(), 'SetPoint',false,{JsonString:JsonString},succeededCallback,failedCallback,userContext); },
Recherche:function(Quoi,Ou,succeededCallback, failedCallback, userContext) {
/// <param name="Quoi" type="String">System.String</param>
/// <param name="Ou" 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(), 'Recherche',false,{Quoi:Quoi,Ou:Ou},succeededCallback,failedCallback,userContext); },
RechercheCentre:function(Points,Centre,Quoi,succeededCallback, failedCallback, userContext) {
/// <param name="Points" type="String">System.String</param>
/// <param name="Centre" type="String">System.String</param>
/// <param name="Quoi" 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(), 'RechercheCentre',false,{Points:Points,Centre:Centre,Quoi:Quoi},succeededCallback,failedCallback,userContext); },
loadMakerMeteo:function(TypeVille,succeededCallback, failedCallback, userContext) {
/// <param name="TypeVille" 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(), 'loadMakerMeteo',false,{TypeVille:TypeVille},succeededCallback,failedCallback,userContext); },
LoadMeteo:function(CodeVille,succeededCallback, failedCallback, userContext) {
/// <param name="CodeVille" 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(), 'LoadMeteo',false,{CodeVille:CodeVille},succeededCallback,failedCallback,userContext); },
Test:function(points,succeededCallback, failedCallback, userContext) {
/// <param name="points" 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(), 'Test',false,{points:points},succeededCallback,failedCallback,userContext); }}
Service.Service.registerClass('Service.Service',Sys.Net.WebServiceProxy);
Service.Service._staticInstance = new Service.Service();
Service.Service.set_path = function(value) {
Service.Service._staticInstance.set_path(value); }
Service.Service.get_path = function() { 
/// <value type="String" mayBeNull="true">The service url.</value>
return Service.Service._staticInstance.get_path();}
Service.Service.set_timeout = function(value) {
Service.Service._staticInstance.set_timeout(value); }
Service.Service.get_timeout = function() { 
/// <value type="Number">The service timeout.</value>
return Service.Service._staticInstance.get_timeout(); }
Service.Service.set_defaultUserContext = function(value) { 
Service.Service._staticInstance.set_defaultUserContext(value); }
Service.Service.get_defaultUserContext = function() { 
/// <value mayBeNull="true">The service default user context.</value>
return Service.Service._staticInstance.get_defaultUserContext(); }
Service.Service.set_defaultSucceededCallback = function(value) { 
 Service.Service._staticInstance.set_defaultSucceededCallback(value); }
Service.Service.get_defaultSucceededCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default succeeded callback.</value>
return Service.Service._staticInstance.get_defaultSucceededCallback(); }
Service.Service.set_defaultFailedCallback = function(value) { 
Service.Service._staticInstance.set_defaultFailedCallback(value); }
Service.Service.get_defaultFailedCallback = function() { 
/// <value type="Function" mayBeNull="true">The service default failed callback.</value>
return Service.Service._staticInstance.get_defaultFailedCallback(); }
Service.Service.set_path("/Service.svc");
Service.Service.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>
Service.Service._staticInstance.DoWork(onSuccess,onFailed,userContext); }
Service.Service.SetPoint= function(JsonString,onSuccess,onFailed,userContext) {
/// <param name="JsonString" 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>
Service.Service._staticInstance.SetPoint(JsonString,onSuccess,onFailed,userContext); }
Service.Service.Recherche= function(Quoi,Ou,onSuccess,onFailed,userContext) {
/// <param name="Quoi" type="String">System.String</param>
/// <param name="Ou" 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>
Service.Service._staticInstance.Recherche(Quoi,Ou,onSuccess,onFailed,userContext); }
Service.Service.RechercheCentre= function(Points,Centre,Quoi,onSuccess,onFailed,userContext) {
/// <param name="Points" type="String">System.String</param>
/// <param name="Centre" type="String">System.String</param>
/// <param name="Quoi" 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>
Service.Service._staticInstance.RechercheCentre(Points,Centre,Quoi,onSuccess,onFailed,userContext); }
Service.Service.loadMakerMeteo= function(TypeVille,onSuccess,onFailed,userContext) {
/// <param name="TypeVille" 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>
Service.Service._staticInstance.loadMakerMeteo(TypeVille,onSuccess,onFailed,userContext); }
Service.Service.LoadMeteo= function(CodeVille,onSuccess,onFailed,userContext) {
/// <param name="CodeVille" 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>
Service.Service._staticInstance.LoadMeteo(CodeVille,onSuccess,onFailed,userContext); }
Service.Service.Test= function(points,onSuccess,onFailed,userContext) {
/// <param name="points" 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>
Service.Service._staticInstance.Test(points,onSuccess,onFailed,userContext); }
