Reset Filters

SmartConnect 2018

Get Map List

Returns a list of runnable maps to the calling client.

 

Service uri:

To call the get map list method make a call to SmartConnect.svc/getmaplist

 

Service web.config flag:

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

SmartConnect_WCF_GetMapsConfig

 

Service security:

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

SmartConnect_WCF_GetMaps

 

Implementation details:

The username passed to this method is used to determine the maps that are passed back to the client.

Returned maps are filtered as follows:

If the username is not recognized by SmartConnect only runnable maps that have allow any user to run this map checked are returned.
If the username is recognized by SmartConnect, and the user is not an admin user, runnable maps that have been assigned to the user through map permissions, as well as runnable maps that have allow any user to run this map checked are returned.
If the username is recognized by SmartConnect, and the user is an admin user, all runnable maps are returned.

 

Return type:

The return type of this method is MapList

 

Sample usage:

VB.NET

Dim request As System.Net.WebRequest = System.Net.WebRequest.Create("webservice.eonesolutions.com/SmartConnect.svc/getmaplist")

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

System.Net.WebRequest request  = System.Net.WebRequest.Create("webservice.eonesolutions.com/SmartConnect.svc/getmaplist");

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;