##################################################
# file: VanHelsing_server.py
#
# skeleton generated by "ZSI.generate.wsdl2dispatch.ServiceModuleWriter"
#      /home/tgoecke/ZSI-2.1-a1/scripts/wsdl2py --complexType /home/tgoecke/vanHelsing/trunk/src/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

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

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

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

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

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

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

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

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

deleteResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "deleteResource").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'

    def soap_setSimpleResource(self, ps, **kw):
        request = ps.Parse(setSimpleResourceRequest.typecode)
        return request,setSimpleResourceResponse()

    soapAction['http://www.dass-it.de/VanHelsing/setResource'] = 'soap_setSimpleResource'
    root[(setSimpleResourceRequest.typecode.nspname,setSimpleResourceRequest.typecode.pname)] = 'soap_setSimpleResource'

    def soap_createSimpleResource(self, ps, **kw):
        request = ps.Parse(createSimpleResourceRequest.typecode)
        return request,createSimpleResourceResponse()

    soapAction['http://www.dass-it.de/VanHelsing/createSimpleResource'] = 'soap_createSimpleResource'
    root[(createSimpleResourceRequest.typecode.nspname,createSimpleResourceRequest.typecode.pname)] = 'soap_createSimpleResource'

    def soap_createFileSetResource(self, ps, **kw):
        request = ps.Parse(createFileSetResourceRequest.typecode)
        return request,createFileSetResourceResponse()

    soapAction['http://www.dass-it.de/VanHelsing/createFileSetResource'] = 'soap_createFileSetResource'
    root[(createFileSetResourceRequest.typecode.nspname,createFileSetResourceRequest.typecode.pname)] = 'soap_createFileSetResource'

    def soap_setFileSetResource(self, ps, **kw):
        request = ps.Parse(setFileSetResourceRequest.typecode)
        return request,setFileSetResourceResponse()

    soapAction['http://www.dass-it.de/VanHelsing/setFileSetResource'] = 'soap_setFileSetResource'
    root[(setFileSetResourceRequest.typecode.nspname,setFileSetResourceRequest.typecode.pname)] = 'soap_setFileSetResource'

    def soap_deleteResource(self, ps, **kw):
        request = ps.Parse(deleteResourceRequest.typecode)
        # NO output
        return request,None

    soapAction['http://www.dass-it.de/VanHelsing/deleteResource'] = 'soap_deleteResource'
    root[(deleteResourceRequest.typecode.nspname,deleteResourceRequest.typecode.pname)] = 'soap_deleteResource'

