当前位置: 首页>>代码示例>>PHP>>正文


PHP Zend_Soap_Client::setWsdlCache方法代码示例

本文整理汇总了PHP中Zend_Soap_Client::setWsdlCache方法的典型用法代码示例。如果您正苦于以下问题:PHP Zend_Soap_Client::setWsdlCache方法的具体用法?PHP Zend_Soap_Client::setWsdlCache怎么用?PHP Zend_Soap_Client::setWsdlCache使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Zend_Soap_Client的用法示例。


在下文中一共展示了Zend_Soap_Client::setWsdlCache方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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();
 }
开发者ID:JVS-IS,项目名称:ICONITO-EcoleNumerique,代码行数:50,代码来源:soap.actiongroup.php

示例2: testAllowNumericZeroAsValueForCacheWsdlOption

 /**
  * @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);
 }
开发者ID:omusico,项目名称:logica,代码行数:18,代码来源:ClientTest.php


注:本文中的Zend_Soap_Client::setWsdlCache方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。