GetRecordById Request

Feedback


  1. The SuperMap iServer CSW service currently provides a Get request mode, that is, a GetRecordById request that supports the Get mode:

Request parameters

The operation of GetRecordById follows the HTTP protocol. The user terminal submits a request to the server in KVP encoding format. The main request parameters are as follows:

Table 1 Main Parameters of GetRecordById Operation Request

Request parameters Whether it is required Description
SERVICE=CSW

Yes

Service type

Request CSW Service, request type needs to be set to " CSW ".

VERSION=version

Yes

Version number of the service support.

The version number of the service needs to be set to "2.0.2".

REQUEST=GetRecordById

Yes

The name of the requested operation.

Request for GetRecordById operation. The request name needs to be set to'GetRecordById '.

ELEMENTSETNAME=ElementSetName

No

Returns the result type.

Values can be brief, summary, full.

OUTPUTFORMATE=outputFormat

No

Output format.

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

OUTPUTSCHEMA=outputSchema

No

Structure and format of results used

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

ID=Id

Yes

Indicates the Id to be queried.

Separated by commas in the URL, the value must be consistent with the corresponding metadata file name.

Describe:The capitalization of parameters is not mandatory, and the order of requesting parameters can also be arranged in any order.

Get request

The operation of Get RecordById and the Get request method are as follows:

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

ServiceRoot is the URI root directory of the service. Please refer to URI Settings .

The GetRecordById operation follows the HTTP-protocol, for example, after the SuperMap iServer CSW 2.0.2 service on the local machine is successfully started, the address of the URI used for Get access to the GetRecordById operation is: http://localhost:8090/iserver/services.csw?SERVICE=CSW&REQUEST=GetRecordById&VERSION=2.0.2&id=703448797/.