/** * 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); }
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 } }
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 } }