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

Last change on this file since 842 was 839, checked in by slederer, on Mar 12, 2010 at 5:11:50 PM

neue SOAP-Operation getSimpleResource implementiert

File size: 1.7 KB
Line 
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
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
23
24# Service Skeletons
25class 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
36 soapAction['http://www.dass-it.de/VanHelsing/listResources'] = 'soap_listResources'
37 root[(listResourcesRequest.typecode.nspname,listResourcesRequest.typecode.pname)] = 'soap_listResources'
38
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
Note: See TracBrowser for help on using the repository browser.