[837] | 1 | ##################################################
|
---|
| 2 | # file: VanHelsing_server.py
|
---|
| 3 | #
|
---|
| 4 | # skeleton generated by "ZSI.generate.wsdl2dispatch.ServiceModuleWriter"
|
---|
[855] | 5 | # /usr/local/bin/wsdl2py -b VanHelsing.wsdl
|
---|
[837] | 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 |
|
---|
[855] | 23 | setSimpleResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "setSimpleResource").pyclass
|
---|
[839] | 24 |
|
---|
[855] | 25 | setSimpleResourceResponse = GED("http://www.dass-it.de/VanHelsing/", "setSimpleResourceResponse").pyclass
|
---|
| 26 |
|
---|
| 27 |
|
---|
[837] | 28 | # Service Skeletons
|
---|
| 29 | class VanHelsing(ServiceSOAPBinding):
|
---|
| 30 | soapAction = {}
|
---|
| 31 | root = {}
|
---|
| 32 |
|
---|
| 33 | def __init__(self, post='/', **kw):
|
---|
| 34 | ServiceSOAPBinding.__init__(self, post)
|
---|
| 35 |
|
---|
| 36 | def soap_listResources(self, ps, **kw):
|
---|
| 37 | request = ps.Parse(listResourcesRequest.typecode)
|
---|
| 38 | return request,listResourcesResponse()
|
---|
| 39 |
|
---|
[839] | 40 | soapAction['http://www.dass-it.de/VanHelsing/listResources'] = 'soap_listResources'
|
---|
[837] | 41 | root[(listResourcesRequest.typecode.nspname,listResourcesRequest.typecode.pname)] = 'soap_listResources'
|
---|
| 42 |
|
---|
[839] | 43 | def soap_getSimpleResource(self, ps, **kw):
|
---|
| 44 | request = ps.Parse(getSimpleResourceRequest.typecode)
|
---|
| 45 | return request,getSimpleResourceResponse()
|
---|
| 46 |
|
---|
| 47 | soapAction['http://www.dass-it.de/VanHelsing/getResource'] = 'soap_getSimpleResource'
|
---|
| 48 | root[(getSimpleResourceRequest.typecode.nspname,getSimpleResourceRequest.typecode.pname)] = 'soap_getSimpleResource'
|
---|
| 49 |
|
---|
[855] | 50 | def soap_setSimpleResource(self, ps, **kw):
|
---|
| 51 | request = ps.Parse(setSimpleResourceRequest.typecode)
|
---|
| 52 | return request,setSimpleResourceResponse()
|
---|
| 53 |
|
---|
| 54 | soapAction['http://www.dass-it.de/VanHelsing/setResource'] = 'soap_setSimpleResource'
|
---|
| 55 | root[(setSimpleResourceRequest.typecode.nspname,setSimpleResourceRequest.typecode.pname)] = 'soap_setSimpleResource'
|
---|
| 56 |
|
---|