Changeset bb3769a for fedd/fedd_client.py
- Timestamp:
- Jul 16, 2008 11:28:14 AM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- 0c0b13c
- Parents:
- 0a47d52
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd_client.py
r0a47d52 rbb3769a 13 13 from xmlrpclib import ServerProxy, Error, dumps, loads 14 14 from ZSI import SoapWriter 15 from ZSI.TC import QName, String, URI, AnyElement, UNBOUNDED, Any 16 from ZSI.wstools.Namespaces import SOAP 17 from ZSI.fault import FaultType, Detail 15 18 16 19 import xmlrpclib … … 20 23 21 24 from optparse import OptionParser, OptionValueError 25 26 import parse_detail 22 27 23 28 # Turn off the matching of hostname to certificate ID … … 269 274 if opts.debug > 1: print >>sys.stderr, msg 270 275 276 print FaultType.typecode; 277 271 278 if opts.transport == "soap": 272 279 loc = feddServiceLocator(); … … 292 299 sys.exit("Malformed response (XMLPRC?): %s" % e) 293 300 except ZSI.FaultException, e: 294 sys.exit("Fault: %s" % e) 301 print dir(e.fault.detail[0]) 302 print e.fault.detail[0].RequestAccessFaultBody.get_element_code() 303 d = unpack_soap(e.fault.detail[0].get_element_RequestAccessFaultBody()) 304 f = unpack_soap(e.fault.detail[0]) 305 print "unpack ", d 306 print "unpack ", f 307 sys.exit("Fault: %s %s" % (str(e.fault.code), str(e.fault.string))) 295 308 296 309
Note: See TracChangeset
for help on using the changeset viewer.