コード例 #1
0
ファイル: Local.php プロジェクト: alefernie/intranet
 /**
  * Local client constructor
  *
  * @param Zend_Soap_Server $server
  * @param string $wsdl
  * @param array $options
  */
 function __construct(Zend_Soap_Server $server, $wsdl, $options = null)
 {
     $this->_server = $server;
     // Use Server specified SOAP version as default
     $this->setSoapVersion($server->getSoapVersion());
     parent::__construct($wsdl, $options);
 }
コード例 #2
0
ファイル: ServerTest.php プロジェクト: lortnus/zf1
 public function testSoapVersion()
 {
     if (!extension_loaded('soap')) {
         $this->markTestSkipped('SOAP Extension is not loaded');
     }
     $server = new Zend_Soap_Server();
     $this->assertEquals(SOAP_1_2, $server->getSoapVersion());
     $server->setSoapVersion(SOAP_1_1);
     $this->assertEquals(SOAP_1_1, $server->getSoapVersion());
     try {
         $server->setSoapVersion('bogus');
         $this->fail('Invalid soap versions should fail');
     } catch (Exception $e) {
         // success
     }
 }
コード例 #3
0
ファイル: ServerTest.php プロジェクト: omusico/logica
 public function testSoapVersion()
 {
     $server = new Zend_Soap_Server();
     $this->assertEquals(SOAP_1_2, $server->getSoapVersion());
     $server->setSoapVersion(SOAP_1_1);
     $this->assertEquals(SOAP_1_1, $server->getSoapVersion());
     try {
         $server->setSoapVersion('bogus');
         $this->fail('Invalid soap versions should fail');
     } catch (Exception $e) {
         // success
     }
 }