public function getSoapServer($wsdl = null){

        if(is_null($this->soapServer)){
            if(is_null($wsdl)){
                $this->soapServer = new SoapServer(null, array('soap_version' => SOAP_1_1, 'encoding' => jApp::config()->charset, 'uri' => $_SERVER['PHP_SELF']));
            }else{
                $this->soapServer = new SoapServer($wsdl->getWSDLFilePath(), array('soap_version' => SOAP_1_1, 'encoding' => jApp::config()->charset));
            }
        }
        return $this->soapServer;
    }
public function getSoapServer($wsdl = null){

        if(is_null($this->soapServer)){
            if(is_null($wsdl)){
                $this->soapServer = new SoapServer(null, array('soap_version' => SOAP_1_1, 'encoding' => jApp::config()->charset, 'uri' => $_SERVER['PHP_SELF']));
            }else{
                $this->soapServer = new SoapServer($wsdl->getWSDLFilePath(), array('soap_version' => SOAP_1_1, 'encoding' => jApp::config()->charset));
            }
        }
        return $this->soapServer;
    }
public function getSoapServer ( $ wsdl = null ) { if ( is_null ( $ this -> soapServer ) ) { if ( is_null ( $ wsdl ) ) { $ this -> soapServer = new SoapServer ( null , array ( 'soap_version' => SOAP_1_1 , 'encoding' => jApp :: config ( ) -> charset , 'uri' => $ _SERVER [ 'PHP_SELF' ] ) ) ; } else { $ this -> soapServer = new SoapServer ( $ wsdl -> getWSDLFilePath ( ) , array ( 'soap_version' => SOAP_1_1 , 'encoding' => jApp :: config ( ) -> charset ) ) ; } } return $ this -> soapServer ; }
Init and return the soap server
Use wsdl mode or not depending of the wsdl object param
@param jWsdl $wsdl
@return SoapServer
Init and return the soap server Use wsdl mode or not depending of the wsdl object param