SmartConnect 2018

Validate Connection

Attempts to connect to the SmartConnect WCF REST Service.

 

Service uri:

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

 

There is no web.config or SmartConnect security on this method.

 

Implementation details:

This method connects to the SmartConnect WCF REST service. If a connection is successful the method returns the current server date / time

 

Return type:

The return type of this method is DateTime

 

Sample usage:

VB.NET

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

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

Try

 Dim response As System.Net.WebResponse = request.GetResponse()

 Return True

Catch

 Return False

End Try

 

 

C#.NET

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

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

try {

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

 return true; }

catch {

 return false; }