Ignore:
Timestamp:
21/11/06 12:42:31 (13 years ago)
Author:
pjkersha
Message:

server-config.tac: changes to AttAuthorityService? sub class - working
stub code (apart from soap_getHostInfo) and started adding in actual hook
up to AttAuthority? code.

AttAuthorityClientTest?.py: unit tests working with server side stub version.

common/AttAuthority/init.py: change wsdl refs to url. WSDL isn't actually
relevant here, only the url for the service to be accessed.

File:
1 edited

Legend:

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

    r1724 r1730  
    1414version 1.0 or later. 
    1515""" 
    16 #from AttAuthority_services_server import AttAuthorityService 
    17 import AttAuthority_services_server as AttAuthorityServiceBase 
     16import socket 
     17 
    1818from ZSI.twisted.WSresource import WSResource 
    1919from twisted.application import service, internet 
    2020from twisted.web.server import Site 
    2121from twisted.web.resource import Resource 
    22 import socket 
    2322 
    24 class AttAuthority(AttAuthorityServiceBase, WSResource): 
     23from AttAuthority_services_server import AttAuthorityService 
     24import AttAuthority 
     25 
     26class AttAuthorityServiceSub(AttAuthorityService, WSResource): 
    2527     def __init__(self): 
    2628         WSResource.__init__(self) 
     29          
     30         # Initialize Attribute Authority class 
     31         self.__aa = AttAuthority() 
    2732 
    2833     def soap_getAttCert(self, ps, **kw): 
    2934         #import pdb;pdb.set_trace() 
    3035         request, response = AttAuthorityService.soap_getAttCert(self, ps) 
    31          response._attCert = 'ATTRIBUTE CERT' 
     36         response.set_element_attCert('ATTRIBUTE CERT') 
    3237         return request, response 
    3338 
    3439     def soap_getHostInfo(self, ps, **kw): 
    35          #import pdb;pdb.set_trace() 
     40         import pdb;pdb.set_trace() 
    3641         request, response = AttAuthorityService.soap_getHostInfo(self, ps) 
    37          response._hostInfo = 'HOST INFO' 
     42         response.set_element_hostInfo('HOST INFO') 
    3843         return request, response 
    3944 
     
    4247         request, response = \ 
    4348                AttAuthorityService.soap_getTrustedHostInfo(self, ps) 
    44          response._trustedHostInfo = 'TRUSTED HOST INFO' 
     49         response.set_element_trustedHosts('TRUSTED HOST INFO') 
    4550         return request, response 
    4651 
     
    4853         #import pdb;pdb.set_trace() 
    4954         request, response = AttAuthorityService.soap_getPubKey(self, ps) 
    50          response._pubKey = 'PUB KEY' 
     55         response.set_element_x509Cert('X.509 Cert.') 
    5156         return request, response 
    5257 
     
    5560 
    5661root = Resource() 
    57 root.putChild('AttributeAuthority', AttAuthority()) 
     62root.putChild('AttributeAuthority', AttAuthorityServiceSub()) 
    5863siteFactory = Site(root) 
    5964application = service.Application("WSRF-Container") 
Note: See TracChangeset for help on using the changeset viewer.