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

Last change on this file since 837 was 837, checked in by slederer, on Mar 12, 2010 at 3:34:41 PM

WSDL-Definition geändert (Element resourceList in resource umbenannt)

File size: 1.1 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
19
20# Service Skeletons
21class 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
Note: See TracBrowser for help on using the repository browser.