internal static MDDatasetFormatter ReadDataSetResponse(XmlReader reader) { if (!XmlaClient.IsDatasetResponseS(reader)) { throw new InvalidOperationException(XmlaSR.SoapFormatter_ResponseIsNotDataset); } return(SoapFormatter.ReadDataSetResponsePrivate(reader)); }
private static ResultsetFormatter ReadExecuteResponsePrivate(XmlReader reader, InlineErrorHandlingType inlineErrorHandling) { XmlaClient.StartExecuteResponseS(reader); if (XmlaClient.IsDatasetResponseS(reader)) { return(SoapFormatter.ReadDataSetResponsePrivate(reader)); } if (XmlaClient.IsRowsetResponseS(reader)) { return(SoapFormatter.ReadRowsetResponsePrivate(reader, inlineErrorHandling, null, false, null)); } if (!XmlaClient.IsEmptyResultS(reader)) { throw new AdomdUnknownResponseException(XmlaSR.UnknownServerResponseFormat, string.Format("Expected dataset, rowset, or empty result, got {0}", reader.Name)); } XmlaClient.ReadEmptyRootS(reader); XmlaClient.EndExecuteResponseS(reader); return(null); }