Changeset 666
- Timestamp:
- 05/08/07 22:37:35 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/examples/json-rpc/index.php
r659 r666 72 72 73 73 <fieldset> 74 <legend>Exceptions</legend> 75 <input type="button" onclick="math.throwException();" value="Throw an exception on the server"/> 76 </fieldset> 77 78 <fieldset> 74 79 <legend>Stateful JSON-RPC example</legend> 75 80 Name: <input type="text" id="name" size="20"/><br/> trunk/src/main/php/net/stubbles/examples/service/MathService.php
r598 r666 20 20 return $a+$b; 21 21 } 22 23 /** 24 * Method to throw an exception 25 * 26 * @WebMethod 27 */ 28 public function throwException() { 29 throw new stubException("This exception is intended."); 30 } 22 31 } 23 32 ?>
