def response_dict(self): "Return the HTTP response dictionary." if not self._response_dict and self.response_content: self._response_dict = xml2dict().fromstring(self._response_content) return self._response_dict
def response_dict(self): "Returns the response dictionary." if not self._response_dict and self._response_content: mydict = xml2dict().fromstring(self._response_content) self._response_dict = mydict.get(self.verb+'Response', mydict) return self._response_dict
def response_dict(self): "Returns the response dictionary." if not self._response_dict and self._response_content: mydict = xml2dict().fromstring(self._response_content) self._response_dict = mydict.get(self.verb + 'Response', mydict) return self._response_dict
def response_dict(self): "Return the HTTP response dictionary." try: if not self._response_dict and self.response_content: self._response_dict = xml2dict().fromstring(self._response_content) return self._response_dict except ExpatError: raise ConnectionResponseError('response is not well-formed')
def response_dict(self): "Return the HTTP response dictionary." try: if not self._response_dict and self.response_content: self._response_dict = xml2dict().fromstring( self._response_content) return self._response_dict except ExpatError: raise ConnectionResponseError('response is not well-formed')
def response_dict(self): if self._response_dict: return self._response_dict mydict = xml2dict().fromstring(self._response_content) try: verb = self.verb + 'Response' self._response_dict = mydict['Envelope']['Body'][verb] except KeyError: self._response_dict = mydict.get(self.verb + 'Response', mydict) return self._response_dict
def response_dict(self): if self._response_dict: return self._response_dict mydict = object_dict() try: mydict = xml2dict().fromstring(self._response_content) verb = self.verb + 'Response' self._response_dict = mydict['Envelope']['Body'][verb] except Exception as e: self._response_dict = mydict self._resp_body_errors.append("Error parsing SOAP response: %s" % e) return self._response_dict