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

