Harvest Request

Feedback


Request Parameters

Main request parameters for Harvest operation are listed in the following table.

Table 1 Main Parameters of Harvest operation

Request Parameters O/M Description
SERVICE=CSW

Mandatory

Request CSW service, request types should be set as CSW.

REQUEST=Harvest

Mandatory

Request name.

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

VERSION=version

Mandatory

Supported version.

The service version should be set as "2.0.2".

SOURCE=Source

Mandatory

URI address.

Specify the getting source of Harvest metadata. For example: http://localhost:8090/iserver/services/map-world/wmts100?

RESOURCETYPE=ResourceType

Mandatory

URI address, the description of the standard type of metadata.

This parameter points to a defined model document of accessing the source information structure. For example:

http://www.isotc211.org/2005/gmd/(ISO 19139 standard)

http://data.sbsm.gov.cn/smmd/2007 (Geographic Information Network Distribution Service Metadata Content Specification)

RESOURCEFORMAT=ResourceFormat

Optional

Get the MIME format of the metadata.

The default is "application/xml".

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

Request Sample

Request method of Harvest operation are shown as follows:

<ServiceRoot>?SERVICE=CSW&VERSION=version&REQUEST=Harvest&SOURCE=Source&RESOURCETYPE=ResourceType

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

For example, after the local SuperMap iServer CSW 2.0.2 service is started successfully, the URI of accessing the GetCapabilities operation is: http://localhost:8090/iserver/services.csw?SERVICE=CSW&REQUEST=Harvest&VERSION=2.0.2&source=http://demo.iserver.com:8090/iserver/services/map-world/wms111/World&resourcetype=http://www.isotc211.org/2005/gmd.

Please refer to to see the result.

POST Request

Post request method of Harvest operation is shown as follows:

Harvest operation obeys HTTP protocol. The client uses POST method to send request. For example, after the local SuperMap iServer CSW 2.0.2 service is started successfully, the URI of accessing the Harvest operation is: http://localhost:8090/iserver/services.csw?.

The request body is shown as follows:

Please refer to Response Sample.