public static string ToXml(SingleRequest operation, CimName defaultNamespace) { return ToXml(new BatchRequest(operation, defaultNamespace)); }
private SingleResponse MakeSingleRequest(string cimOperation, SingleRequest operation) { ParseResponse pr = new ParseResponse(); string reqXml = Wbem.CimXml.CreateRequest.ToXml(operation, this.DefaultNamespace); string respXml = ExecuteRequest(cimOperation, reqXml); BatchResponse responses = pr.ParseXml(respXml); if (responses == null) { return new SingleResponse(); } if (responses.Count != 1) throw (new Exception("Not a single response to a single request")); return responses[0]; }