source: TI07-MOLES/trunk/PythonCode/browse/portal/cgi/discovery/DiscoveryService_services.py @ 1645

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI07-MOLES/trunk/PythonCode/browse/portal/cgi/discovery/DiscoveryService_services.py@1645
Revision 1645, 3.8 KB checked in by lawrence, 14 years ago (diff)

More changes associated with move of discovery to wsgi

Line 
1##################################################
2# DiscoveryService_services.py
3# generated by ZSI.generate.wsdl2python
4##################################################
5
6
7from DiscoveryService_services_types import *
8import urlparse, types
9from ZSI.TCcompound import ComplexType, Struct
10from ZSI import client
11import ZSI
12
13# Locator
14class DiscoveryServiceLocator:
15    Discovery_address = "http://sstdwmjp.neodc.rl.ac.uk:8080/axis2/services/DiscoveryService"
16    def getDiscoveryAddress(self):
17        return DiscoveryServiceLocator.Discovery_address
18    def getDiscovery(self, url=None, **kw):
19        return DiscoverySoapBindingSOAP(url or DiscoveryServiceLocator.Discovery_address, **kw)
20
21# Methods
22class DiscoverySoapBindingSOAP:
23    def __init__(self, url, **kw):
24        kw.setdefault("readerclass", None)
25        kw.setdefault("writerclass", None)
26        # no resource properties
27        self.binding = client.Binding(url=url, **kw)
28        # no ws-addressing
29
30    # op: doFullTextSearch
31    def doFullTextSearch(self, request):
32        if isinstance(request, doFullTextSearchRequest) is False:
33            raise TypeError, "%s incorrect request type" % (request.__class__)
34        kw = {}
35        # no input wsaction
36        self.binding.Send(None, None, request, soapaction="None", **kw)
37        # no output wsaction
38        response = self.binding.Receive(doFullTextSearchResponse.typecode)
39        return response
40
41    # op: doAuthorSearch
42    def doAuthorSearch(self, request):
43        if isinstance(request, doAuthorSearchRequest) is False:
44            raise TypeError, "%s incorrect request type" % (request.__class__)
45        kw = {}
46        # no input wsaction
47        self.binding.Send(None, None, request, soapaction="None", **kw)
48        # no output wsaction
49        response = self.binding.Receive(doAuthorSearchResponse.typecode)
50        return response
51
52    # op: doParameterSearch
53    def doParameterSearch(self, request):
54        if isinstance(request, doParameterSearchRequest) is False:
55            raise TypeError, "%s incorrect request type" % (request.__class__)
56        kw = {}
57        # no input wsaction
58        self.binding.Send(None, None, request, soapaction="None", **kw)
59        # no output wsaction
60        response = self.binding.Receive(doParameterSearchResponse.typecode)
61        return response
62
63    # op: doSpatioTemporalSearch
64    def doSpatioTemporalSearch(self, request):
65        if isinstance(request, doSpatioTemporalSearchRequest) is False:
66            raise TypeError, "%s incorrect request type" % (request.__class__)
67        kw = {}
68        # no input wsaction
69        self.binding.Send(None, None, request, soapaction="None", **kw)
70        # no output wsaction
71        response = self.binding.Receive(doSpatioTemporalSearchResponse.typecode)
72        return response
73
74    # op: doPresent
75    def doPresent(self, request):
76        if isinstance(request, doPresentRequest) is False:
77            raise TypeError, "%s incorrect request type" % (request.__class__)
78        kw = {}
79        # no input wsaction
80        self.binding.Send(None, None, request, soapaction="None", **kw)
81        # no output wsaction
82        response = self.binding.Receive(doPresentResponse.typecode)
83        return response
84
85doFullTextSearchRequest = ns0.doFullTextSearch_Dec().pyclass
86
87doFullTextSearchResponse = ns0.doFullTextSearchReturn_Dec().pyclass
88
89doAuthorSearchRequest = ns0.doAuthorSearch_Dec().pyclass
90
91doAuthorSearchResponse = ns0.doAuthorSearchReturn_Dec().pyclass
92
93doParameterSearchRequest = ns0.doParameterSearch_Dec().pyclass
94
95doParameterSearchResponse = ns0.doParameterSearchReturn_Dec().pyclass
96
97doSpatioTemporalSearchRequest = ns0.doSpatioTemporalSearch_Dec().pyclass
98
99doSpatioTemporalSearchResponse = ns0.doSpatioTemporalSearchReturn_Dec().pyclass
100
101doPresentRequest = ns0.doPresent_Dec().pyclass
102
103doPresentResponse = ns0.doPresentReturn_Dec().pyclass
Note: See TracBrowser for help on using the repository browser.