framework/web/services/CWsdlGenerator.php
public function generateWsdl($className, $serviceUrl, $encoding='UTF-8')
	{
		$this->operations=array();
		$this->types=array();
		$this->elements=array();
		$this->messages=array();
		if($this->serviceName===null)
			$this->serviceName=$className;
		if($this->namespace===null)
			$this->namespace='urn:'.str_replace('\\','/',$className).'wsdl';

		$reflection=new ReflectionClass($className);
		foreach($reflection->getMethods() as $method)
		{
			if($method->isPublic())
				$this->processMethod($method);
		}

		$wsdl=$this->buildDOM($serviceUrl,$encoding)->saveXML();

		if(isset($_GET['makedoc']))
			$this->buildHtmlDocs();

		return $wsdl;
	}
public function generateWsdl($className, $serviceUrl, $encoding='UTF-8')
	{
		$this->operations=array();
		$this->types=array();
		$this->elements=array();
		$this->messages=array();
		if($this->serviceName===null)
			$this->serviceName=$className;
		if($this->namespace===null)
			$this->namespace='urn:'.str_replace('\\','/',$className).'wsdl';

		$reflection=new ReflectionClass($className);
		foreach($reflection->getMethods() as $method)
		{
			if($method->isPublic())
				$this->processMethod($method);
		}

		$wsdl=$this->buildDOM($serviceUrl,$encoding)->saveXML();

		if(isset($_GET['makedoc']))
			$this->buildHtmlDocs();

		return $wsdl;
	}
public function generateWsdl ( $ className , $ serviceUrl , $ encoding = 'UTF-8' ) { $ this -> operations = array ( ) ; $ this -> types = array ( ) ; $ this -> elements = array ( ) ; $ this -> messages = array ( ) ; if ( $ this -> serviceName === null ) $ this -> serviceName = $ className ; if ( $ this -> namespace === null ) $ this -> namespace = 'urn:' . str_replace ( '\\' , '/' , $ className ) . 'wsdl' ; $ reflection = new ReflectionClass ( $ className ) ; foreach ( $ reflection -> getMethods ( ) as $ method ) { if ( $ method -> isPublic ( ) ) $ this -> processMethod ( $ method ) ; } $ wsdl = $ this -> buildDOM ( $ serviceUrl , $ encoding ) -> saveXML ( ) ; if ( isset ( $ _GET [ 'makedoc' ] ) ) $ this -> buildHtmlDocs ( ) ; return $ wsdl ; }
Generates the WSDL for the given class.
@param string $className class name
@param string $serviceUrl Web service URL
@param string $encoding encoding of the WSDL. Defaults to 'UTF-8'.
@return string the generated WSDL
Generates the WSDL for the given class .