///<summary>Optionally set hasConnectionLost true to keep the calling thread here until a connection to the Middle Tier connection can be established ///in the event of a web connection failure. Set hasConnectionLost to false if a throw is desired when a connection cannot be made.</summary> public static DataSet ProcessGetDS(DtoGetDS dto, bool hasConnectionLost = true) { string result = SendAndReceive(dto, hasConnectionLost); if (Regex.IsMatch(result, "<DtoException xmlns:xsi=")) { DtoException exception = (DtoException)DataTransferObject.Deserialize(result); throw new Exception(exception.Message); } try { return(XmlConverter.XmlToDs(result)); } catch (Exception ex) { throw ProcessExceptionDeserialize(result, ex); } }
///<summary></summary> public static DataSet ProcessGetDS(DtoGetDS dto) { string result = SendAndReceive(dto); if (Regex.IsMatch(result, "<DtoException xmlns:xsi=")) { DtoException exception = (DtoException)DataTransferObject.Deserialize(result); throw new Exception(exception.Message); } try { return(XmlConverter.XmlToDs(result)); } catch { DtoException exception = (DtoException)DataTransferObject.Deserialize(result); throw ThrowExceptionForDto(exception); } }