summaryrefslogtreecommitdiff
path: root/frameworks/middleware/examples/soap/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'frameworks/middleware/examples/soap/client.py')
-rwxr-xr-xframeworks/middleware/examples/soap/client.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/frameworks/middleware/examples/soap/client.py b/frameworks/middleware/examples/soap/client.py
new file mode 100755
index 0000000..9cd35f2
--- /dev/null
+++ b/frameworks/middleware/examples/soap/client.py
@@ -0,0 +1,11 @@
+#!/usr/bin/python
+
+from datetime import datetime
+from ZSI.client import Binding
+
+b = Binding(url='http://localhost:8000/')
+t = b.today (5)
+# t = 2014-02-18 15:59:50.571927
+conv = datetime.strptime (t, "%Y-%m-%d %H:%M:%S.%f")
+print "Today: %s" % conv.strftime ("%d.%m.%Y, %H:%M")
+print b.load ("string")