source: TI12-security/trunk/python/Tests/etreewss/client/soapcreate.py @ 4024

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/etreewss/client/soapcreate.py@4692
Revision 4024, 380 bytes checked in by pjkersha, 12 years ago (diff)

Integration of ElementTree with C14N into ZSI's ElementProxy? interface class.

Line 
1from elementtree import ElementTree, ElementC14N
2from StringIO import StringIO
3
4soapNSURI = 'http://schemas.xmlsoap.org/soap/envelope/'
5env = ElementTree.Element("{%s}SOAP-ENV:Envelope" % soapNSURI)
6hdr = ElementTree.Element("{%s}SOAP-ENV:Header" % soapNSURI)
7env.append(hdr)
8root = ElementTree.ElementTree(element=env)
9f = StringIO()
10ElementC14N.write(root, f)
11print f.getvalue()
Note: See TracBrowser for help on using the repository browser.