1 | <?php |
||
10 | class SapphireSoapServer extends Controller |
||
|
|||
11 | { |
||
12 | /** |
||
13 | * @var array Map of method name to arguments. |
||
14 | */ |
||
15 | private static $methods = array(); |
||
16 | |||
17 | /** |
||
18 | * @var array |
||
19 | */ |
||
20 | private static $xsd_types = array( |
||
21 | 'int' => 'xsd:int', |
||
22 | 'boolean' => 'xsd:boolean', |
||
23 | 'string' => 'xsd:string', |
||
24 | 'binary' => 'xsd:base64Binary', |
||
25 | ); |
||
26 | |||
27 | private static $allowed_actions = array( |
||
28 | 'index', |
||
29 | 'wsdl', |
||
30 | ); |
||
31 | |||
32 | public function wsdl() |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getWSDLURL() |
||
46 | |||
47 | /** |
||
48 | * @return SS_List Collection of ArrayData elements describing |
||
49 | * the method (keys: 'Name', 'Arguments', 'ReturnType') |
||
50 | */ |
||
51 | public function Methods() |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function TargetNamespace() |
||
83 | |||
84 | /** |
||
85 | * @return string |
||
86 | */ |
||
87 | public function ServiceURL() |
||
91 | |||
92 | public function index() |
||
106 | } |
||
107 |
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.