source: vanHelsing/trunk/webservice/VanHelsing_server.py@ 1149

Last change on this file since 1149 was 861, checked in by tobias, on Apr 13, 2010 at 5:48:55 PM

new resource operation and fault messages added

File size: 4.6 KB
Line 
1##################################################
2# file: VanHelsing_server.py
3#
4# skeleton generated by "ZSI.generate.wsdl2dispatch.ServiceModuleWriter"
5# /home/tgoecke/ZSI-2.1-a1/scripts/wsdl2py --complexType /home/tgoecke/vanHelsing/trunk/src/VanHelsing.wsdl
6#
7##################################################
8
9from ZSI.schema import GED, GTD
10from ZSI.TCcompound import ComplexType, Struct
11from VanHelsing_types import *
12from ZSI.ServiceContainer import ServiceSOAPBinding
13
14# Messages
15listResourcesRequest = GED("http://www.dass-it.de/VanHelsing/", "listResources").pyclass
16
17listResourcesResponse = GED("http://www.dass-it.de/VanHelsing/", "listResourcesResponse").pyclass
18
19getSimpleResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "getSimpleResource").pyclass
20
21getSimpleResourceResponse = GED("http://www.dass-it.de/VanHelsing/", "getSimpleResourceResponse").pyclass
22
23setSimpleResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "setSimpleResource").pyclass
24
25setSimpleResourceResponse = GED("http://www.dass-it.de/VanHelsing/", "setSimpleResourceResponse").pyclass
26
27createSimpleResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "createSimpleResource").pyclass
28
29createSimpleResourceResponse = GED("http://www.dass-it.de/VanHelsing/", "createSimpleResourceResponse").pyclass
30
31createFileSetResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "createFileSetResource").pyclass
32
33createFileSetResourceResponse = GED("http://www.dass-it.de/VanHelsing/", "createFileSetResourceResponse").pyclass
34
35setFileSetResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "setFileSetResource").pyclass
36
37setFileSetResourceResponse = GED("http://www.dass-it.de/VanHelsing/", "setFileSetResourceResponse").pyclass
38
39deleteResourceRequest = GED("http://www.dass-it.de/VanHelsing/", "deleteResource").pyclass
40
41
42# Service Skeletons
43class VanHelsing(ServiceSOAPBinding):
44 soapAction = {}
45 root = {}
46
47 def __init__(self, post='/', **kw):
48 ServiceSOAPBinding.__init__(self, post)
49
50 def soap_listResources(self, ps, **kw):
51 request = ps.Parse(listResourcesRequest.typecode)
52 return request,listResourcesResponse()
53
54 soapAction['http://www.dass-it.de/VanHelsing/listResources'] = 'soap_listResources'
55 root[(listResourcesRequest.typecode.nspname,listResourcesRequest.typecode.pname)] = 'soap_listResources'
56
57 def soap_getSimpleResource(self, ps, **kw):
58 request = ps.Parse(getSimpleResourceRequest.typecode)
59 return request,getSimpleResourceResponse()
60
61 soapAction['http://www.dass-it.de/VanHelsing/getResource'] = 'soap_getSimpleResource'
62 root[(getSimpleResourceRequest.typecode.nspname,getSimpleResourceRequest.typecode.pname)] = 'soap_getSimpleResource'
63
64 def soap_setSimpleResource(self, ps, **kw):
65 request = ps.Parse(setSimpleResourceRequest.typecode)
66 return request,setSimpleResourceResponse()
67
68 soapAction['http://www.dass-it.de/VanHelsing/setResource'] = 'soap_setSimpleResource'
69 root[(setSimpleResourceRequest.typecode.nspname,setSimpleResourceRequest.typecode.pname)] = 'soap_setSimpleResource'
70
71 def soap_createSimpleResource(self, ps, **kw):
72 request = ps.Parse(createSimpleResourceRequest.typecode)
73 return request,createSimpleResourceResponse()
74
75 soapAction['http://www.dass-it.de/VanHelsing/createSimpleResource'] = 'soap_createSimpleResource'
76 root[(createSimpleResourceRequest.typecode.nspname,createSimpleResourceRequest.typecode.pname)] = 'soap_createSimpleResource'
77
78 def soap_createFileSetResource(self, ps, **kw):
79 request = ps.Parse(createFileSetResourceRequest.typecode)
80 return request,createFileSetResourceResponse()
81
82 soapAction['http://www.dass-it.de/VanHelsing/createFileSetResource'] = 'soap_createFileSetResource'
83 root[(createFileSetResourceRequest.typecode.nspname,createFileSetResourceRequest.typecode.pname)] = 'soap_createFileSetResource'
84
85 def soap_setFileSetResource(self, ps, **kw):
86 request = ps.Parse(setFileSetResourceRequest.typecode)
87 return request,setFileSetResourceResponse()
88
89 soapAction['http://www.dass-it.de/VanHelsing/setFileSetResource'] = 'soap_setFileSetResource'
90 root[(setFileSetResourceRequest.typecode.nspname,setFileSetResourceRequest.typecode.pname)] = 'soap_setFileSetResource'
91
92 def soap_deleteResource(self, ps, **kw):
93 request = ps.Parse(deleteResourceRequest.typecode)
94 # NO output
95 return request,None
96
97 soapAction['http://www.dass-it.de/VanHelsing/deleteResource'] = 'soap_deleteResource'
98 root[(deleteResourceRequest.typecode.nspname,deleteResourceRequest.typecode.pname)] = 'soap_deleteResource'
99
Note: See TracBrowser for help on using the repository browser.