source: TI12-security/trunk/python/Tests/dewsGatekeeper/Gatekeeper_services_types.py @ 1957

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/dewsGatekeeper/Gatekeeper_services_types.py@1957
Revision 1957, 2.8 KB checked in by pjkersha, 13 years ago (diff)

Example code for Geoserver Gatekeeper web service interface for DEWS.

Line 
1##################################################
2# Gatekeeper_services_types.py
3# generated by ZSI.generate.wsdl2python
4##################################################
5
6
7import ZSI
8import ZSI.TCcompound
9from ZSI.schema import LocalElementDeclaration, ElementDeclaration, TypeDefinition, GTD, GED
10from ZSI.generate.pyclass import pyclass_type
11
12##############################
13# targetNamespace
14# ndg:security:Gatekeeper
15##############################
16
17class ns0:
18    targetNamespace = "ndg:security:Gatekeeper"
19
20    class get_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
21        literal = "get"
22        schema = "ndg:security:Gatekeeper"
23        def __init__(self, **kw):
24            ns = ns0.get_Dec.schema
25            TClist = [ZSI.TC.String(pname="userX509Cert", aname="_userX509Cert", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="userAttributeCertificate", aname="_userAttributeCertificate", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded")), ZSI.TC.String(pname="geoserverRequest", aname="_geoserverRequest", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
26            kw["pname"] = ("ndg:security:Gatekeeper","get")
27            kw["aname"] = "_get"
28            self.attribute_typecode_dict = {}
29            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
30            class Holder:
31                __metaclass__ = pyclass_type
32                typecode = self
33                def __init__(self):
34                    # pyclass
35                    self._userX509Cert = None
36                    self._userAttributeCertificate = None
37                    self._geoserverRequest = None
38                    return
39            Holder.__name__ = "get_Holder"
40            self.pyclass = Holder
41
42    class getResponse_Dec(ZSI.TCcompound.ComplexType, ElementDeclaration):
43        literal = "getResponse"
44        schema = "ndg:security:Gatekeeper"
45        def __init__(self, **kw):
46            ns = ns0.getResponse_Dec.schema
47            TClist = [ZSI.TC.String(pname="geoServerResponse", aname="_geoServerResponse", minOccurs=1, maxOccurs=1, nillable=False, typed=False, encoded=kw.get("encoded"))]
48            kw["pname"] = ("ndg:security:Gatekeeper","getResponse")
49            kw["aname"] = "_getResponse"
50            self.attribute_typecode_dict = {}
51            ZSI.TCcompound.ComplexType.__init__(self,None,TClist,inorder=0,**kw)
52            class Holder:
53                __metaclass__ = pyclass_type
54                typecode = self
55                def __init__(self):
56                    # pyclass
57                    self._geoServerResponse = None
58                    return
59            Holder.__name__ = "getResponse_Holder"
60            self.pyclass = Holder
61
62# end class ns0 (tns: ndg:security:Gatekeeper)
Note: See TracBrowser for help on using the repository browser.