code: def imethodcallPayload(self, methodname, localnsp, **kwargs):
          
  
          param_list = [pywbem.IPARAMVALUE(x[0], pywbem.tocimxml(x[1]))
                        for x in kwargs.items()]
  
          payload = cim_xml.CIM(
              cim_xml.MESSAGE(
                  cim_xml.SIMPLEREQ(
                      cim_xml.IMETHODCALL(
                          methodname,
                          cim_xml.LOCALNAMESPACEPATH(
                              [cim_xml.NAMESPACE(ns)
                               for ns in localnsp.split('/')]),
                          param_list)),
                  '1001', '1.0'),
              '2.0', '2.0')
  
          return self.xml_header + payload.toxml()
docs: Generate the XML payload for an intrinsic methodcall.