SHARE
TWEET

Untitled

seberm Sep 12th, 2011 41 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. final class model {
  4.    
  5.     /**
  6.      * @return integer
  7.      */
  8.     public function number() {
  9.  
  10.         return 12345;
  11.     }
  12.  
  13.  
  14.     /**
  15.      * @return string
  16.      */
  17.     public function str() {
  18.  
  19.         return "some string";
  20.     }
  21.  
  22.    
  23.     /** Test params
  24.      * @return string
  25.      */
  26.     public function param($some) {
  27.  
  28.         return "Your params are: ".$some;
  29.     }
  30.  
  31.  
  32.     /**
  33.      * @return boolean
  34.      */
  35.     public function bool() {
  36.  
  37.         return true;
  38.     }
  39. };
  40.  
  41.  
  42. // First arg is NULL, because we're working in non-WSDL mode
  43. $server = new SoapServer(NULL, array("uri" => "http://bio.seberm.com/"));
  44.  
  45. $server->setClass("model");
  46. $server->handle();
RAW Paste Data
Top