Prado\Web\Services\TSoapServer::getWsdl PHP Метод

getWsdl() публичный Метод

If {@link getWsdlUri WsdlUri} is set, its content will be returned. If not, the {@link setProvider Provider} class will be investigated and the WSDL will be automatically genearted.
public getWsdl ( ) : string
Результат string the WSDL content of the SOAP server
    public function getWsdl()
    {
        if ($this->_wsdlUri === '') {
            $provider = $this->getProvider();
            $providerClass = ($pos = strrpos($provider, '.')) !== false ? substr($provider, $pos + 1) : $provider;
            Prado::using($provider);
            if ($this->getApplication()->getMode() === TApplicationMode::Performance && ($cache = $this->getApplication()->getCache()) !== null) {
                $wsdl = $cache->get(self::WSDL_CACHE_PREFIX . $providerClass);
                if (is_string($wsdl)) {
                    return $wsdl;
                }
                $wsdl = WsdlGenerator::generate($providerClass, $this->getUri(), $this->getEncoding());
                $cache->set(self::WSDL_CACHE_PREFIX . $providerClass, $wsdl);
                return $wsdl;
            } else {
                return WsdlGenerator::generate($providerClass, $this->getUri(), $this->getEncoding());
            }
        } else {
            return file_get_contents($this->_wsdlUri);
        }
    }