SmartConnect 2018
Get Extender Map List
Returns a list of runnable maps with an Extender object as the data source to the calling client.
Service uri:
To call the get map list method make a call to SmartConnect.svc/getmaplist?type={extenderType}
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
Service security:
The settings used to determine WCF REST security and log settings is 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 with data sources of the Extender type supplied 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 of the Extender type supplied that have been assigned to the user through map permissions, as well as runnable maps of the Extender type supplied 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 of the Extender type supplied are returned. |
Return type:
The return type of this method is MapList
Sample usage:
VB.NET
' return maps with Extender forms as the data source
Dim request As System.Net.WebRequest = System.Net.WebRequest.Create("webservice.eonesolutions.com/SmartConnect.svc/getmaplist?type=2")
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 maps with Extender windows as the data source
System.Net.WebRequest request = System.Net.WebRequest.Create("webservice.eonesolutions.com/SmartConnect.svc/getmaplist?type=1");
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;