Ignore:
Timestamp:
14/07/06 11:45:38 (13 years ago)
Author:
pjkersha
Message:

setup.py, README: altered version info to post Alpha development
NDG/LogClient.py, SimpleCAClient.py and GatekeeperClient?.py: catch HTTPResponse error from ZSI ServiceProxy?. This
allows more error info for file not found type problems.

NDG/Session.py, NDG/CredWallet.py: use AttAuthorityClient? wrapper rather than direct calls to ZSI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI12-security/trunk/python/NDG/SimpleCAClient.py

    r930 r1301  
    1515import cElementTree as ElementTree 
    1616from ZSI import ServiceProxy 
     17from ZSI.wstools.Utility import HTTPResponse 
    1718import socket # handle socket errors from WS 
    1819from CertReq import * 
     
    196197 
    197198        if 'wsdl' not in self.__prop: 
    198             raise SimpleCAClientError("Creating WS proxy: WSDL is not set") 
     199            raise SimpleCAClientError, "Creating WS proxy: WSDL is not set" 
    199200         
    200201        try: 
    201202            self.__srvPx = ServiceProxy(self.__prop['wsdl'], use_wsdl=True) 
    202203             
    203         except Exception, e: 
    204             raise SimpleCAClientError("Creating WS proxy: %s" % e) 
     204        except HTTPResponse, e: 
     205            raise SimpleCAClientError, \ 
     206                "Error initialising WSDL Service Proxy for \"%s\": %s %s" % \ 
     207                (self.__prop['wsdl'], e.status, e.reason) 
     208 
     209        except Exception, e: 
     210            raise SimpleCAClientError, \ 
     211                "Initialising WSDL Service Proxy for \"%s\": %s %s" % \ 
     212                (self.__prop['wsdl'], e.status, e.reason) 
    205213 
    206214 
Note: See TracChangeset for help on using the changeset viewer.