Harvest Request |
The main request parameters for the Harvest operation are shown in the following table:
Table 1 Main Parameters of Harvest 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 ". |
REQUEST=Harvest |
Yes |
Request name Harvest operation is requested. The request name needs to be set to "Harvest". |
VERSION=version |
Yes |
Version number of the service support The version number of theservice needs to be set to "2.0.2". |
SOURCE=Source |
Yes |
URI address Specify the source of obtaining Harvest metadata, such as http://localhost:8090/iserver/services/map-world/wmts100? |
RESOURCETYPE=ResourceType |
Yes |
URI address, indicating the standard type of metadata to be obtained. This parameter points to a schema document that defines the structure for obtaining source information, such as: http://www.isotc211.org/2005/gmd/ (ISO 19139 Standard) http://data.sbsm.gov.cn/smmd/2007 (Metadata Content Specification for Geographic Information Web Distribution Service) |
RESOURCEFORMAT=ResourceFormat |
No |
Gets the MIME format of the metadata The default is application/xml |
Note: The case of the parameters is not required, and the order of the request parameters can also be arranged in any order.
Harvest operations are requested as follows:
<ServiceRoot>?SERVICE=CSW&VERSION=version&REQUEST=Harvest&SOURCE=Source&RESOURCETYPE=ResourceType
ServiceRoot is the URI root directory of the service. Please refer to URI Settings .
For example, after the Native SuperMap iServer CSW 2.0.2 service starts successfully, the URI of the Harvest 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.
The response result of this request example is shown in the Response Example .
The Harvest operation POST is requested as follows:
Harvest operation follows the HTTP protocol, and the user terminal can also submit a request to the server in the POST mode, for example, after the successful startup of the SuperMap iServer CSW 2.0.2 service on this machine, the address of the URI for POST access to the Harvest operation is: http://localhost:8090/iserver/services.csw?
An example of a request entity is as follows:
The response result of this request example is shown in theResponse Example.