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