source: vanHelsing/trunk/src/VanHelsing_server.py@ 859

Last change on this file since 859 was 855, checked in by tobias, on Mar 26, 2010 at 6:42:38 PM

node replacement added.

File size: 2.3 KB
Line 
1##################################################
2# file: VanHelsing_server.py
3#
4# skeleton generated by "ZSI.generate.wsdl2dispatch.ServiceModuleWriter"
5# /usr/local/bin/wsdl2py -b 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
27
28# Service Skeletons
29class 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
40 soapAction['http://www.dass-it.de/VanHelsing/listResources'] = 'soap_listResources'
41 root[(listResourcesRequest.typecode.nspname,listResourcesRequest.typecode.pname)] = 'soap_listResources'
42
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
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
Note: See TracBrowser for help on using the repository browser.