source: TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/DiscoveryService_services.py @ 2615

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_server/ows_server/models/DiscoveryService_services.py@2615
Revision 2615, 3.3 KB checked in by lawrence, 12 years ago (diff)

Moving some of the wsgi stack into the ows stack.
At this point an xml dif retrieve works in ows_common.

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
12from ZSI.generate.pyclass import pyclass_type
13
14# Locator
15class DiscoveryServiceLocator:
16    DiscoveryServicePortType_address = "http://glue.badc.rl.ac.uk/axis2/services/DiscoveryService"
17    def getDiscoveryServicePortTypeAddress(self):
18        return DiscoveryServiceLocator.DiscoveryServicePortType_address
19    def getDiscoveryServicePortType(self, url=None, **kw):
20        return DiscoveryServiceSOAP11BindingSOAP(url or DiscoveryServiceLocator.DiscoveryServicePortType_address, **kw)
21
22# Methods
23class DiscoveryServiceSOAP11BindingSOAP:
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: getListNames
32    def getListNames(self, request):
33        if isinstance(request, getListNamesRequest) 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="urn:DiscoveryServiceAPI:Discovery:getListNamesRequest", **kw)
38        # no output wsaction
39        response = self.binding.Receive(getListNamesResponse.typecode)
40        return response
41
42    # op: getList
43    def getList(self, request):
44        if isinstance(request, getListRequest) 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="urn:DiscoveryServiceAPI:Discovery:getListRequest", **kw)
49        # no output wsaction
50        response = self.binding.Receive(getListResponse.typecode)
51        return response
52
53    # op: doSearch
54    def doSearch(self, request):
55        if isinstance(request, doSearchRequest) 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="urn:DiscoveryServiceAPI:Discovery:doSearchRequest", **kw)
60        # no output wsaction
61        response = self.binding.Receive(doSearchResponse.typecode)
62        return response
63
64    # op: doPresent
65    def doPresent(self, request):
66        if isinstance(request, doPresentRequest) is False:
67            raise TypeError, "%s incorrect request type" % (request.__class__)
68        kw = {}
69        # no input wsaction
70        self.binding.Send(None, None, request, soapaction="urn:DiscoveryServiceAPI:Discovery:doPresentRequest", **kw)
71        # no output wsaction
72        response = self.binding.Receive(doPresentResponse.typecode)
73        return response
74
75getListNamesRequest = ns0.getListNames_Dec().pyclass
76
77getListNamesResponse = ns0.getListNamesReturn_Dec().pyclass
78
79getListRequest = ns0.getList_Dec().pyclass
80
81getListResponse = ns0.getListReturn_Dec().pyclass
82
83doSearchRequest = ns0.doSearch_Dec().pyclass
84
85doSearchResponse = ns0.doSearchReturn_Dec().pyclass
86
87doPresentRequest = ns0.doPresent_Dec().pyclass
88
89doPresentResponse = ns0.doPresentReturn_Dec().pyclass
Note: See TracBrowser for help on using the repository browser.