Question

Getting metadata records from CSW

  • 23 March 2020
  • 1 reply
  • 11 views

Badge +1

I want to get and sort metadata from a CSW.

I have tried using the HTTPCaller and sent this request: https://www.geonorge.no/geonetwork/srv/nor/csw-dataset with POST and BODY:

 

 

<?xml version="1.0"?>

<csw:GetRecords xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" service="CSW" version="2.0.2"

resultType="results" outputSchema="csw:IsoRecord" startPosition="1" maxRecords="15">

<csw:Query typeNames="gmd:MD_Metadata">

<!--

<csw:ElementSetName>brief</csw:ElementSetName>

<csw:ElementSetName>summary</csw:ElementSetName>

<csw:ElementSetName>full</csw:ElementSetName>

-->

<csw:Constraint version="1.1.0">

<Filter xmlns="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml"/>

</csw:Constraint>

</csw:Query>

</csw:GetRecords>

 

I can see the data in the inspector but I don't know how to proceed to sort the data.


1 reply

Userlevel 3
Badge +17

Hi @johsflesj

I was not able to successfully retrieve records from the service using the XML body you have provided.

But as a CSW service returns XML, I would recommend using our XML transformers such as XMLFragmenter or XMLFlattener to work with the data returned.

Reply