- Timestamp:
- Aug 28, 2008 3:03:25 PM (16 years ago)
- Branches:
- axis_example, compt_changes, info-ops, master, version-1.30, version-2.00, version-3.01, version-3.02
- Children:
- fca8740
- Parents:
- b234bb9
- Location:
- fedd
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd.py
rb234bb9 r2d5c8b6 123 123 fedid(cert=self.request.get_peer_cert())) 124 124 data = xmlrpclib.dumps((resp,), methodresponse=True) 125 #except Fault, f:126 # xf = xmlrpclib.Fault(f.code, f.string)127 # data = xmlrpclib.dumps(xf, methodresponse=True)128 # resp = None129 125 except xmlrpclib.Fault, f: 130 126 data = xmlrpclib.dumps(f, methodresponse=True) -
fedd/fedd_bindings.wsdl
rb234bb9 r2d5c8b6 32 32 </output> 33 33 <fault> 34 <soap:fault use="encoded" name="tns: RequestAccessFault"34 <soap:fault use="encoded" name="tns:FeddFault" 35 35 namespace="http://www.isi.edu/faber/fedd.wsdl" 36 36 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> … … 53 53 </output> 54 54 <fault> 55 <soap:fault use="encoded" name="tns: CreateFault"55 <soap:fault use="encoded" name="tns:FeddFault" 56 56 namespace="http://www.isi.edu/faber/fedd.wsdl" 57 57 encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"/> -
fedd/fedd_client.py
rb234bb9 r2d5c8b6 150 150 """ Print an error message and exit. 151 151 152 The dictionary contains the RequestAccessFaultBody elements."""152 The dictionary contains the FeddFaultBody elements.""" 153 153 codestr = "" 154 154 … … 328 328 except RuntimeError, e: 329 329 sys.exit("Bad response. %s" % e.message) 330 elif 'get_element_ RequestAccessFaultBody' in dir(resp):331 resp_body = resp.get_element_ RequestAccessFaultBody()330 elif 'get_element_FeddFaultBody' in dir(resp): 331 resp_body = resp.get_element_FeddFaultBody() 332 332 if resp_body != None: 333 333 exit_with_fault(unpack_soap(resp_body)) … … 346 346 resp, method = loads(resp) 347 347 except Error, e: 348 resp = { ' RequestAccessFaultBody': \348 resp = { 'FeddFaultBody': \ 349 349 { 'errstr' : e.faultCode, 'desc' : e.faultString } } 350 350 … … 358 358 except RuntimeError, e: 359 359 sys.exit("Bad response. %s" % e.messgae) 360 elif resp.has_key(' RequestAccessFaultBody'):361 exit_with_fault(resp[' RequestAccessFaultBody'])360 elif resp.has_key('FeddFaultBody'): 361 exit_with_fault(resp['FeddFaultBody']) 362 362 else: sys.exit("No body in response!?") 363 363 -
fedd/fedd_create_experiment.py
rb234bb9 r2d5c8b6 1091 1091 req = req.get('CreateRequestBody', None) 1092 1092 if not req: 1093 raise service_error(service_error.req uest,1093 raise service_error(service_error.req, 1094 1094 "Bad request format (no CreateRequestBody)") 1095 1095 # The tcl parser needs to read a file so put the content into that file -
fedd/fedd_messages.wsdl
rb234bb9 r2d5c8b6 34 34 <input message="tns:RequestAccessRequestMessage"/> 35 35 <output message="tns:RequestAccessResponseMessage"/> 36 <fault name="RequestAccessFault" 37 message="tns:FaultMessage"/> 36 <fault name="FeddFault" message="tns:FaultMessage"/> 38 37 </operation> 39 38 <operation name="Create"> … … 43 42 <input message="tns:CreateRequestMessage"/> 44 43 <output message="tns:CreateResponseMessage"/> 45 <fault name=" CreateFault" message="tns:FaultMessage"/>44 <fault name="FeddFault" message="tns:FaultMessage"/> 46 45 </operation> 47 46 </portType> -
fedd/fedd_proj.py
rb234bb9 r2d5c8b6 527 527 else: 528 528 # Build the fault 529 body = p_fault.get_element_ RequestAccessFaultBody()529 body = p_fault.get_element_FeddFaultBody() 530 530 if body != None: 531 531 raise service_error(body.get_element_code(), … … 753 753 de = ns0.faultType_Def( 754 754 (ns0.faultType_Def.schema, 755 " RequestAccessFaultBody")).pyclass()755 "FeddFaultBody")).pyclass() 756 756 de._code=e.code 757 757 de._errstr=e.code_string() -
fedd/parse_detail.py
rb234bb9 r2d5c8b6 17 17 class detail_faultType: 18 18 def __init__(self): 19 self. RequestAccessFaultBody = None19 self.FeddFaultBody = None 20 20 self.any = self 21 def get_element_ RequestAccessFaultBody(self):22 return self. RequestAccessFaultBody21 def get_element_FeddFaultBody(self): 22 return self.FeddFaultBody 23 23 24 24 # Override ZSI.fault.FaultType.typecode - give a parser that speaks our … … 30 30 URI(pname=(SOAP.ENV,'faultactor'), minOccurs=0), 31 31 Struct(pname='detail', aname='detail', 32 ofwhat=[ns0.faultType_Def((ns0.faultType_Def.schema, 33 "RequestAccessFaultBody"))], 32 ofwhat=[ns0.faultType_Def((ns0.faultType_Def.schema, "FeddFaultBody"))], 34 33 pyclass=detail_faultType, minOccurs=0), 35 34 ],
Note: See TracChangeset
for help on using the changeset viewer.