Changeset dab4d56
- Timestamp:
- Nov 19, 2008 7:23:51 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:
- c922f23
- Parents:
- f8582c9
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
fedd/fedd.py
rf8582c9 rdab4d56 107 107 self.wfile.write(text) 108 108 self.wfile.flush() 109 self.request.socket.close() 109 110 110 111 def send_fault(self, f, code=500): 111 112 """Send a SOAP encoded fault as reply""" 112 print f113 113 self.send_xml(f.AsSOAP(processContents="lax"), code) 114 114 … … 207 207 self.wfile.write(text) 208 208 self.wfile.flush() 209 # Make sure to close the socket when we're done 210 self.request.socket.close() 209 211 210 212 def do_POST(self): … … 214 216 data = None 215 217 method = None 218 code = 200 216 219 cl = int(self.headers['content-length']) 217 220 data = self.rfile.read(cl) … … 222 225 data = xmlrpclib.dumps(xmlrpclib.Fault("Client", 223 226 "Malformed request"), methodresponse=True) 224 227 code = 500 228 225 229 if method != None: 226 230 try: … … 232 236 data = xmlrpclib.dumps(f, methodresponse=True) 233 237 resp = None 234 self.send_xml(data) 238 code = 500 239 240 self.send_xml(data, code) 235 241 236 242 def log_request(self, code=0, size=0):
Note: See TracChangeset
for help on using the changeset viewer.