GetRecordById Request

Feedback


  1. SuperMap iServer CSW service supports Get request method currently, that is, it supports GetRecordById request by Get method.

Request Parameters

GetRecordById operation obeys HTTP protocol. The client uses KVP encoding format to send request. The main request parameters are shown as follows:

Table 1 Main Parameters of GetRecordById Operation Request

Request Parameters O/M Description
SERVICE=CSW

Mandatory

Service type.

Request CSW service,request type should be set as “CSW”.

VERSION=version

Mandatory

Supported version.

The service version should be set as "2.0.2".

REQUEST=GetRecordById

Mandatory

Name of the request operation.

Request GetRecordById operation. The request name should be set as "GetRecordById".

ELEMENTSETNAME=ElementSetName

Optional

The returned result type.

The value could be brief, summary or full.

OUTPUTFORMATE=outputFormat

Optional

Output format.

Used to control the output format. The default is application/xml.

OUTPUTSCHEMA=outputSchema

Optional

The result structure and format

The default value is http://www.opengis.net/cat/csw/2.0.2.

ID=Id

Mandatory

Represent the query ID.

Use comma to separate in URL. This value should be consistent with the metadata file name.

Note:The case of parameters is not mandatory, and request parameters can be arranged in an arbitrary order.

GET Request

Get request method of GetRecordById operation is shown as follows:

<ServiceRoot>?SERVICE=CSW&REQUEST=GetRecordById&VERSION=2.0.2&ID=id

ServiceRoot is the service URI root directory. Please see Setting the service URI  .

GetRecordById operation obeys HTTP protocol. E.g., after the local SuperMap iServer CSW 2.0.2 service is started successfully, the URI address of accessing the Execute operation is: http://localhost:8090/iserver/services.csw?SERVICE=CSW&REQUEST=GetRecordById&VERSION=2.0.2&id=703448797 。