Changeset 826 for vanHelsing/trunk/src/VanHelsingServer.py
- Timestamp:
- Feb 19, 2010, 5:24:59 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
vanHelsing/trunk/src/VanHelsingServer.py
r824 r826 1 1 from ZSI.ServiceContainer import ServiceContainer, SOAPRequestHandler 2 from ZSI.schema import LocalElementDeclaration, ElementDeclaration, TypeDefinition, GTD, GED 3 from VanHelsing_server import VanHelsing 2 4 3 from VanHelsing_server import VanHelsing 5 ResourceInfo= GTD("http://www.dass-it.de/VanHelsing/", "ResourceInfo")(None).pyclass() 6 print ResourceInfo 4 7 5 8 class VanSOAPRequestHandler(SOAPRequestHandler): … … 16 19 sc.serve_forever() 17 20 21 22 class RealVanHelsing(VanHelsing): 23 def soap_listResources(self, ps, **kw): 24 request,response=VanHelsing.soap_listResources(self,ps) 25 resInf=ResourceInfo() 26 response._resourceList=[ resInf ] 27 28 print response._resourceList 29 return request,response 30 18 31 if 1: 19 AsServer(port=8080,services=[ VanHelsing() ], RequestHandlerClass=VanSOAPRequestHandler)32 AsServer(port=8080,services=[ RealVanHelsing() ], RequestHandlerClass=VanSOAPRequestHandler) 20 33
Note:
See TracChangeset
for help on using the changeset viewer.