implementing soap.. soap soap soap
[glcas.git] / www / soap.php
diff --git a/www/soap.php b/www/soap.php
new file mode 100644 (file)
index 0000000..454c201
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+require_once("../lib/lib.php");
+
+$soapFunctions["status"] = "status";
+global $soapFunctions;
+
+function status()
+{
+       return "im good";
+}
+
+if(isset($_REQUEST["wsdl"])) {
+       generateWSDL();
+       exit(0);
+}
+
+if(isset($_REQUEST["xsd"])) {
+       //generateXSD();
+       exit(0);
+}
+
+function generageWSDL()
+{
+       
+}
+
+$s = new SoapServer(NULL, array( "uri" => "http://pjr.cc/glcas"));
+
+foreach($soapFunctions as $function) {
+       $s->addFunction($function);
+}
+
+print_r($s->getFunctions());
+
+
+?>
\ No newline at end of file