Files and Libraries

GNU Affero GPL v3

Created January 20, 2020

The license governing this API

Files
name size description
LICENSE 33.71K The license governing this API

C Client Library

Created June 4, 2025

The C module generates the source code for the ANSI-C-compatible data structures and (de)serialization functions that can be used in conjunction with libxml2 to (de)serialize the REST resources as they are represented as XML data.

The generated C source code depends on the XML Reader API and the XML Writer API as well as the <time.h>, <string.h>, and <stdlib.h> C standard libraries.

Files
name size description
IPMDecisionsWeatherService.c 574.85K

The C module generates the source code for the ANSI-C-compatible data structures and (de)serialization functions that can be used in conjunction with libxml2 to (de)serialize the REST resources as they are represented as XML data.

The generated C source code depends on the XML Reader API and the XML Writer API as well as the <time.h>, <string.h>, and <stdlib.h> C standard libraries.

enunciate-common.c 40.50K Common code needed for all projects.

C# Client Library

Created June 4, 2025

The C# client-side library may be used to access the SOAP API for this application via the C# runtime.

C# Service Example
//instantiate a new service...
IWeatherService service = new IWeatherService();

//make the remote call...
result = service.GetWeatherData(xCoordinate, yCoordinate, isUTM, utmZone, interval, sources, dateFrom, dateTo, weatherDataParameters, baseTempValue, includeTempSum, application, agroId);

//handle the result as needed...
    

Files
name size description
IPMDecisionsWeatherService-csharp-xml-client.zip 5.75K The C# source code for the C# client library.

GWT JSON Overlay

Created June 4, 2025

The Google Web Toolkit JSON Overlay library provides the JSON Overlays that can be used to access the Web service API for this application.

JSON Overlay Example
String url = ...;
RequestBuilder request = new RequestBuilder(RequestBuilder.GET, url);
request.sendRequest(null, new RequestCallback() {
  public void onResponseReceived(Request request, Response response) {
    if (200 == response.getStatusCode()) {
      //handle the successful data...
      JavaScriptObject data = JavaScriptObject.fromJson(response.getText());
      //handle the JavaScriptObject...
    }
    else {
      //handle the error...
    }
  }

  public void onError(Request request, Throwable throwable) {
    //handle the error...
  }
});
    

Files
name size description
IPMDecisionsWeatherService-gwt-json-overlay.jar 9.01K The sources for the GWT JSON overlay.

Java JSON Client Library

Created June 4, 2025

The Java client-side library is used to provide the set of Java objects that can be serialized to/from JSON using Jackson. This is useful for accessing the JSON REST endpoints that are published by this application.

Resources Example (Raw JAXB)
java.net.URL url = new java.net.URL(baseURL + "/rest/amalgamation/interpolate");
ObjectMapper mapper = new ObjectMapper();
java.net.URLConnection connection = url.openConnection();
connection.setDoOutput(true);
connection.connect();

mapper.writeValue(connection.getOutputStream(), object);
Object result = (Object) mapper.readValue( connection.getInputStream(), Object.class );
//handle the result as needed...
    
Resources Example (Jersey client)
javax.ws.rs.client.Client client = javax.ws.rs.client.ClientBuilder.newClient();

Object result = client.target(baseUrl + "/rest/amalgamation/interpolate")
  .get(javax.ws.rs.client.Entity.entity(object, "application/json"), Object.class);

//handle the result as needed...
    

Files
name size description
IPMDecisionsWeatherService-json-client.jar 9.68K The binaries for the Java JSON client library.
IPMDecisionsWeatherService-json-client-json-sources.jar 9.34K The sources for the Java JSON client library.

Java XML Client Library

Created June 4, 2025

The Java client-side library is used to access the Web service API for this application using Java.

The Java client-side library uses JAX-WS to access the SOAP API for this application.

JAX-WS Example
// instantiate a new service with an impl
// (or through dependency injection, or whatever)...
IWeatherService service = new IWeatherService();

//make the remote call to read the result...
result = service.getWeatherData(xCoordinate, yCoordinate, isUTM, utmZone, interval, sources, dateFrom, dateTo, weatherDataParameters, baseTempValue, includeTempSum, application, agroId);

//handle the result as needed...
    

Files
name size description
IPMDecisionsWeatherService-xml-client.jar 42.18K The binaries for the Java XML client library.
IPMDecisionsWeatherService-xml-client-xml-sources.jar 39.25K The sources for the Java XML client library.

JavaScript Client Library

Created June 4, 2025

The JavaScript client-side library defines classes that can be (de)serialized to/from JSON. This is useful for accessing the resources that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").

The library uses ES6 class syntax which has limited support. See MDN and the ES6 Compatibility Table for more details.

The library contains a UMD loader which supports AMD, CommonJS and browser globals. The browser global variable name for this library is "javascriptClient".

JavaScript Example
//read the resource in JSON:
var json = JSON.parse(jsonString);

//create an object
var object = new Object(json);

//retreive the json again
var newJson = object.toJSON();

//serialize the json
var newJsonString = JSON.stringify(newJson);
    

Files
name size description
IPMDecisionsWeatherService-javascript-client-js.zip 4.53K

The JavaScript client-side library defines classes that can be (de)serialized to/from JSON. This is useful for accessing the resources that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").

The library uses ES6 class syntax which has limited support. See MDN and the ES6 Compatibility Table for more details.

The library contains a UMD loader which supports AMD, CommonJS and browser globals. The browser global variable name for this library is "javascriptClient".

JavaScript Example
//read the resource in JSON:
var json = JSON.parse(jsonString);

//create an object
var object = new Object(json);

//retreive the json again
var newJson = object.toJSON();

//serialize the json
var newJsonString = JSON.stringify(newJson);
    

ns0.xsd

Created June 4, 2025

Files
name size description
ns0.xsd 24.03K  

ns1.xsd

Created June 4, 2025

Files
name size description
ns1.xsd 2.10K  

ns2.wsdl

Created June 4, 2025

Files
name size description
ns2.wsdl 5.97K  

ns2.xsd

Created June 4, 2025

Files
name size description
ns2.xsd 22.49K  

ns3.xsd

Created June 4, 2025

Files
name size description
ns3.xsd 2.47K  

ns4.xsd

Created June 4, 2025

Files
name size description
ns4.xsd 1.21K  

ns5.xsd

Created June 4, 2025

Files
name size description
ns5.xsd 2.22K  

Objective C Client Library

Created June 4, 2025

The Objective C module generates the source code for the Objective C classes and (de)serialization functions that can be used in conjunction with libxml2 to (de)serialize the REST resources as they are represented as XML data.

The generated Objective C source code depends on the XML Reader API and the XML Writer API as well as the base OpenStep foundation classes.

Files
name size description
IPMDecisionsWeatherService.h 63.49K

The Objective C module generates the source code for the Objective C classes and (de)serialization functions that can be used in conjunction with libxml2 to (de)serialize the REST resources as they are represented as XML data.

The generated Objective C source code depends on the XML Reader API and the XML Writer API as well as the base OpenStep foundation classes.

IPMDecisionsWeatherService.m 417.79K

The Objective C module generates the source code for the Objective C classes and (de)serialization functions that can be used in conjunction with libxml2 to (de)serialize the REST resources as they are represented as XML data.

The generated Objective C source code depends on the XML Reader API and the XML Writer API as well as the base OpenStep foundation classes.

enunciate-common.h 12.83K Common header needed for all projects.
enunciate-common.m 42.34K Common implementation code needed for all projects.

PHP JSON Client Library

Created June 4, 2025

The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON. This is useful for accessing the resources that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").

This library requires the json_encode function which was included in PHP versions 5.2.0+.

PHP JSON Example
//read the resource in JSON:
$json = ...;

//read the json as an array.
$parsed = json_decode($json, true);

//read the json array as the object
$result = new Object($parsed);

//open a writer for the json
$json = $result->toJson();
    

Files
name size description
IPMDecisionsWeatherService-php-json-client-php.zip 4.94K

The PHP JSON client-side library defines the PHP classes that can be (de)serialized to/from JSON. This is useful for accessing the resources that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").

This library requires the json_encode function which was included in PHP versions 5.2.0+.

PHP JSON Example
//read the resource in JSON:
$json = ...;

//read the json as an array.
$parsed = json_decode($json, true);

//read the json array as the object
$result = new Object($parsed);

//open a writer for the json
$json = $result->toJson();
    

PHP XML Client Library

Created June 4, 2025

The PHP client-side library defines the PHP classes that can be (de)serialized to/from XML. This is useful for accessing the resources that are published by this application, but only those that produce a XML representation of their resources.

This library leverages the XMLReader and XMLWriter tools that were included in PHP versions 5.1.0+.

Files
name size description
IPMDecisionsWeatherService-php-xml-client-php.zip 9.71K

The PHP client-side library defines the PHP classes that can be (de)serialized to/from XML. This is useful for accessing the resources that are published by this application, but only those that produce a XML representation of their resources.

This library leverages the XMLReader and XMLWriter tools that were included in PHP versions 5.1.0+.

Ruby JSON Client Library

Created June 4, 2025

The Ruby JSON client-side library defines the Ruby classes that can be (de)serialized to/from JSON. This is useful for accessing the REST endpoints that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").

This library leverages the Ruby JSON Implementation, which is required in order to use this library.

Ruby JSON Example
require 'net/https'
require 'uri'
//...

//read a resource from a REST url
url = URI.parse("...")
request = Net::HTTP::Get.new(url.request_uri)
input = Object.new
//set up the Object...
request.body = input.to_json
request['Content-Type'] = "application/json"

http = Net::HTTP.new(url.host, url.port)
//set up additional http stuff...
res = http.start do |ht|
  ht.request(request)
end

result = Object.from_json(JSON.parse(res.body))

//handle the result as needed...
    

Files
name size description
IPMDecisionsWeatherService.rb 50.35K

The Ruby JSON client-side library defines the Ruby classes that can be (de)serialized to/from JSON. This is useful for accessing the REST endpoints that are published by this application, but only those that produce a JSON representation of their resources (content type "application/json").

This library leverages the Ruby JSON Implementation, which is required in order to use this library.

Ruby JSON Example
require 'net/https'
require 'uri'
//...

//read a resource from a REST url
url = URI.parse("...")
request = Net::HTTP::Get.new(url.request_uri)
input = Object.new
//set up the Object...
request.body = input.to_json
request['Content-Type'] = "application/json"

http = Net::HTTP.new(url.host, url.port)
//set up additional http stuff...
res = http.start do |ht|
  ht.request(request)
end

result = Object.from_json(JSON.parse(res.body))

//handle the result as needed...