Ignore:
Timestamp:
18/11/08 12:34:25 (12 years ago)
Author:
pjkersha
Message:

Working Session Manager client unit tests for WSGI based Session Manager

  • removed getX509Cert operation from WSDL - no longer needed
  • fix to prefix keyword for ConfigFileParsers? ini file parsing.
Location:
TI12-security/trunk/python/ndg.security.server/ndg/security/server/zsi/sessionmanager
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/zsi/sessionmanager/SessionManager_services_server.py

    r4406 r4437  
    9393      </xsd:element> 
    9494 
    95       <xsd:element name=\"getX509Cert\"> 
    96         <xsd:complexType/> 
    97       </xsd:element> 
    98        
    99       <xsd:element name=\"getX509CertResponse\"> 
    100         <xsd:complexType> 
    101                   <xsd:sequence> 
    102                     <xsd:element maxOccurs=\"1\" minOccurs=\"1\" name=\"x509Cert\" type=\"xsd:string\"/> 
    103                   </xsd:sequence> 
    104                 </xsd:complexType> 
    105       </xsd:element> 
    106  
    10795    </xsd:schema> 
    10896  </wsdl:types> 
     
    140128  </wsdl:message> 
    141129 
    142   <wsdl:message name=\"getX509CertInputMsg\"> 
    143     <wsdl:part element=\"tns:getX509Cert\" name=\"parameters\"/> 
    144   </wsdl:message> 
    145  
    146   <wsdl:message name=\"getX509CertOutputMsg\"> 
    147     <wsdl:part element=\"tns:getX509CertResponse\" name=\"parameters\"/> 
    148   </wsdl:message> 
    149  
    150130  <wsdl:portType name=\"SessionManager\"> 
    151131    <wsdl:operation name=\"getSessionStatus\"> 
     
    168148      <wsdl:output message=\"tns:getAttCertOutputMsg\"/> 
    169149    </wsdl:operation> 
    170  
    171     <wsdl:operation name=\"getX509Cert\"> 
    172       <wsdl:input message=\"tns:getX509CertInputMsg\"/> 
    173       <wsdl:output message=\"tns:getX509CertOutputMsg\"/> 
    174     </wsdl:operation> 
    175150  </wsdl:portType>   
    176151   
     
    217192      </wsdl:output>  
    218193    </wsdl:operation> 
    219  
    220     <wsdl:operation name=\"getX509Cert\"> 
    221       <soap:operation soapAction=\"getX509Cert\"/> 
    222       <wsdl:input> 
    223         <soap:body use=\"literal\"/> 
    224       </wsdl:input> 
    225       <wsdl:output> 
    226         <soap:body use=\"literal\"/> 
    227       </wsdl:output>  
    228     </wsdl:operation>     
    229194   
    230195  </wsdl:binding> 
     
    323288    root[(getAttCertInputMsg.typecode.nspname,getAttCertInputMsg.typecode.pname)] = 'soap_getAttCert' 
    324289 
    325     def soap_getX509Cert(self, ps): 
    326         self.request = ps.Parse(getX509CertInputMsg.typecode) 
    327  
    328         # If we have an implementation object use it 
    329         if hasattr(self,'impl'): 
    330             parameters = self.impl.getX509Cert() 
    331  
    332         result = getX509CertOutputMsg() 
    333         # If we have an implementation object, copy the result  
    334         if hasattr(self,'impl'): 
    335             result._x509Cert = parameters 
    336         return result 
    337  
    338     soapAction['getX509Cert'] = 'soap_getX509Cert' 
    339     root[(getX509CertInputMsg.typecode.nspname,getX509CertInputMsg.typecode.pname)] = 'soap_getX509Cert' 
    340  
  • TI12-security/trunk/python/ndg.security.server/ndg/security/server/zsi/sessionmanager/__init__.py

    r4407 r4437  
    178178         
    179179        return response 
    180  
    181  
    182     def soap_getX509Cert(self, ps, **kw): 
    183         '''Return Session Manager's X.509 certificate 
    184          
    185         @type ps: ZSI ParsedSoap 
    186         @param ps: client SOAP message 
    187         @rtype: tuple 
    188         @return: request and response objects'''         
    189         if self.__debug: 
    190             import pdb 
    191             pdb.set_trace() 
    192              
    193         response = _SessionManagerService.soap_getX509Cert(self, ps) 
    194  
    195         x509Cert = X509CertRead(srv.sm['signingCertFilePath']) 
    196         response.X509Cert = base64.encodestring(x509Cert.asDER()) 
    197         return response 
Note: See TracChangeset for help on using the changeset viewer.