[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 |
|
---|
| 19 |
|
---|
| 20 | # Service Skeletons
|
---|
| 21 | class VanHelsing(ServiceSOAPBinding):
|
---|
| 22 | soapAction = {}
|
---|
| 23 | root = {}
|
---|
| 24 |
|
---|
| 25 | def __init__(self, post='/', **kw):
|
---|
| 26 | ServiceSOAPBinding.__init__(self, post)
|
---|
| 27 |
|
---|
| 28 | def soap_listResources(self, ps, **kw):
|
---|
| 29 | request = ps.Parse(listResourcesRequest.typecode)
|
---|
| 30 | return request,listResourcesResponse()
|
---|
| 31 |
|
---|
| 32 | soapAction['http://localhost:8080/'] = 'soap_listResources'
|
---|
| 33 | root[(listResourcesRequest.typecode.nspname,listResourcesRequest.typecode.pname)] = 'soap_listResources'
|
---|
| 34 |
|
---|