Ignore:
Timestamp:
23/11/06 16:13:59 (13 years ago)
Author:
pjkersha
Message:

server/SessionMgr/* - Session Manager server side WS interface - wsdl2dispatch
generated + Twisted .tac file.
www/html/sessionMgr.wsdl: updated to doc/lit style + added disconnect operation.
common/SessionMgr: common package for wsdl2py generated files required by
client and server.
Tests/Echo?/wsSecurity.py: include test for verify boolean in verify method!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/SessionMgr/server-config.tac

    r1743 r1747  
    22"""NDG Security Attribute Authority .tac file  
    33 
    4 This file enables the Attribute Authority web service to be  
     4This file enables the Session Manager web service to be  
    55called under the Twisted framework 
    66 
    77NERC Data Grid Project 
    88 
    9 P J Kershaw 17/11/06 
     9P J Kershaw 23/11/06 
    1010 
    1111Copyright (C) 2006 CCLRC & NERC 
     
    2121from twisted.web.resource import Resource 
    2222 
    23 from AttAuthority_services_server import AttAuthorityService 
    24 import AttAuthority 
     23from SessionMgr_services_server import SessionMgrService 
     24import SessionMgr 
    2525 
    26 class AttAuthorityServiceSub(AttAuthorityService, WSResource): 
     26class SessionMgrServiceSub(SessionMgrService, WSResource): 
    2727     def __init__(self): 
    2828         WSResource.__init__(self) 
    2929          
    3030         # Initialize Attribute Authority class 
    31          self.__aa = AttAuthority() 
     31         self.__sm = SessionMgr() 
    3232 
    33      def soap_getAttCert(self, ps, **kw): 
     33     def soap_addUser(self, ps, **kw): 
    3434         #import pdb;pdb.set_trace() 
    35          request, response = AttAuthorityService.soap_getAttCert(self, ps) 
    36          response.set_element_attCert('ATTRIBUTE CERT') 
     35         request, response = SessionMgrService.soap_addUser(self, ps) 
    3736         return request, response 
    3837 
    39      def soap_getHostInfo(self, ps, **kw): 
    40          import pdb;pdb.set_trace() 
    41          request, response = AttAuthorityService.soap_getHostInfo(self, ps) 
    42          response.set_element_hostInfo('HOST INFO') 
     38     def soap_connect(self, ps, **kw): 
     39         #import pdb;pdb.set_trace() 
     40         request, response = SessionMgrService.soap_getHostInfo(self, ps) 
    4341         return request, response 
    4442 
    45      def soap_getTrustedHostInfo(self, ps, **kw): 
     43     def soap_disconnect(self, ps, **kw): 
    4644         #import pdb;pdb.set_trace() 
    4745         request, response = \ 
    48                 AttAuthorityService.soap_getTrustedHostInfo(self, ps) 
    49          response.set_element_trustedHosts('TRUSTED HOST INFO') 
     46                SessionMgrService.soap_disconnect(self, ps) 
     47         return request, response 
     48 
     49     def soap_reqAuthorisation(self, ps, **kw): 
     50         #import pdb;pdb.set_trace() 
     51         request, response = \ 
     52                SessionMgrService.soap_reqAuthorisation(self, ps) 
    5053         return request, response 
    5154 
    5255     def soap_getPubKey(self, ps, **kw): 
    5356         #import pdb;pdb.set_trace() 
    54          request, response = AttAuthorityService.soap_getPubKey(self, ps) 
     57         request, response = SessionMgrService.soap_getPubKey(self, ps) 
    5558         response.set_element_x509Cert('X.509 Cert.') 
    5659         return request, response 
    5760 
    58 portNum = 5700 
     61portNum = 5000 
    5962hostname = socket.gethostname() 
    6063 
    6164root = Resource() 
    62 root.putChild('AttributeAuthority', AttAuthorityServiceSub()) 
     65root.putChild('SessionManager', SessionMgrServiceSub()) 
    6366siteFactory = Site(root) 
    64 application = service.Application("WSRF-Container") 
     67application = service.Application("ndgSecurityContainer") 
    6568port = internet.TCPServer(portNum, siteFactory)#, interface=hostname) 
    6669port.setServiceParent(application) 
Note: See TracChangeset for help on using the changeset viewer.