Skip to main content
Question

Getting metadata records from CSW

  • March 23, 2020
  • 1 reply
  • 51 views

Forum|alt.badge.img+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

debbiatsafe
Safer
Forum|alt.badge.img+20

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings