summaryrefslogtreecommitdiff
path: root/demos/soap/protected/webservices/SimpleService.php
diff options
context:
space:
mode:
authorxue <>2007-01-02 01:06:20 +0000
committerxue <>2007-01-02 01:06:20 +0000
commitf7c5eb1d28973e7380cc532c6347723b84ab19a5 (patch)
treec6aa733eb0c3196dbbbb7bf9fd5990e5a732106e /demos/soap/protected/webservices/SimpleService.php
parente944138b52b1eaffa669a322de5802840cde9387 (diff)
Fixed SOAP demo.
Diffstat (limited to 'demos/soap/protected/webservices/SimpleService.php')
-rw-r--r--demos/soap/protected/webservices/SimpleService.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/demos/soap/protected/webservices/SimpleService.php b/demos/soap/protected/webservices/SimpleService.php
index 9aecbfad..ca082152 100644
--- a/demos/soap/protected/webservices/SimpleService.php
+++ b/demos/soap/protected/webservices/SimpleService.php
@@ -1,8 +1,7 @@
<?php
+
class SimpleService
{
- private $errors = array();
-
/**
* Highlights a string as php code
* @param string $input The php code to highlight
@@ -13,7 +12,7 @@ class SimpleService
{
return highlight_string($input, true);
}
-
+
/**
* Simply add two operands
* @param int $a
@@ -21,8 +20,10 @@ class SimpleService
* @return int The result
* @soapmethod
*/
- public function add($a, $b) {
- return $a + $b;
+ public function add($a, $b)
+ {
+ return $a + $b;
}
}
+
?> \ No newline at end of file