Moving the old code aside into the archive as i begin a new
[glcas.git] / archive / v1 / unittests / soaptest.php
diff --git a/archive/v1/unittests/soaptest.php b/archive/v1/unittests/soaptest.php
new file mode 100644 (file)
index 0000000..f72318f
--- /dev/null
@@ -0,0 +1,17 @@
+<?php
+require_once("../lib/lib.php");
+
+ini_set("soap.wsdl_cache_enabled", "0");
+
+$client = new SoapClient("https://localhost/src/eclipse-workspace/glcas/www/soap.php?wsdl", array("trace" => 1));
+
+print_r($client->__getFunctions());
+
+$mk = new dataContainer();
+$mk->stringpass[0] = "mix";
+$mk->stringpass[1] = "me";
+
+$lk = $client->status($mk);
+
+print_r($lk);
+?>
\ No newline at end of file