
/****c* oos.comm.ajax/ServiceObject
  *  NAME
  *    ServiceObject - Class representing a ServiceObject
  *  VERSION
  *    1.00
  *  AUTHOR
  *    Reinhard Holzmann
  *  CREATION DATE
  *    11/04/2006
  *  HISTORY
  *    1.00	Basic version
  *  SYNOPSIS
  *    var myServiceObject = new ServiceObject();
  *  DESCRIPTION
  *    A service object to call a remote webservice over the soap protocol.
  ***/
function ServiceObject(inUrl) {
	var me = this;
	var myUrl;
	var myParams = new SOAPClientParameters();
	
	oosconstructor = function(inUrl) {
		myUrl = inUrl;
	}

	me.addParam = function(inName, inParam) {
		myParams.add(inName, inParam);
	}
	
	me.initParam = function(inName, inParam) {
		myParams = new SOAPClientParameters();
	}	
	
	me.call = function(inMethod) {
		return SOAPClient.invoke(myUrl, inMethod, myParams, false);
	}
	
	me.invoke = function(inMethod, inCallback) {
		SOAPClient.invoke(myUrl, inMethod, myParams, true, inCallback);
	}				
	
	oosconstructor(inUrl);
}	