Ignore:
Timestamp:
27/07/09 22:09:17 (11 years ago)
Author:
pjkersha
Message:

Working soap unit test with UrlLib2SOAPClient.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/ndg.security.common/ndg/security/common/soap/client.py

    r5526 r5527  
    3232                                         "requests and responses") 
    3333      
    34     def makeRequest(self, soapRequest): 
     34    def send(self, soapRequest): 
    3535        raise NotImplementedError() 
    3636 
    3737 
    3838class _SoapIOBase(object): 
     39    """Base class for request and response classes""" 
     40     
    3941    def __init__(self): 
    4042        self.__envelope = None 
     
    6163        self.__envelope = None 
    6264 
    63     url = property(fget=_getUrl, fset=_setUrl, doc="URL of SOAP endpoint") 
    64  
    6565    def _getUrl(self): 
    6666        return self.__url 
     
    7171                            '%r' % (basestring, type(value))) 
    7272        self.__url = value 
     73 
     74    url = property(fget=_getUrl, fset=_setUrl, doc="URL of SOAP endpoint") 
    7375 
    7476    
     
    8688    """Interface for UrlLib2 based SOAP Responses""" 
    8789    def __init__(self): 
    88         self.__fileobject 
     90        self.__fileobject = None 
     91 
     92    def _getFileobject(self): 
     93        return self.__fileobject 
    8994 
    9095    fileobject = property(fget=_getFileobject, 
    9196                          doc="urllib2 file object returned from request") 
    92  
    93     def getFileobject(self): 
    94         return self.__fileobject 
    9597 
    9698     
     
    132134                                  "opener(s) for handling requests") 
    133135     
    134     def makeRequest(self, soapRequest): 
     136    def send(self, soapRequest): 
    135137        """Make a request to the given URL with a SOAP Request object""" 
    136138         
Note: See TracChangeset for help on using the changeset viewer.