SmartConnect 2018
Get Data
Returns the data defined by the data source attached to the specified map.
Service uri:
To call the get map list method make a call to SmartConnect.svc/getalldata/{mapId}
Service web.config flag:
The flag used to turn this service call on or off in the WCF REST service web.config file is AllowGetData
Service security:
The settings used to determine WCF REST security and log settings is Get Data
Return type:
This method returns a xml string containing the data source data table.
Sample usage:
VB.NET
' return the data from the data source on map TEST
Dim request As System.Net.WebRequest = System.Net.WebRequest.Create("webservice.eonesolutions.com/SmartConnect.svc/getalldata/TEST")
request.Credentials = WebRequestProperties.AdminUser
request.Method = "GET"
Dim ws As WebResponse = request.GetResponse()
Dim result As String = String.Empty
Using responseStream As New System.IO.StreamReader(response.GetResponseStream())
Dim result As String = responseStream.ReadToEnd()
End Using
Dim doc As New System.Xml.XmlDocument()
doc.LoadXml(result)
Return doc
C#.NET
// return the data from the data source on map GP_ACC
System.Net.WebRequest request = System.Net.WebRequest.Create("webservice.eonesolutions.com/SmartConnect.svc/getalldata/TEST");
request.Credentials = WebRequestProperties.AdminUser;
request.Method = "GET";
WebResponse ws = request.GetResponse();
string result = string.Empty;
using(System.IO.StreamReader responseStream = new System.IO.StreamReader(response.GetResponseStream()))
{
string result = responseStream.ReadToEnd();
}
System.Xml.XmlDocument doc = new System.Xml.XmlDocument();
doc.LoadXml(result);
return doc;