Changeset 826 for vanHelsing/trunk


Ignore:
Timestamp:
Feb 19, 2010, 5:24:59 PM (15 years ago)
Author:
slederer
Message:

weitere Tests mit ZSI

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vanHelsing/trunk/src/VanHelsingServer.py

    r824 r826  
    11from ZSI.ServiceContainer import ServiceContainer, SOAPRequestHandler
     2from ZSI.schema import LocalElementDeclaration, ElementDeclaration, TypeDefinition, GTD, GED
     3from VanHelsing_server import VanHelsing
    24
    3 from VanHelsing_server import VanHelsing
     5ResourceInfo= GTD("http://www.dass-it.de/VanHelsing/", "ResourceInfo")(None).pyclass()
     6print ResourceInfo
    47
    58class VanSOAPRequestHandler(SOAPRequestHandler):
     
    1619    sc.serve_forever()
    1720
     21
     22class 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
    1831if 1:
    19     AsServer(port=8080,services=[ VanHelsing() ], RequestHandlerClass=VanSOAPRequestHandler)
     32    AsServer(port=8080,services=[ RealVanHelsing() ], RequestHandlerClass=VanSOAPRequestHandler)
    2033
Note: See TracChangeset for help on using the changeset viewer.