var NathansService=function() {
NathansService.initializeBase(this);
this._timeout = 0;
this._userContext = null;
this._succeeded = null;
this._failed = null;
}
NathansService.prototype={
GetQuestion:function(sQuestionName,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetQuestion',false,{sQuestionName:sQuestionName},succeededCallback,failedCallback,userContext); },
GetKnowledge:function(iAnswerID,sQuest,sAnswer,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetKnowledge',false,{iAnswerID:iAnswerID,sQuest:sQuest,sAnswer:sAnswer},succeededCallback,failedCallback,userContext); },
GetNextQuestion:function(sQuestionName,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetNextQuestion',false,{sQuestionName:sQuestionName},succeededCallback,failedCallback,userContext); },
GetKeyword:function(iQuestionID,sAnswer,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetKeyword',false,{iQuestionID:iQuestionID,sAnswer:sAnswer},succeededCallback,failedCallback,userContext); },
GetKBLinks:function(iKBID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetKBLinks',false,{iKBID:iKBID},succeededCallback,failedCallback,userContext); },
GetMultiOptions:function(iQuestionID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetMultiOptions',false,{iQuestionID:iQuestionID},succeededCallback,failedCallback,userContext); },
GetKeywordStem:function(sKeyword,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetKeywordStem',false,{sKeyword:sKeyword},succeededCallback,failedCallback,userContext); },
GetVariations:function(sStemword,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetVariations',false,{sStemword:sStemword},succeededCallback,failedCallback,userContext); },
GetList:function(sTypeList,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetList',false,{sTypeList:sTypeList},succeededCallback,failedCallback,userContext); },
QuestionList:function(oQu,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'QuestionList',false,{oQu:oQu},succeededCallback,failedCallback,userContext); },
PremiseList:function(oPr,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'PremiseList',false,{oPr:oPr},succeededCallback,failedCallback,userContext); },
AnswersList:function(oQuestion,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'AnswersList',false,{oQuestion:oQuestion},succeededCallback,failedCallback,userContext); },
KeywordsList:function(oKW,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'KeywordsList',false,{oKW:oKW},succeededCallback,failedCallback,userContext); },
KBList:function(oKB,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'KBList',false,{oKB:oKB},succeededCallback,failedCallback,userContext); },
GetQuestionByID:function(iQuestionID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetQuestionByID',false,{iQuestionID:iQuestionID},succeededCallback,failedCallback,userContext); },
GetPremiseByID:function(iPremiseID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetPremiseByID',false,{iPremiseID:iPremiseID},succeededCallback,failedCallback,userContext); },
GetKeywordByID:function(iKeywordID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetKeywordByID',false,{iKeywordID:iKeywordID},succeededCallback,failedCallback,userContext); },
GetKBByID:function(iAnsID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetKBByID',false,{iAnsID:iAnsID},succeededCallback,failedCallback,userContext); },
SaveQuest:function(oQuestion,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'SaveQuest',false,{oQuestion:oQuestion},succeededCallback,failedCallback,userContext); },
SavePremise:function(oPremise,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'SavePremise',false,{oPremise:oPremise},succeededCallback,failedCallback,userContext); },
SaveAnswer:function(ansID,questionID,answerText,premID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'SaveAnswer',false,{ansID:ansID,questionID:questionID,answerText:answerText,premID:premID},succeededCallback,failedCallback,userContext); },
SaveKeywordRelation:function(kwID,premID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'SaveKeywordRelation',false,{kwID:kwID,premID:premID},succeededCallback,failedCallback,userContext); },
SaveKBRelation:function(kbID,answID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'SaveKBRelation',false,{kbID:kbID,answID:answID},succeededCallback,failedCallback,userContext); },
SaveKeyword:function(oKW,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'SaveKeyword',false,{oKW:oKW},succeededCallback,failedCallback,userContext); },
SaveKB:function(oKB,sKBlink,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'SaveKB',false,{oKB:oKB,sKBlink:sKBlink},succeededCallback,failedCallback,userContext); },
DeleteQuestion:function(iQuestionID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'DeleteQuestion',false,{iQuestionID:iQuestionID},succeededCallback,failedCallback,userContext); },
DeletePremise:function(iPremiseID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'DeletePremise',false,{iPremiseID:iPremiseID},succeededCallback,failedCallback,userContext); },
DeleteAnswer:function(iAnswerID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'DeleteAnswer',false,{iAnswerID:iAnswerID},succeededCallback,failedCallback,userContext); },
DeleteKeyword:function(iKeywordID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'DeleteKeyword',false,{iKeywordID:iKeywordID},succeededCallback,failedCallback,userContext); },
DeleteKB:function(iKBID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'DeleteKB',false,{iKBID:iKBID},succeededCallback,failedCallback,userContext); },
DeleteKWRelation:function(iKWRelID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'DeleteKWRelation',false,{iKWRelID:iKWRelID},succeededCallback,failedCallback,userContext); },
DeleteKBRelation:function(iKBRelID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'DeleteKBRelation',false,{iKBRelID:iKBRelID},succeededCallback,failedCallback,userContext); },
AddQuest:function(sQName,sQText,sQCate,sQType,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'AddQuest',false,{sQName:sQName,sQText:sQText,sQCate:sQCate,sQType:sQType},succeededCallback,failedCallback,userContext); },
AddPremise:function(sPremName,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'AddPremise',false,{sPremName:sPremName},succeededCallback,failedCallback,userContext); },
AddAnswer:function(iQuestID,sAnsText,iPremID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'AddAnswer',false,{iQuestID:iQuestID,sAnsText:sAnsText,iPremID:iPremID},succeededCallback,failedCallback,userContext); },
AddKeywords:function(sWord,assocID,premiseID,wordAdd,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'AddKeywords',false,{sWord:sWord,assocID:assocID,premiseID:premiseID,wordAdd:wordAdd},succeededCallback,failedCallback,userContext); },
AddKB:function(questionNext,KBadvice,KBlink,KBsentence,answerID,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'AddKB',false,{questionNext:questionNext,KBadvice:KBadvice,KBlink:KBlink,KBsentence:KBsentence,answerID:answerID},succeededCallback,failedCallback,userContext); },
GetAddAnswerLists:function(succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetAddAnswerLists',false,{},succeededCallback,failedCallback,userContext); },
GetAddKeywordLists:function(succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetAddKeywordLists',false,{},succeededCallback,failedCallback,userContext); },
GetAddKBLists:function(succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetAddKBLists',false,{},succeededCallback,failedCallback,userContext); },
GetAlerts:function(sDate,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetAlerts',false,{sDate:sDate},succeededCallback,failedCallback,userContext); },
GetVisitors:function(sDate,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetVisitors',false,{sDate:sDate},succeededCallback,failedCallback,userContext); },
GetVisitorsDet:function(iVRid,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetVisitorsDet',false,{iVRid:iVRid},succeededCallback,failedCallback,userContext); },
GetLogin:function(sUsername,sPassword,succeededCallback, failedCallback, userContext) {
return this._invoke(NathansService.get_path(), 'GetLogin',false,{sUsername:sUsername,sPassword:sPassword},succeededCallback,failedCallback,userContext); }}
NathansService.registerClass('NathansService',Sys.Net.WebServiceProxy);
NathansService._staticInstance = new NathansService();
NathansService.set_path = function(value) { NathansService._staticInstance._path = value; }
NathansService.get_path = function() { return NathansService._staticInstance._path; }
NathansService.set_timeout = function(value) { NathansService._staticInstance._timeout = value; }
NathansService.get_timeout = function() { return NathansService._staticInstance._timeout; }
NathansService.set_defaultUserContext = function(value) { NathansService._staticInstance._userContext = value; }
NathansService.get_defaultUserContext = function() { return NathansService._staticInstance._userContext; }
NathansService.set_defaultSucceededCallback = function(value) { NathansService._staticInstance._succeeded = value; }
NathansService.get_defaultSucceededCallback = function() { return NathansService._staticInstance._succeeded; }
NathansService.set_defaultFailedCallback = function(value) { NathansService._staticInstance._failed = value; }
NathansService.get_defaultFailedCallback = function() { return NathansService._staticInstance._failed; }
NathansService.set_path("/NathansService.asmx");
NathansService.GetQuestion= function(sQuestionName,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetQuestion(sQuestionName,onSuccess,onFailed,userContext); }
NathansService.GetKnowledge= function(iAnswerID,sQuest,sAnswer,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetKnowledge(iAnswerID,sQuest,sAnswer,onSuccess,onFailed,userContext); }
NathansService.GetNextQuestion= function(sQuestionName,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetNextQuestion(sQuestionName,onSuccess,onFailed,userContext); }
NathansService.GetKeyword= function(iQuestionID,sAnswer,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetKeyword(iQuestionID,sAnswer,onSuccess,onFailed,userContext); }
NathansService.GetKBLinks= function(iKBID,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetKBLinks(iKBID,onSuccess,onFailed,userContext); }
NathansService.GetMultiOptions= function(iQuestionID,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetMultiOptions(iQuestionID,onSuccess,onFailed,userContext); }
NathansService.GetKeywordStem= function(sKeyword,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetKeywordStem(sKeyword,onSuccess,onFailed,userContext); }
NathansService.GetVariations= function(sStemword,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetVariations(sStemword,onSuccess,onFailed,userContext); }
NathansService.GetList= function(sTypeList,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetList(sTypeList,onSuccess,onFailed,userContext); }
NathansService.QuestionList= function(oQu,onSuccess,onFailed,userContext) {NathansService._staticInstance.QuestionList(oQu,onSuccess,onFailed,userContext); }
NathansService.PremiseList= function(oPr,onSuccess,onFailed,userContext) {NathansService._staticInstance.PremiseList(oPr,onSuccess,onFailed,userContext); }
NathansService.AnswersList= function(oQuestion,onSuccess,onFailed,userContext) {NathansService._staticInstance.AnswersList(oQuestion,onSuccess,onFailed,userContext); }
NathansService.KeywordsList= function(oKW,onSuccess,onFailed,userContext) {NathansService._staticInstance.KeywordsList(oKW,onSuccess,onFailed,userContext); }
NathansService.KBList= function(oKB,onSuccess,onFailed,userContext) {NathansService._staticInstance.KBList(oKB,onSuccess,onFailed,userContext); }
NathansService.GetQuestionByID= function(iQuestionID,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetQuestionByID(iQuestionID,onSuccess,onFailed,userContext); }
NathansService.GetPremiseByID= function(iPremiseID,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetPremiseByID(iPremiseID,onSuccess,onFailed,userContext); }
NathansService.GetKeywordByID= function(iKeywordID,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetKeywordByID(iKeywordID,onSuccess,onFailed,userContext); }
NathansService.GetKBByID= function(iAnsID,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetKBByID(iAnsID,onSuccess,onFailed,userContext); }
NathansService.SaveQuest= function(oQuestion,onSuccess,onFailed,userContext) {NathansService._staticInstance.SaveQuest(oQuestion,onSuccess,onFailed,userContext); }
NathansService.SavePremise= function(oPremise,onSuccess,onFailed,userContext) {NathansService._staticInstance.SavePremise(oPremise,onSuccess,onFailed,userContext); }
NathansService.SaveAnswer= function(ansID,questionID,answerText,premID,onSuccess,onFailed,userContext) {NathansService._staticInstance.SaveAnswer(ansID,questionID,answerText,premID,onSuccess,onFailed,userContext); }
NathansService.SaveKeywordRelation= function(kwID,premID,onSuccess,onFailed,userContext) {NathansService._staticInstance.SaveKeywordRelation(kwID,premID,onSuccess,onFailed,userContext); }
NathansService.SaveKBRelation= function(kbID,answID,onSuccess,onFailed,userContext) {NathansService._staticInstance.SaveKBRelation(kbID,answID,onSuccess,onFailed,userContext); }
NathansService.SaveKeyword= function(oKW,onSuccess,onFailed,userContext) {NathansService._staticInstance.SaveKeyword(oKW,onSuccess,onFailed,userContext); }
NathansService.SaveKB= function(oKB,sKBlink,onSuccess,onFailed,userContext) {NathansService._staticInstance.SaveKB(oKB,sKBlink,onSuccess,onFailed,userContext); }
NathansService.DeleteQuestion= function(iQuestionID,onSuccess,onFailed,userContext) {NathansService._staticInstance.DeleteQuestion(iQuestionID,onSuccess,onFailed,userContext); }
NathansService.DeletePremise= function(iPremiseID,onSuccess,onFailed,userContext) {NathansService._staticInstance.DeletePremise(iPremiseID,onSuccess,onFailed,userContext); }
NathansService.DeleteAnswer= function(iAnswerID,onSuccess,onFailed,userContext) {NathansService._staticInstance.DeleteAnswer(iAnswerID,onSuccess,onFailed,userContext); }
NathansService.DeleteKeyword= function(iKeywordID,onSuccess,onFailed,userContext) {NathansService._staticInstance.DeleteKeyword(iKeywordID,onSuccess,onFailed,userContext); }
NathansService.DeleteKB= function(iKBID,onSuccess,onFailed,userContext) {NathansService._staticInstance.DeleteKB(iKBID,onSuccess,onFailed,userContext); }
NathansService.DeleteKWRelation= function(iKWRelID,onSuccess,onFailed,userContext) {NathansService._staticInstance.DeleteKWRelation(iKWRelID,onSuccess,onFailed,userContext); }
NathansService.DeleteKBRelation= function(iKBRelID,onSuccess,onFailed,userContext) {NathansService._staticInstance.DeleteKBRelation(iKBRelID,onSuccess,onFailed,userContext); }
NathansService.AddQuest= function(sQName,sQText,sQCate,sQType,onSuccess,onFailed,userContext) {NathansService._staticInstance.AddQuest(sQName,sQText,sQCate,sQType,onSuccess,onFailed,userContext); }
NathansService.AddPremise= function(sPremName,onSuccess,onFailed,userContext) {NathansService._staticInstance.AddPremise(sPremName,onSuccess,onFailed,userContext); }
NathansService.AddAnswer= function(iQuestID,sAnsText,iPremID,onSuccess,onFailed,userContext) {NathansService._staticInstance.AddAnswer(iQuestID,sAnsText,iPremID,onSuccess,onFailed,userContext); }
NathansService.AddKeywords= function(sWord,assocID,premiseID,wordAdd,onSuccess,onFailed,userContext) {NathansService._staticInstance.AddKeywords(sWord,assocID,premiseID,wordAdd,onSuccess,onFailed,userContext); }
NathansService.AddKB= function(questionNext,KBadvice,KBlink,KBsentence,answerID,onSuccess,onFailed,userContext) {NathansService._staticInstance.AddKB(questionNext,KBadvice,KBlink,KBsentence,answerID,onSuccess,onFailed,userContext); }
NathansService.GetAddAnswerLists= function(onSuccess,onFailed,userContext) {NathansService._staticInstance.GetAddAnswerLists(onSuccess,onFailed,userContext); }
NathansService.GetAddKeywordLists= function(onSuccess,onFailed,userContext) {NathansService._staticInstance.GetAddKeywordLists(onSuccess,onFailed,userContext); }
NathansService.GetAddKBLists= function(onSuccess,onFailed,userContext) {NathansService._staticInstance.GetAddKBLists(onSuccess,onFailed,userContext); }
NathansService.GetAlerts= function(sDate,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetAlerts(sDate,onSuccess,onFailed,userContext); }
NathansService.GetVisitors= function(sDate,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetVisitors(sDate,onSuccess,onFailed,userContext); }
NathansService.GetVisitorsDet= function(iVRid,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetVisitorsDet(iVRid,onSuccess,onFailed,userContext); }
NathansService.GetLogin= function(sUsername,sPassword,onSuccess,onFailed,userContext) {NathansService._staticInstance.GetLogin(sUsername,sPassword,onSuccess,onFailed,userContext); }
var gtc = Sys.Net.WebServiceProxy._generateTypedConstructor;
Type.registerNamespace('Oracle');
if (typeof(Oracle.Question) === 'undefined') {
Oracle.Question=gtc("Oracle.Question");
Oracle.Question.registerClass('Oracle.Question');
}
if (typeof(Oracle.KnowledgeBase) === 'undefined') {
Oracle.KnowledgeBase=gtc("Oracle.KnowledgeBase");
Oracle.KnowledgeBase.registerClass('Oracle.KnowledgeBase');
}
if (typeof(Oracle.Premise) === 'undefined') {
Oracle.Premise=gtc("Oracle.Premise");
Oracle.Premise.registerClass('Oracle.Premise');
}
if (typeof(Oracle.Keyword) === 'undefined') {
Oracle.Keyword=gtc("Oracle.Keyword");
Oracle.Keyword.registerClass('Oracle.Keyword');
}
