source: TI12-security/tags/ndg-security-1.3.4/Tests/dewsGatekeeper/gatekeeperClient.py @ 1957

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/tags/ndg-security-1.3.4/Tests/dewsGatekeeper/gatekeeperClient.py@6210
Revision 1957, 943 bytes checked in by pjkersha, 14 years ago (diff)

Example code for Geoserver Gatekeeper web service interface for DEWS.

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2#
3# Exampe echo client, to show extended code generation in ZSI
4#
5# Import the client proxy object
6from Gatekeeper_services import GatekeeperBindingSOAP
7import wsSecurity
8#import pdb;pdb.set_trace()
9
10
11priKeyPwd = open('../tmp2').read().strip()
12certFilePath = '../Junk-cert.pem'
13priKeyFilePath = '../Junk-key.pem'
14
15# Signature handler object is passed to binding
16signatureHandler = wsSecurity.SignatureHandler(certFilePath=certFilePath,
17                                               priKeyFilePath=priKeyFilePath,
18                                               priKeyPwd=priKeyPwd)
19
20# Instantiate a client proxy object, then call it
21GatekeeperPx = GatekeeperBindingSOAP("http://localhost:5000/GatekeeperServIn")#,
22                                 #sig_handler=signatureHandler)
23
24print GatekeeperPx.get("User X.509 Cert", 
25                       "User Attribute Certificate", 
26                       "Geoserver Request")
27
Note: See TracBrowser for help on using the repository browser.