public List <BaseArtefactInfo> LoadDataStructuresComponents21(string dsd_id, string agency_id, string version) { XmlDocument queryDoc = new XmlDocument(); string DataStructureResultDoc = null; string QueryText; try { TextReader txtRdr = new StreamReader(_queryPath + "\\DataStructureComponent.xml"); QueryText = txtRdr.ReadToEnd(); txtRdr.Close(); QueryText = QueryText.Replace("###AGENCYID###", agency_id); QueryText = QueryText.Replace("###KEYFAMILYID###", dsd_id); QueryText = QueryText.Replace("###VERSION###", version); QueryText = QueryText.Replace("###RETURNDETAILS###", this._webLayer.WebServiceInfo.WebService_ReturnDetail.ToString()); queryDoc.LoadXml(QueryText); DataStructureResultDoc = _webLayer.InvokeMethod(queryDoc, WebServiceConnector.WebServiceConstants.QueryType._DATASTRUCTURE21); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(DataStructureResultDoc); List <BaseArtefactInfo> dataStructureList = MetadataRetriever.ParseDataStructureResponse(xmlDoc, _webLayer.WebServiceInfo.WebService_ReturnDetail.ToString()); return(dataStructureList); } catch (Exception ex) { throw new Exception("[GetDataDLL.Model.ApplicationModel.MetadataLoader.LoadDataflows] Query:" + queryDoc.InnerXml + " - " + ex.Message); } }
public List <BaseArtefactInfo> LoadDataStructures21() { XmlDocument queryDoc = new XmlDocument(); string DataStructureResultDoc = null; try { queryDoc.Load(_queryPath + "\\DataStructure.xml"); DataStructureResultDoc = _webLayer.InvokeMethod(queryDoc, WebServiceConnector.WebServiceConstants.QueryType._DATASTRUCTURE21); XmlDocument xmlDoc = new XmlDocument(); xmlDoc.LoadXml(DataStructureResultDoc); List <BaseArtefactInfo> dataStructureList = MetadataRetriever.ParseDataStructureResponse(xmlDoc, "Stub"); return(dataStructureList); } catch (Exception ex) { throw new Exception("[GetDataDLL.Model.ApplicationModel.MetadataLoader.LoadDataflows] Query:" + queryDoc.InnerXml + " - " + ex.Message); } }