First go at wsdl generator for SFA
[sfa.git] / wsdl / apistub.py
diff --git a/wsdl/apistub.py b/wsdl/apistub.py
new file mode 100644 (file)
index 0000000..fdd96bc
--- /dev/null
@@ -0,0 +1,12 @@
+import geni.methods
+
+
+methods = geni.methods.all
+
+def callable(method):
+    classname = method.split(".")[-1]
+    module = __import__("geni.methods." + method, globals(), locals(), [classname])
+    callablemethod = getattr(module, classname)(None)
+    return getattr(module, classname)(None)
+
+