title: How to create web services in yii?
body: <p>I am new to Yii framework, so need some help to rewrite my php/soap web services in yii.
  I have found out that Yii provides CWebService for this purposes.</p>
  
  <p>I have created soap server like this before:</p>
  
  <pre><code>$server = new SoapServer("WebServiceWSDL.wsdl");
  
  $server-&gt;addFunction('myfunction');
  
  $server-&gt;handle();
  
  function myfunction(){ ...
  }
  </code></pre>
  
  <p>How can I use CWebService?
  Some assistance with simple example would be useful to get started.</p>