[XML-SIG] Document style SOAP Web Service with ZSI (docstyle)

Rich Salz rsalz at datapower.com
Fri Sep 12 10:32:28 EDT 2003


> I want to return and XML document back to the client and I can't figure 
> it out.

> #!/usr/bin/python
> ####  client.py
> 
> import sys
> 
> #Import the ZSI client
> from ZSI.client import Binding
> import sys
> fp = sys.stdout
> u = ''
> n = 'http://uche.ogbuji.net/eg/ws/simple-cal'
> b = Binding(url=u, ns=n, host='localhost', port=4444, tracefile=fp)
> 
> result = b.getExample()
> print result[0]

That example's not complete; where's "getExample()" for example?

Anyhow, if you're sending docstyle as opposed to soap-rpc, then you want 
to do something like
     b = Binding....
     b.Send(...parameters...)
     result = b.ReceiveSoap().body

-- 
Rich Salz, Chief Security Architect
DataPower Technology                           http://www.datapower.com
XS40 XML Security Gateway   http://www.datapower.com/products/xs40.html
XML Security Overview  http://www.datapower.com/xmldev/xmlsecurity.html




More information about the XML-SIG mailing list