[837] | 1 | ##################################################
|
---|
| 2 | # file: VanHelsing_server.py
|
---|
| 3 | #
|
---|
| 4 | # skeleton generated by "ZSI.generate.wsdl2dispatch.ServiceModuleWriter"
|
---|
| 5 | # /usr/bin/wsdl2py -b VanHelsing.wsdl
|
---|
| 6 | #
|
---|
| 7 | ##################################################
|
---|
| 8 |
|
---|
| 9 | from ZSI.schema import GED, GTD
|
---|
| 10 | from ZSI.TCcompound import ComplexType, Struct
|
---|
| 11 | from VanHelsing_types import *
|
---|
| 12 | from ZSI.ServiceContainer import ServiceSOAPBinding
|
---|
| 13 |
|
---|
| 14 | # Messages
|
---|
| 15 | listResourcesRequest = GED("http://www.dass-it.de/VanHelsing/", "listResources").pyclass
|
---|
| 16 |
|
---|
| 17 | listResourcesResponse = GED("http://www.dass-it.de/VanHelsing/", "listResourcesResponse").pyclass
|
---|
| 18 |
|
---|
[839] | 19 | getSimpleResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "getSimpleResource").pyclass
|
---|
[837] | 20 |
|
---|
[839] | 21 | getSimpleResourceResponse = GED("http://www.dass-it.de/VanHelsing/", "getSimpleResourceResponse").pyclass
|
---|
| 22 |
|
---|
| 23 |
|
---|
[837] | 24 | # Service Skeletons
|
---|
| 25 | class VanHelsing(ServiceSOAPBinding):
|
---|
| 26 | soapAction = {}
|
---|
| 27 | root = {}
|
---|
| 28 |
|
---|
| 29 | def __init__(self, post='/', **kw):
|
---|
| 30 | ServiceSOAPBinding.__init__(self, post)
|
---|
| 31 |
|
---|
| 32 | def soap_listResources(self, ps, **kw):
|
---|
| 33 | request = ps.Parse(listResourcesRequest.typecode)
|
---|
| 34 | return request,listResourcesResponse()
|
---|
| 35 |
|
---|
[839] | 36 | soapAction['http://www.dass-it.de/VanHelsing/listResources'] = 'soap_listResources'
|
---|
[837] | 37 | root[(listResourcesRequest.typecode.nspname,listResourcesRequest.typecode.pname)] = 'soap_listResources'
|
---|
| 38 |
|
---|
[839] | 39 | def soap_getSimpleResource(self, ps, **kw):
|
---|
| 40 | request = ps.Parse(getSimpleResourceRequest.typecode)
|
---|
| 41 | return request,getSimpleResourceResponse()
|
---|
| 42 |
|
---|
| 43 | soapAction['http://www.dass-it.de/VanHelsing/getResource'] = 'soap_getSimpleResource'
|
---|
| 44 | root[(getSimpleResourceRequest.typecode.nspname,getSimpleResourceRequest.typecode.pname)] = 'soap_getSimpleResource'
|
---|
| 45 |
|
---|