implementing soap.. soap soap soap
[glcas.git] / www / soap.php
1 <?php
2 require_once("../lib/lib.php");
3
4 $soapFunctions["status"] = "status";
5 global $soapFunctions;
6
7 function status()
8 {
9         return "im good";
10 }
11
12 if(isset($_REQUEST["wsdl"])) {
13         generateWSDL();
14         exit(0);
15 }
16
17 if(isset($_REQUEST["xsd"])) {
18         //generateXSD();
19         exit(0);
20 }
21
22 function generageWSDL()
23 {
24         
25 }
26
27 $s = new SoapServer(NULL, array( "uri" => "http://pjr.cc/glcas"));
28
29 foreach($soapFunctions as $function) {
30         $s->addFunction($function);
31 }
32
33 print_r($s->getFunctions());
34
35
36 ?>