Ignore:
Timestamp:
16/02/10 16:11:08 (11 years ago)
Author:
pjkersha
Message:
  • Important fix for SOAP client used with SAML SOAP binding: set text/xml content type.
  • Refactored SAML SOAP binding query clients.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/NDGSecurity/python/ndg_security_common/ndg/security/common/saml_utils/binding/soap/attributequery.py

    r6572 r6578  
    4848    SERIALISE_KW = 'serialise' 
    4949    DESERIALISE_KW = 'deserialise' 
     50    QUERY_TYPE = AttributeQuery 
    5051     
    5152    def __init__(self, **kw): 
    5253        '''Create SOAP Client for SAML Attribute Query''' 
    53         self.__queryAttributes = TypedList(Attribute) 
    5454         
    5555        # Default to ElementTree based serialisation/deserialisation 
     
    6565         
    6666        super(AttributeQuerySOAPBinding, self).__init__(**kw) 
     67        self.__queryAttributes = TypedList(Attribute) 
    6768             
    6869    def __setattr__(self, name, value): 
     
    107108                               doc="List of attributes to query from the " 
    108109                                   "Attribute Authority") 
    109  
    110     def _createQuery(self): 
    111         """ Create a SAML attribute query""" 
    112         attributeQuery = super(AttributeQuerySOAPBinding, self)._createQuery( 
    113                                                                 AttributeQuery) 
    114         # Add list of attributes to query                       
    115         for attribute in self.queryAttributes: 
    116             attributeQuery.attributes.append(attribute) 
    117              
    118         return attributeQuery  
     110# 
     111#    def _createQuery(self): 
     112#        """ Create a SAML attribute query""" 
     113#        attributeQuery = super(AttributeQuerySOAPBinding, self)._createQuery( 
     114#                                                                AttributeQuery) 
     115#        # Add list of attributes to query                       
     116#        for attribute in self.queryAttributes: 
     117#            attributeQuery.attributes.append(attribute) 
     118#             
     119#        return attributeQuery  
    119120 
    120121     
Note: See TracChangeset for help on using the changeset viewer.