Beispiel #1
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);
 }