本文整理汇总了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();
}