예제 #1
0
 public function testSetCacheIsSetWithWriteableDirectory()
 {
     vfsStreamWrapper::register();
     vfsStreamWrapper::setRoot(new vfsStreamDirectory('tmp'));
     $SOAP = new SSRS_Soap_NTLM('http://');
     $SOAP->setCachePath(vfsStream::url('tmp/file.wsdl'));
     $this->assertEquals('vfs://tmp/file.wsdl', $SOAP->getCachePath());
 }
예제 #2
0
 /**
  * Returns the SOAP client Service object so that methods of the web service can be run.
  * If the SOAP Service object is undefined then it will be set.
  *
  * @return SoapClient
  */
 public function getSoapService($runInit = true)
 {
     if ($this->_soapService === null) {
         $options = array('username' => $this->_username, 'password' => $this->_passwd);
         $client = new SSRS_Soap_NTLM($this->_baseUri . '/' . $this->servicePath, $options);
         if ($runInit) {
             $client->init();
         }
         $this->setSoapService($client);
     }
     return $this->_soapService;
 }