Changeset 8555
- Timestamp:
- 04/19/08 15:00:28 (4 months ago)
- Files:
-
- plugins/ckWebServicePlugin/trunk/README (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/ckWebServicePlugin/trunk/README
r8503 r8555 150 150 {{{ 151 151 #!php 152 class fooActions extends sfActions 152 <?php 153 class fooActions extends sfActions 154 { 155 /** 156 * Executes index action 157 * 158 * @ws-enable 159 * @param string $test A string parameter 160 * 161 * @return string A string 162 */ 163 public function executeIndex() 153 164 { 154 /** 155 * Executes index action 156 * 157 * @ws-enable 158 * @param string $test A string parameter 159 * 160 * @return string A string 161 */ 162 public function executeIndex() 163 { 164 $this->result = 'Parameter $test='.$this->request->getParameter('test'); 165 166 //return what you want, the view rendering will be bypassed any way 167 return sfView::SUCCESS; 168 } 169 170 /** 171 * A method which will not be exposed in the wsdl. 172 * 173 * @param string $test A string parameter 174 * 175 * @return string A string 176 */ 177 public function executeBar() 178 { 179 $this->something = "some text!"; 180 } 165 $this->result = 'Parameter $test='.$this->request->getParameter('test'); 166 167 //return what you want, the view rendering will be bypassed any way 168 return sfView::SUCCESS; 181 169 } 170 171 /** 172 * A method which will not be exposed in the wsdl. 173 * 174 * @param string $test A string parameter 175 * 176 * @return string A string 177 */ 178 public function executeBar() 179 { 180 $this->something = "some text!"; 181 } 182 } 182 183 }}} 183 184 … … 229 230 {{{ 230 231 #!php 231 class mySoapHandler 232 <?php 233 class mySoapHandler 234 { 235 public function descriptiveFooMethod($foo, $bar) 232 236 { 233 public function descriptiveFooMethod($foo, $bar) 234 { 235 return sfContext::getInstance()->getController()->invokeSoapEnabledAction('fooModule', 'index', array($foo, $bar)); 236 } 237 return sfContext::getInstance()->getController()->invokeSoapEnabledAction('fooModule', 'index', array($foo, $bar)); 237 238 } 239 } 238 240 }}} 239 241