Reset Filters

SmartConnect 2018

Get Map Columns

Returns a list of columns for the specified map.

 

Service uri:

To call the get map list method make a call to SmartConnect.svc/getmapcolumns?map={map}

 

Service web.config flag:

The flag used to turn this service call on or off in the WCF REST service web.config file is AllowGetMapColumns

SmartConnect_WCF_GetMapColumnsConfig

 

Service security:

The settings used to determine WCF REST security and log settings is GetMaps

SmartConnect_WCF_GetMapColumns

 

Implementation details:

The credentials of the user configured to run the WCF REST service are used to access SmartConnect and return the columns associated with the specified map.

 

Return type:

The return type of this method is MapColumnList

 

Sample usage:

VB.NET

' return columns for a map of id TEST

Dim request As System.Net.WebRequest = System.Net.WebRequest.Create("webservice.eonesolutions.com/SmartConnect.svc/getmapcolumns?map=TEST")

request.Credentials = New System.Net.NetworkCredential("username", "password", "domain")

Dim response As System.Net.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 XmlDocument()

doc.LoadXml(result)

Return doc

 

C#.NET

// return columns for a map of id GP_ACC

System.Net.WebRequest request  = System.Net.WebRequest.Create("webservice.eonesolutions.com/SmartConnect.svc/getmapcolumns?map=GP_ACC");

request.Credentials = new System.Net.NetworkCredential("username","password","domain");

System.Net.WebResponse response = request.GetResponse();

string result = string.Empty;

using(System.IO.StreamReader responseStream = new System.IO.StreamReader(response.GetResponseStream()))

{

 string result = responseStream.ReadToEnd(); 
}

XmlDocument doc = new XmlDocument();

doc.LoadXml(result);

return doc;