By default wsdl in wsdl dir is used.
*
*/
function DomUsContact($wsdlurl="wsdl/domainuscontact.wsdl")
{
$this->wsdl = $wsdlurl;
$this->s = new soapclient($this->wsdl,"wsdl");
}
/**
* @access private
*/
//This function is to diaplay xml Request/Response.
function debugfunction()
{
global $debugfunction;
if($debugfunction)
{
print "XML Sent:
";
print "
" . $this->s->request . "";
print "
XML Received:
";
print "" . $this->s->response . "";
print "
";
}
}
/**
* This function need to be called for any contact used as Registrant contact for .US.
*
* @return void
* @param string Username.
* @param string Password.
* @param string Role.
* @param string Language Preference.
* @param int Parent id.
* @param int The Registrant contactId for which applicationPurposedetails, nexusCategory are required.
* @param string applicationPurpose e.g P1,P2 etc.
* @param string nexusCategory e.g. C31
*
*/
function setContactDetails($userName,$password,$role,$langpref,$parentid,$contactId,$applicationPurpose,$nexusCategory)
{
$para = array($userName,$password,$role,$langpref,$parentid,$contactId,$applicationPurpose,$nexusCategory);
$return = $this->s->call("setContactDetails",$para);
$this->debugfunction();
return $return;
}
}
?>