コード例 #1
0
ファイル: soap.py プロジェクト: jring/python-zeep
    def _deserialize_body(self, body_element):
        """The name of the wrapper element is not defined. The WS-I defines
        that it should be the operation name with the 'Response' string as
        suffix. But lets just do it really stupid for now and use the first
        element.

        """
        process_multiref(body_element)

        response_element = body_element.getchildren()[0]
        if self.body:
            result = self.body.parse(response_element, self.wsdl.types)
            return {'body': result}
        return {'body': None}
コード例 #2
0
ファイル: soap.py プロジェクト: ovnicraft/python-zeep
    def _deserialize_body(self, body_element):
        """The name of the wrapper element is not defined. The WS-I defines
        that it should be the operation name with the 'Response' string as
        suffix. But lets just do it really stupid for now and use the first
        element.

        """
        process_multiref(body_element)

        response_element = body_element.getchildren()[0]
        if self.body:
            result = self.body.parse(response_element, self.wsdl.types)
            return {'body': result}
        return {'body': None}
コード例 #3
0
    def _deserialize_body(self, body_element):
        """The name of the wrapper element is not defined. The WS-I defines
        that it should be the operation name with the 'Response' string as
        suffix. But lets just do it really stupid for now and use the first
        element.

        """
        process_multiref(body_element)

        response_element = list(body_element)[0]
        if self.body:
            context = XmlParserContext(self.wsdl.settings)
            result = self.body.parse(response_element, self.wsdl.types, context=context)
            return {"body": result}
        return {"body": None}