Changeset 951 for TI01-discovery


Ignore:
Timestamp:
18/05/06 13:43:03 (14 years ago)
Author:
pjkersha
Message:

Added explicit types in DiscoveryWStypes to try to get working - no apparent difference :/

Location:
TI01-discovery/trunk/python
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/trunk/python/DiscoveryWS.py

    r933 r951  
    1 #/usr/bin/env python 
     1#!/usr/bin/env python 
    22from ZSI import ServiceProxy 
    33from ZSI.wstools.WSDLTools import WSDLReader 
     
    55import os 
    66import pdb 
     7 
     8import DiscoveryWStypes 
    79 
    810# This version known to work (in part) with ZSI 1.6 patched for NDG ... 
     
    2325 
    2426        try: 
    25             wr=WSDLReader() 
    26             self.srv=ServiceProxy(wsdl,use_wsdl=True,tracefile=tracefile) 
     27            #wr=WSDLReader() 
     28            self.srv=ServiceProxy(wsdl, 
     29                                  typesmodule=DiscoveryWStypes, 
     30                                  use_wsdl=True, 
     31                                  tracefile=tracefile) 
    2732            if user is not None: 
    2833                conResp=self.srv.connect(in0=user,in1=passwd) 
     
    3944        #known to work. 
    4045        result = self.srv.fullText(in0=self.sessID, in1=query) 
    41         self.result=result['fullTextReturn'] 
     46        self.result=result['fullTextReturn'] 
    4247        if DEBUG: self.__performance() 
    4348         
     
    4954        #this doesn't work properly ... 
    5055        result=self.srv.xquery(in0=query,in1=self.sessID) 
     56#        xqueryReq = DiscoveryWStypes.xqueryRequest(in0=query, in1=self.sessID) 
     57#        result = self.srv.xquery(xqueryReq) 
    5158         
    5259    def SearchBoundingBox(self,bbox): 
     
    104111if __name__ == '__main__': 
    105112 
    106     ws=DiscoveryWS() 
     113    ws=DiscoveryWS(tracefile=sys.stderr) 
    107114    ws.SearchFullText('acsoe') 
    108115    results=ws.GetResults(number=2) 
  • TI01-discovery/trunk/python/discoveryWSinterface.py

    r873 r951  
    1414        try: 
    1515            wr = WSDLReader() 
    16             wsdl = 'http://glue.badc.rl.ac.uk:8080/exist/services/Discovery?WSDL' 
     16            wsdl = 'http://superglue.badc.rl.ac.uk/exist/services/Discovery?WSDL' 
    1717             
    1818            srv = ServiceProxy(wsdl, use_wsdl=True, tracefile=tracefile) 
Note: See TracChangeset for help on using the changeset viewer.