コード例 #1
0
ファイル: Service.php プロジェクト: wirehive/vmwarephp
 function getServiceContent()
 {
     if (!$this->serviceContent) {
         $this->serviceContent = $this->makeSoapCall('RetrieveServiceContent', \Vmwarephp\Factory\SoapMessage::makeForServiceInstance());
     }
     return $this->serviceContent;
 }
コード例 #2
0
ファイル: Service.php プロジェクト: agazzi/vmwarephp
 function getServiceContent()
 {
     require_once 'TypeDefinitions.inc';
     if (!$this->serviceContent) {
         $this->serviceContent = $this->makeSoapCall('RetrieveServiceContent', \Vmwarephp\Factory\SoapMessage::makeForServiceInstance());
     }
     return $this->serviceContent;
 }
コード例 #3
0
ファイル: ServiceTest.php プロジェクト: khandieyea/vmwarephp
 private function stubServiceContent($hash)
 {
     $serviceContent = new \ServiceContent();
     foreach ($hash as $key => $value) {
         $serviceContent->{$key} = $value;
     }
     $this->vmwareSoapClient->expects($this->any())->method('RetrieveServiceContent')->with(\Vmwarephp\Factory\SoapMessage::makeForServiceInstance())->will($this->returnValue(new \RetrieveServiceContentResponse($serviceContent)));
 }
コード例 #4
0
 function testItMakesAMessageForGettingTheServiceInstance()
 {
     $expectedMessage = array('_this' => new \SoapVar('ServiceInstance', XSD_STRING, 'ServiceInstance'));
     $this->assertEquals($expectedMessage, \Vmwarephp\Factory\SoapMessage::makeForServiceInstance());
 }
コード例 #5
0
ファイル: Service.php プロジェクト: LeaseWeb/vmwarephp
 /**
  * @return mixed
  * @throws Exception\Soap
  */
 public function getServiceContent()
 {
     if (!$this->serviceContent) {
         $this->serviceContent = $this->makeSoapCall('RetrieveServiceContent', SoapMessage::makeForServiceInstance());
     }
     return $this->serviceContent;
 }