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

Keith Jackson krjackson at lbl.gov
Thu Sep 11 17:17:09 EDT 2003


Alexis,
I'm at a conference and can't get to an example right now. you should 
post this question on the pywebsvcs mailing list. 
pywebsvcs-talk at lists.sourceforge.net
--keith

On Thursday, September 11, 2003, at 03:50 PM, Alexis Marrero-Narváez 
wrote:

> All,
>
> Are there any examples of creating a SOAP WS docstyle with ZSI? All I 
> read and get from the documentation is
>
> dispatch.AsServer(docstyle=1, port=4444) , since docstyle is 1 then 
> the SOAP message is sent to the invoked method as an DOM node.
>
> I want to return and XML document back to the client and I can't 
> figure it out. Below is what I have so far. When executing the client 
> receives a SOAP server fault  'interate on non-sequence'.
>
> Any pointers?
>
> Regards,
> amn
>
> ----------------
> #!/usr/bin/python
> #### server.py
>
> from xml.dom import minidom
>
> from ZSI import dispatch
>
> def getExample(input):
>     doc = minidom.parse('example.xml')
>     return doc.firstChild
>
> dispatch.AsServer(docstyle=1, port=4444)
>
>
> #!/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]
> ----------------
>
>
> <amn url="http://www.recipiente.com/"/>
>
>
>
> _______________________________________________
> XML-SIG maillist  -  XML-SIG at python.org
> http://mail.python.org/mailman/listinfo/xml-sig




More information about the XML-SIG mailing list