Changeset 6717 for ndgCommon


Ignore:
Timestamp:
10/03/10 12:37:23 (9 years ago)
Author:
sdonegan
Message:

merged with calums original - god knows what wsdl2py args he used.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • ndgCommon/trunk/ndg/common/src/clients/ws/discovery/generated/DiscoveryService_services.py

    r6715 r6717  
    1414# Locator 
    1515class DiscoveryServiceLocator: 
    16     Discovery_address = "http://130.246.191.164:8080/axis2/services/DiscoveryService/" 
    17     def getDiscoveryAddress(self): 
    18         return DiscoveryServiceLocator.Discovery_address 
    19     def getDiscovery(self, url=None, **kw): 
    20         return DiscoverySoapBindingSOAP(url or DiscoveryServiceLocator.Discovery_address, **kw) 
     16    DiscoveryServicePortType_address = "http://glue.badc.rl.ac.uk:8080/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) 
    2121 
    2222# Methods 
    23 class DiscoverySoapBindingSOAP: 
     23class DiscoveryServiceSOAP11BindingSOAP: 
    2424    def __init__(self, url, **kw): 
    2525        kw.setdefault("readerclass", None) 
     
    2929        # no ws-addressing 
    3030 
     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 
    3153    # op: doSearch 
    3254    def doSearch(self, request): 
     
    3557        kw = {} 
    3658        # no input wsaction 
    37         self.binding.Send(None, None, request, soapaction="None", **kw) 
     59        self.binding.Send(None, None, request, soapaction="urn:DiscoveryServiceAPI:Discovery:doSearchRequest", **kw) 
    3860        # no output wsaction 
    3961        response = self.binding.Receive(doSearchResponse.typecode) 
     
    4668        kw = {} 
    4769        # no input wsaction 
    48         self.binding.Send(None, None, request, soapaction="None", **kw) 
     70        self.binding.Send(None, None, request, soapaction="urn:DiscoveryServiceAPI:Discovery:doPresentRequest", **kw) 
    4971        # no output wsaction 
    5072        response = self.binding.Receive(doPresentResponse.typecode) 
    5173        return response 
    5274 
    53     # op: getListNames 
    54     def getListNames(self, request): 
    55         if isinstance(request, getListNamesRequest) 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="None", **kw) 
    60         # no output wsaction 
    61         response = self.binding.Receive(getListNamesResponse.typecode) 
    62         return response 
     75getListNamesRequest = ns0.getListNames_Dec().pyclass 
    6376 
    64     # op: getList 
    65     def getList(self, request): 
    66         if isinstance(request, getListRequest) 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="None", **kw) 
    71         # no output wsaction 
    72         response = self.binding.Receive(getListResponse.typecode) 
    73         return response 
     77getListNamesResponse = ns0.getListNamesReturn_Dec().pyclass 
     78 
     79getListRequest = ns0.getList_Dec().pyclass 
     80 
     81getListResponse = ns0.getListReturn_Dec().pyclass 
    7482 
    7583doSearchRequest = ns0.doSearch_Dec().pyclass 
     
    8088 
    8189doPresentResponse = ns0.doPresentReturn_Dec().pyclass 
    82  
    83 getListNamesRequest = ns0.getListNames_Dec().pyclass 
    84  
    85 getListNamesResponse = ns0.getListNamesReturn_Dec().pyclass 
    86  
    87 getListRequest = ns0.getList_Dec().pyclass 
    88  
    89 getListResponse = ns0.getListReturn_Dec().pyclass 
Note: See TracChangeset for help on using the changeset viewer.