src/Com/WebService/WSServer.php
public function buildService()
  {
    require_once($this->classFile);
    $wsdl = $this->generateWsdl();

    if (isset($_GET['wsdl'])) {
      print $wsdl;
    } else {
      $file = 'data://text/plain;base64,'. base64_encode($wsdl);
      $server = new \SoapServer($file);
      $server->setClass($this->className);
      $functions = get_class_methods($this->className);
      foreach ($functions as $function) {
        $server->addFunction($function);
      }
      $server->handle();
    }
  }
public function buildService()
  {
    require_once($this->classFile);
    $wsdl = $this->generateWsdl();

    if (isset($_GET['wsdl'])) {
      print $wsdl;
    } else {
      $file = 'data://text/plain;base64,'. base64_encode($wsdl);
      $server = new \SoapServer($file);
      $server->setClass($this->className);
      $functions = get_class_methods($this->className);
      foreach ($functions as $function) {
        $server->addFunction($function);
      }
      $server->handle();
    }
  }
public function buildService ( ) { require_once ( $ this -> classFile ) ; $ wsdl = $ this -> generateWsdl ( ) ; if ( isset ( $ _GET [ 'wsdl' ] ) ) { print $ wsdl ; } else { $ file = 'data://text/plain;base64,' . base64_encode ( $ wsdl ) ; $ server = new \ SoapServer ( $ file ) ; $ server -> setClass ( $ this -> className ) ; $ functions = get_class_methods ( $ this -> className ) ; foreach ( $ functions as $ function ) { $ server -> addFunction ( $ function ) ; } $ server -> handle ( ) ; } }
Construction du service

@return void
Construction du service