source: fedd/federation/fedd_abac_services.py @ 19a3e06

axis_examplecompt_changesinfo-opsversion-2.00version-3.01version-3.02
Last change on this file since 19a3e06 was 19a3e06, checked in by Jay Jacobs <Jay.Jacobs@…>, 15 years ago

Initial abac client version

  • Property mode set to 100644
File size: 5.7 KB
Line 
1##################################################
2# fedd_abac_services.py
3# generated by ZSI.generate.wsdl2python
4##################################################
5
6
7from fedd_abac_services_types import *
8import urlparse, types
9from ZSI.TCcompound import ComplexType, Struct
10from ZSI import client
11import ZSI
12from ZSI.generate.pyclass import pyclass_type
13
14# Locator
15class 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
23class 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")
65class NegotiateRequestMessage:
66    typecode = _NegotiateRequestMessageTypecode
67    __metaclass__ = pyclass_type
68    def __init__(self):
69        self._NegotiateRequestBody = None
70        return
71NegotiateRequestMessage.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")
74class NegotiateResponseMessage:
75    typecode = _NegotiateResponseMessageTypecode
76    __metaclass__ = pyclass_type
77    def __init__(self):
78        self._NegotiateResponseBody = None
79        return
80NegotiateResponseMessage.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")
83class CreateContextRequestMessage:
84    typecode = _CreateContextRequestMessageTypecode
85    __metaclass__ = pyclass_type
86    def __init__(self):
87        self._ContextIn = None
88        return
89CreateContextRequestMessage.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")
92class CreateContextResponseMessage:
93    typecode = _CreateContextResponseMessageTypecode
94    __metaclass__ = pyclass_type
95    def __init__(self):
96        self._ContextOut = None
97        return
98CreateContextResponseMessage.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")
101class AccessRequestMessage:
102    typecode = _AccessRequestMessageTypecode
103    __metaclass__ = pyclass_type
104    def __init__(self):
105        self._NegotiationContext = None
106        return
107AccessRequestMessage.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")
110class AccessResponseMessage:
111    typecode = _AccessResponseMessageTypecode
112    __metaclass__ = pyclass_type
113    def __init__(self):
114        self._NegotiationResult = None
115        return
116AccessResponseMessage.typecode.pyclass = AccessResponseMessage
Note: See TracBrowser for help on using the repository browser.