Java, C#, and URL APIs
Spotfire Statistics Services provides classes and interfaces for writing Java and C#-based web and desktop applications for sending requests to the server.
The Java and C# APIs are implemented using a standard Factory design pattern for client instance creation.
ClientFactory
is the class that implements a factory and provides a way to obtain a client object of a given type by calling a relevant method. For example, to create an
AdministrationClient
object in C#:
string serviceUrl = "http://servername:port/service_name";
string username = "myusername";
string password = "mypassword";
IAdministrationClient api = ClientFactory.GetAdministrationClient(serviceUrl, username, password);
(where servername is the name of your Spotfire Statistics Services server, port is the port number for your Spotfire Statistics Services installation, and service_name is the Service Name provided to you by the administrator.)
The following sections provide information and examples for using the Java and C# APIs with Spotfire Statistics Services, highlighting features that are specific to the server, including:
- Passing open-source R or TERR objects in an evaluation request.
- Providing authentication support.
- Creating a notification listener to monitor job status.
- Write Java and C# Code for Spotfire Statistics Services
This section includes an overview on using the features specific to Spotfire Statistics Services Java and C# APIs. A knowledge of either Java or C# is assumed. - Write Requests Using the URL API
You can use the URL API to send administration, expression, or function requests to the server. Use the URL API for testing the health of the server, rather than for creating web-based applications. This section describes sending requests via the URL API.
- Write Java and C# Code for Spotfire Statistics Services
This section includes an overview on using the features specific to Spotfire Statistics Services Java and C# APIs. A knowledge of either Java or C# is assumed. - Write Requests Using the URL API
You can use the URL API to send administration, expression, or function requests to the server. Use the URL API for testing the health of the server, rather than for creating web-based applications. This section describes sending requests via the URL API.