source: TI12-security/trunk/python/Tests/VocabServer/VocabServerClient.py @ 1546

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/VocabServer/VocabServerClient.py@1546
Revision 1546, 624 bytes checked in by pjkersha, 15 years ago (diff)

Tests/VocabServer?:
Working version for whatListsCat method. ZSI code connects to Java WS with doc/lit wrapped WSDL. Note,
urllib2Client adaptor for ZSI client to work across a http proxy.

Tests/Echo?: corrected http_proxy -> http keyword in proxies dictionary of ProxyHandler?.

  • Property svn:executable set to *
Line 
1#!/bin/env python
2#
3# Exampe echo client, to show extended code generation in ZSI
4#
5# Import the client proxy object
6from VocabServerAPI_dlService_client import VocabServerAPI_dlSoapBindingSOAP
7import sys
8
9
10# Instantiate a client proxy object, then call it
11vocabSrv = VocabServerAPI_dlSoapBindingSOAP(
12                "http://grid.bodc.nerc.ac.uk/axis/services/VocabServerAPI_dl",
13                tracefile=sys.stdout)
14try:
15    import pdb;pdb.set_trace()
16    whatLists = vocabSrv.whatListsCat()
17    print 'whatListsCat:\n'
18    for elem in whatLists:
19        print elem
20       
21except Exception, e:
22    print "Failed: ", e
23
Note: See TracBrowser for help on using the repository browser.