<?php
	/* Includes modified by Mike Mallinson */
	require_once dirname(__FILE__).'/nusoap.php';
	require_once dirname(__FILE__).'/apiutil.php';

	class DotCoopContact
	{
		var $serviceObj;
		var $wsdlFileName;
		function DotCoopContact($wsdlFileName="wsdl/DotCoopContact.wsdl")
		{
			$this->wsdlFileName = $wsdlFileName;
			/* Changed soapclient to nusoapclient - Mike Mallinson */
			$this->serviceObj = new lbsoapclient($this->wsdlFileName,"wsdl");
		}
		function addSponsor(
			$SERVICE_USERNAME, $SERVICE_PASSWORD, $SERVICE_ROLE, $SERVICE_LANGPREF, $SERVICE_PARENTID, $name, $company, $emailAddr, $address1, $address2, $address3, $city, $state, $country, $zip, $telNoCc, $telNo, $faxNoCc, $faxNo, $customerId)
		{
			$return = $this->serviceObj->call("addSponsor",array($SERVICE_USERNAME, $SERVICE_PASSWORD, $SERVICE_ROLE, $SERVICE_LANGPREF, $SERVICE_PARENTID, $name, $company, $emailAddr, $address1, $address2, $address3, $city, $state, $country, $zip, $telNoCc, $telNo, $faxNoCc, $faxNo, $customerId));
			debugfunction($this->serviceObj);
			return $return;
		}
		function getSponsorsList(
			$SERVICE_USERNAME, $SERVICE_PASSWORD, $SERVICE_ROLE, $SERVICE_LANGPREF, $SERVICE_PARENTID, $customerId, $registrantContactId)
		{
			$return = $this->serviceObj->call("getSponsorsList",array($SERVICE_USERNAME, $SERVICE_PASSWORD, $SERVICE_ROLE, $SERVICE_LANGPREF, $SERVICE_PARENTID, $customerId, $registrantContactId));
			debugfunction($this->serviceObj);
			return $return;
		}
	}
?>