source: TI12-security/trunk/python/Tests/AttAuthority/AttAuthorityClient.py @ 4392

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI12-security/trunk/python/Tests/AttAuthority/AttAuthorityClient.py@4392
Revision 4392, 930 bytes checked in by pjkersha, 11 years ago (diff)

Rerun Credential Wallet and AA client unittests with refactored WSDL stubs in place.

  • Property svn:executable set to *
Line 
1#!/usr/bin/env python
2#from twisted.python import log
3#from twisted.internet import reactor
4
5from ndg.security.common.zsi.attributeauthority.AttributeAuthority_services import AttributeAuthorityServiceLocator
6
7def main(**kw):
8    locator = AttributeAuthorityServiceLocator()
9    port = locator.getAttributeAuthority(**kw)
10    import pdb;pdb.set_trace()
11    attCert = port.getAttCert("USER CERT")
12    print "attCert = %s" % attCert
13   
14    # Factory METHOD Just guessing here
15    #response = port.create(CLIENT.CreateRequest())
16    #kw['endPointReference'] = response._EndpointReference
17    #iport = locator.getAttributeAuthority(**kw)
18#    reactor.stop()
19
20
21if __name__ == '__main__':
22    main(url="http://127.0.0.1:5700/AttributeAuthority")
23#    op = GetBasicOptParser()
24#    (options, args) = op.parse_args()
25#   
26#    SetUp(options)
27#    kw = GetPortKWArgs(options)
28#    reactor.callWhenRunning(main, **kw)
29#    reactor.run()
Note: See TracBrowser for help on using the repository browser.