TIBCO Spotfire® Statistics Services Users Guide

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.

Important: As of version 12.0.0 of Spotfire Statistics Services, the Java and C# APIs are deprecated. They will be removed in a future release.

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.
Note: Spotfire Statistics Services also includes a URL API, which is designed to accept simple requests to check server health. This API is discussed in further detail in Write requests using the URL API.