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 = "*****@*****.**"; $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(); }
/** * @group ZF-10542 */ public function testAllowNumericZeroAsValueForCacheWsdlOption() { $client = new Zend_Soap_Client(); $this->assertNull($client->getWsdlCache()); $options = $client->getOptions(); $this->assertArrayNotHasKey('cache_wsdl', $options); $client->setWsdlCache(WSDL_CACHE_NONE); $this->assertSame(WSDL_CACHE_NONE, $client->getWsdlCache()); $options = $client->getOptions(); $this->assertSame(WSDL_CACHE_NONE, $options['cache_wsdl']); $client->setWsdlCache(null); $this->assertNull($client->getWsdlCache()); $options = $client->getOptions(); $this->assertArrayNotHasKey('cache_wsdl', $options); }