ZSI and faults

C

CSG

Dear All,

I'm very new to python/ZSI and have a (simple) query to ask. I have a
simple client:

from ZSI.client import Binding
fp=open('debug.out','w')
b=Binding(url='somewhere',tracefile=fp)
print b.connect('usename')
fp.close()

and a server of

from ZSI import *
import sys

def connect(usename):
try:
<something that fails>
except Exception,e:
<write the Exception in the SOAP message back to client>
sys.exit(1)


The trouble I'm having is with the <write the Exception in the SOAP
message bit>. I've tried things like:

FaultFromException(e,0).AsSOAP(sys.stdout)
or
f=Fault()
f.code="some message"

with no success.

Any suggestions

Many thanks

Colin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,228
Latest member
MikeMichal

Latest Threads

Top