Beispiel #1
0
 /**
  * Local client constructor
  *
  * @param \Zend\Soap\Server\Server $server
  * @param string $wsdl
  * @param array $options
  */
 function __construct(\Zend\Soap\Server\Server $server, $wsdl, $options = null)
 {
     $this->_server = $server;
     // Use Server specified SOAP version as default
     $this->setSoapVersion($server->getSoapVersion());
     parent::__construct($wsdl, $options);
 }
Beispiel #2
0
 public function testSoapVersion()
 {
     $server = new Server\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
     }
 }