(self, max_payload_size=None)
Updates the MaxEnvelopeSize set on the current WSMan object for all
        future requests.

        :param max_payload_size: The max size specified in bytes, if not set
            then the max size if retrieved dynamically from the server
Updates the MaxEnvelopeSize set on the current WSMan object for all
        future requests.
Updates the MaxEnvelopeSize set on the current WSMan object for all future requests .
def update_max_payload_size(self, max_payload_size=None):
        """
        Updates the MaxEnvelopeSize set on the current WSMan object for all
        future requests.

        :param max_payload_size: The max size specified in bytes, if not set
            then the max size if retrieved dynamically from the server
        """
        if max_payload_size is None:
            config = self.get_server_config()
            max_size_kb = config.find("cfg:Config/"
                                      "cfg:MaxEnvelopeSizekb",
                                      namespaces=NAMESPACES).text
            max_payload_size = int(max_size_kb) * 1024

        max_envelope_size = self._calc_envelope_size(max_payload_size)
        self.max_envelope_size = max_payload_size
        self.max_payload_size = max_envelope_size
def update_max_payload_size ( self , max_payload_size = None ) : if max_payload_size is None : config = self . get_server_config ( ) max_size_kb = config . find ( "cfg:Config/" "cfg:MaxEnvelopeSizekb" , namespaces = NAMESPACES ) . text max_payload_size = int ( max_size_kb ) * 1024 max_envelope_size = self . _calc_envelope_size ( max_payload_size ) self . max_envelope_size = max_payload_size self . max_payload_size = max_envelope_size