DACS.SERVICES(8) DACS Web Services and CGI DACS.SERVICES(8)

NAME

dacs.services — DACS web services

SYNOPSIS

dacswebservice [dacsoptions]

DESCRIPTION

These web services are part of the DACS suite.

The following is a list of DACS web services with a brief description of each. General aspects of DACS and its web services are discussed in dacs(1). Individual web services are discussed in more detail elsewhere. By default, these CGI programs are installed in the dacs subdirectory of the Apache cgi-bin directory.

By convention, DACS web service names use underscores as word separators. Some web services have command counterparts; their names omit the underscores.

Standard CGI Arguments for DACS Web Services

The following set of CGI arguments are recognized by most DACS web services. When the document for a DACS web service says that it accepts "the standard CGI arguments", it is referring to the following arguments; not all of these arguments are necessarily meaningful to all web services, however.

In general, duplicate CGI argument names are not allowed; i.e., you cannot pass an argument named DACS_JURISDICTION more than once when calling a DACS web service, even if each occurrence of the argument has the same value.

DACS_JURISDICTION

This argument is required by most web services. It specifies the name of the jurisdiction to which the request is being sent. Web services will verify that the jurisdiction that receives the request is the same as the intended recipient.

DACS_VERSION

If this argument is present, it specifies the major DACS version number (e.g., 1.4) expected by the client. The service request will fail if the DACS software does not support this version number. If not provided, no compatibility checks are performed.

FILE

Reserved for future use for file uploading. Requests content type application/x-dacs-credentials.

FORMAT

This optional argument requests a particular output format. The default value varies, but it is usually HTML. Not all formats are supported by every web service; refer to the manual page for details. The following values may be recognized:

HTML

Requests content type text/html;

JSON

Requests content type application/json (JavaScript Object Notation, see www.json.org, ECMA-404, RFC 4627, and RFC 7159);

PHP

Used by the dacs_list_jurisdictions(8) web service when its output is to processed by PHP;

PLAIN

Requests content type text/plain;

TEXT

Like PLAIN except that no content type is specified;

URI

An encoding based on RFC 2396;

URL

Equivalent to URI;

XML

Requests content type text/xml. If the DTD_BASE_URL directive is configured, a DOCTYPE element with the keyword SYSTEM followed by a value derived from DTD_BASE_URL is emitted; e.g.,

<!DOCTYPE foo SYSTEM "http://fedroot.com/dacs/dtd-xsd/foo.dtd">

If DTD_BASE_URL is not configured, an internal DTD is emitted. A default xmlns attribute is emitted in both cases;

XMLDTD

Requests content type text/xml This emits an internal DTD and default xmlns attribute;

XMLSCHEMA

Requests content type text/xml. If the XSD_BASE_URL directive is configured, xmlns:xsi and xsi:schemaLocation attributes are emitted, the former having a compile-time value (e.g., "http://www.w3.org/2001/XMLSchema-instance") and the latter being a pair, the first having the same value as the value of the xmlns attribute and the second having a value derived from XSD_BASE_URL; e.g.,

<foo xmlns="http://fedroot.com/dacs/v1.4"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://fedroot.com/dacs/v1.4
    http://amd.dss.bc.ca/dacs/dtd-xsd/foo.xsd">
 

The default xmlns attribute is also emitted. If XSD_BASE_URL is not configured, only the default xmlns attribute is emitted; and

XMLSIMPLE

Requests content type text/xml Neither a DTD (no DOCTYPE) nor a default xmlns attribute is emitted.

Also see the -format command line flag (one of the dacsoptions).

DIAGNOSTICS

Programs usually exit 0 if everything was fine, 1 if an error occurred.

AUTHOR

Distributed Systems Software (www.dss.ca)

COPYING

Copyright 2003-2014 Distributed Systems Software. See the LICENSE file that accompanies the distribution for licensing information.

DACS Version 1.4.39 26-May-2017 DACS.SERVICES(8)

Table of Contents
Font:
−− Set ++

$Id: dacs.services.8.xml 2965 2017-05-25 20:52:07Z brachman $