Example #1
0
 internal static MDDatasetFormatter ReadDataSetResponse(XmlReader reader)
 {
     if (!XmlaClient.IsDatasetResponseS(reader))
     {
         throw new InvalidOperationException(XmlaSR.SoapFormatter_ResponseIsNotDataset);
     }
     return(SoapFormatter.ReadDataSetResponsePrivate(reader));
 }
Example #2
0
 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);
 }