diff options
| author | Jan Altenberg <jan@linutronix.de> | 2014-05-28 09:59:44 +0200 |
|---|---|---|
| committer | Jan Altenberg <jan@linutronix.de> | 2014-05-28 09:59:44 +0200 |
| commit | aa917ad3ea5d20f1d2eed18e188f999206805ced (patch) | |
| tree | 28b6821452945f42f475baed5b79ef0e9810930c /frameworks/middleware/examples/soap/client.py | |
| parent | cf0a003df645cec7f4f8405f9f03402b9dcf050e (diff) | |
| parent | 541d5387d74bc185fd95124b1c9071748c859914 (diff) | |
Merge branch 'master' into kconfig_jan
Diffstat (limited to 'frameworks/middleware/examples/soap/client.py')
| -rwxr-xr-x | frameworks/middleware/examples/soap/client.py | 13 |
1 files changed, 13 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..5151234 --- /dev/null +++ b/frameworks/middleware/examples/soap/client.py @@ -0,0 +1,13 @@ +#!/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") |
