##################################################
# file: VanHelsing_server.py
#
# skeleton generated by "ZSI.generate.wsdl2dispatch.ServiceModuleWriter"
#      /usr/bin/wsdl2py -b VanHelsing.wsdl
#
##################################################

from ZSI.schema import GED, GTD
from ZSI.TCcompound import ComplexType, Struct
from VanHelsing_types import *
from ZSI.ServiceContainer import ServiceSOAPBinding

# Messages  
listResourcesRequest = GED("http://www.dass-it.de/VanHelsing/", "listResources").pyclass

listResourcesResponse = GED("http://www.dass-it.de/VanHelsing/", "listResourcesResponse").pyclass

getSimpleResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "getSimpleResource").pyclass

getSimpleResourceResponse = GED("http://www.dass-it.de/VanHelsing/", "getSimpleResourceResponse").pyclass


# Service Skeletons
class VanHelsing(ServiceSOAPBinding):
    soapAction = {}
    root = {}

    def __init__(self, post='/', **kw):
        ServiceSOAPBinding.__init__(self, post)

    def soap_listResources(self, ps, **kw):
        request = ps.Parse(listResourcesRequest.typecode)
        return request,listResourcesResponse()

    soapAction['http://www.dass-it.de/VanHelsing/listResources'] = 'soap_listResources'
    root[(listResourcesRequest.typecode.nspname,listResourcesRequest.typecode.pname)] = 'soap_listResources'

    def soap_getSimpleResource(self, ps, **kw):
        request = ps.Parse(getSimpleResourceRequest.typecode)
        return request,getSimpleResourceResponse()

    soapAction['http://www.dass-it.de/VanHelsing/getResource'] = 'soap_getSimpleResource'
    root[(getSimpleResourceRequest.typecode.nspname,getSimpleResourceRequest.typecode.pname)] = 'soap_getSimpleResource'

