Untitled

mail@pastecode.io avatar
unknown
plain_text
9 days ago
1.1 kB
4
Indexable
Never
var TS = {
	services : {
		"DS_MANAGER" : {"key":"DS_MANAGER","name":"dsManager","class":"DSmanager"},
		"TASOR" : {"key":"TASOR","name":"rdfTasor","class":"Tasor"},
		"GUI_MANAGER" : {"key":"GUI_MANAGER","name":"semanticGUI","class":"SemanticGUI"},
		"INVITATION_MANAGER" : {"key":"INVITATION_MANAGER","name":"invitations","class":"InvitationManager"},
		"PRINTER" : {"key":"PRINTER","name":"print","class":"PrintService"},
		"USER_MANAGER" : {"key":"USER_MANAGER","name":"um","class":"UserManager"},
		"SENSOR_DATA_COLLECTOR" : {"key":"SENSOR_DATA_COLLECTOR","name":"sensorcollector","class":"SensorDataCollector"}
	},
	defaultFormat : "json",
	requestFormat : {JSON:"json",TEXT:"text"},
	repositoryMode: false,
	
	callservice : function(endpointURL, requestData, succFunc, faultFunc, resultFormat){
		resultFormat = (typeof resultFormat == 'undefined') ? TS.defaultFormat : resultFormat;
		return $.ajax({
			type: "POST",
			data: requestData,
			url: endpointURL,
			dataType: resultFormat,
			success: succFunc,
			error: faultFunc ,
			traditional: true
		});
	},
Leave a Comment