1 | ################################################## |
---|
2 | # fedd_abac_services.py |
---|
3 | # generated by ZSI.generate.wsdl2python |
---|
4 | ################################################## |
---|
5 | |
---|
6 | |
---|
7 | from fedd_abac_services_types import * |
---|
8 | import urlparse, types |
---|
9 | from ZSI.TCcompound import ComplexType, Struct |
---|
10 | from ZSI import client |
---|
11 | import ZSI |
---|
12 | from ZSI.generate.pyclass import pyclass_type |
---|
13 | |
---|
14 | # Locator |
---|
15 | class feddABACServiceLocator: |
---|
16 | feddABACPortType_address = "http://www.isi.edu/faber/fedd" |
---|
17 | def getfeddABACPortTypeAddress(self): |
---|
18 | return feddABACServiceLocator.feddABACPortType_address |
---|
19 | def getfeddABACPortType(self, url=None, **kw): |
---|
20 | return feddABACBindingSOAP(url or feddABACServiceLocator.feddABACPortType_address, **kw) |
---|
21 | |
---|
22 | # Methods |
---|
23 | class feddABACBindingSOAP: |
---|
24 | def __init__(self, url, **kw): |
---|
25 | kw.setdefault("readerclass", None) |
---|
26 | kw.setdefault("writerclass", None) |
---|
27 | # no resource properties |
---|
28 | self.binding = client.Binding(url=url, **kw) |
---|
29 | # no ws-addressing |
---|
30 | |
---|
31 | # op: Negotiate |
---|
32 | def Negotiate(self, request): |
---|
33 | if isinstance(request, NegotiateRequestMessage) is False: |
---|
34 | raise TypeError, "%s incorrect request type" % (request.__class__) |
---|
35 | kw = {} |
---|
36 | # no input wsaction |
---|
37 | self.binding.Send(None, None, request, soapaction="Negotiate", **kw) |
---|
38 | # no output wsaction |
---|
39 | response = self.binding.Receive(NegotiateResponseMessage.typecode) |
---|
40 | return response |
---|
41 | |
---|
42 | # op: CreateContext |
---|
43 | def CreateContext(self, request): |
---|
44 | if isinstance(request, CreateContextRequestMessage) is False: |
---|
45 | raise TypeError, "%s incorrect request type" % (request.__class__) |
---|
46 | kw = {} |
---|
47 | # no input wsaction |
---|
48 | self.binding.Send(None, None, request, soapaction="CreateContext", **kw) |
---|
49 | # no output wsaction |
---|
50 | response = self.binding.Receive(CreateContextResponseMessage.typecode) |
---|
51 | return response |
---|
52 | |
---|
53 | # op: AccessRequest |
---|
54 | def AccessRequest(self, request): |
---|
55 | if isinstance(request, AccessRequestMessage) is False: |
---|
56 | raise TypeError, "%s incorrect request type" % (request.__class__) |
---|
57 | kw = {} |
---|
58 | # no input wsaction |
---|
59 | self.binding.Send(None, None, request, soapaction="AccessReqest", **kw) |
---|
60 | # no output wsaction |
---|
61 | response = self.binding.Receive(AccessResponseMessage.typecode) |
---|
62 | return response |
---|
63 | |
---|
64 | _NegotiateRequestMessageTypecode = Struct(pname=("http://www.isi.edu/faber/fedd.wsdl","Negotiate"), ofwhat=[ns0.negotiationType_Def(pname="NegotiateRequestBody", aname="_NegotiateRequestBody", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://www.isi.edu/faber/fedd.wsdl") |
---|
65 | class NegotiateRequestMessage: |
---|
66 | typecode = _NegotiateRequestMessageTypecode |
---|
67 | __metaclass__ = pyclass_type |
---|
68 | def __init__(self): |
---|
69 | self._NegotiateRequestBody = None |
---|
70 | return |
---|
71 | NegotiateRequestMessage.typecode.pyclass = NegotiateRequestMessage |
---|
72 | |
---|
73 | _NegotiateResponseMessageTypecode = Struct(pname=("http://www.isi.edu/faber/fedd.wsdl","NegotiateResponse"), ofwhat=[ns0.negotiationType_Def(pname="NegotiateResponseBody", aname="_NegotiateResponseBody", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://www.isi.edu/faber/fedd.wsdl") |
---|
74 | class NegotiateResponseMessage: |
---|
75 | typecode = _NegotiateResponseMessageTypecode |
---|
76 | __metaclass__ = pyclass_type |
---|
77 | def __init__(self): |
---|
78 | self._NegotiateResponseBody = None |
---|
79 | return |
---|
80 | NegotiateResponseMessage.typecode.pyclass = NegotiateResponseMessage |
---|
81 | |
---|
82 | _CreateContextRequestMessageTypecode = Struct(pname=("http://www.isi.edu/faber/fedd.wsdl","CreateContext"), ofwhat=[ns0.contextInfo_Def(pname="ContextIn", aname="_ContextIn", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://www.isi.edu/faber/fedd.wsdl") |
---|
83 | class CreateContextRequestMessage: |
---|
84 | typecode = _CreateContextRequestMessageTypecode |
---|
85 | __metaclass__ = pyclass_type |
---|
86 | def __init__(self): |
---|
87 | self._ContextIn = None |
---|
88 | return |
---|
89 | CreateContextRequestMessage.typecode.pyclass = CreateContextRequestMessage |
---|
90 | |
---|
91 | _CreateContextResponseMessageTypecode = Struct(pname=("http://www.isi.edu/faber/fedd.wsdl","CreateContextResponse"), ofwhat=[ns0.contextInfo_Def(pname="ContextOut", aname="_ContextOut", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://www.isi.edu/faber/fedd.wsdl") |
---|
92 | class CreateContextResponseMessage: |
---|
93 | typecode = _CreateContextResponseMessageTypecode |
---|
94 | __metaclass__ = pyclass_type |
---|
95 | def __init__(self): |
---|
96 | self._ContextOut = None |
---|
97 | return |
---|
98 | CreateContextResponseMessage.typecode.pyclass = CreateContextResponseMessage |
---|
99 | |
---|
100 | _AccessRequestMessageTypecode = Struct(pname=("http://www.isi.edu/faber/fedd.wsdl","AccessRequest"), ofwhat=[ns0.negotiationRequest_Def(pname="NegotiationContext", aname="_NegotiationContext", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://www.isi.edu/faber/fedd.wsdl") |
---|
101 | class AccessRequestMessage: |
---|
102 | typecode = _AccessRequestMessageTypecode |
---|
103 | __metaclass__ = pyclass_type |
---|
104 | def __init__(self): |
---|
105 | self._NegotiationContext = None |
---|
106 | return |
---|
107 | AccessRequestMessage.typecode.pyclass = AccessRequestMessage |
---|
108 | |
---|
109 | _AccessResponseMessageTypecode = Struct(pname=("http://www.isi.edu/faber/fedd.wsdl","AccessRequestResponse"), ofwhat=[ns0.negotiationResult_Def(pname="NegotiationResult", aname="_NegotiationResult", typed=False, encoded=None, minOccurs=1, maxOccurs=1, nillable=True)], pyclass=None, encoded="http://www.isi.edu/faber/fedd.wsdl") |
---|
110 | class AccessResponseMessage: |
---|
111 | typecode = _AccessResponseMessageTypecode |
---|
112 | __metaclass__ = pyclass_type |
---|
113 | def __init__(self): |
---|
114 | self._NegotiationResult = None |
---|
115 | return |
---|
116 | AccessResponseMessage.typecode.pyclass = AccessResponseMessage |
---|