本文整理匯總了PHP中Zend_Soap_Client::validateClass方法的典型用法代碼示例。如果您正苦於以下問題:PHP Zend_Soap_Client::validateClass方法的具體用法?PHP Zend_Soap_Client::validateClass怎麽用?PHP Zend_Soap_Client::validateClass使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Zend_Soap_Client
的用法示例。
在下文中一共展示了Zend_Soap_Client::validateClass方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: processTest
private function processTest()
{
$client = new Zend_Soap_Client($this->url('soapserver|soap|WSDL'));
$client->setWsdlCache(false);
$class1 = new soapClassModel();
$class1->name = 'Vasi Tavue';
$class1->accountId = 1;
$class1->classId = 6;
$class1->level = array(7);
$class1->type = 8;
$class1->year = 2011;
$class1->validityDate = '2013-08-31';
$class = new soapClassModel();
$class->name = 'Vasi Tavue';
$class->accountId = 1;
$class->classId = 6;
$class->level = array(7);
$class->type = 8;
$class->year = 2011;
$class->validityDate = '2013-08-31';
$directeur = new soapDirectorModel();
$directeur->name = "jeanClaude";
$directeur->surname = "leCompte";
$directeur->mail = "lecompte@caramail.fr";
$directeur->gender = 1;
$adress = new soapAddressModel();
$adress->address = "4 rue des cochons";
$adress->additionalAddress = "";
$adress->city = "Larochelle";
$adress->postalCode = "76788";
$school = new soapSchoolModel();
$school->name = "DesChamps";
$school->address = $adress;
$school->director = $directeur;
$account = new soapAccountModel();
$account->id = 1;
$account->school = $school;
try {
$j = $client->createAccount($account);
$i = $client->createClass($class);
$k = $client->validateClass($class1);
} catch (Exception $e) {
echo $e;
}
echo '===';
var_dump($i);
var_dump($j);
var_dump($k);
return _arNone();
}