Select to view content in your preferred language

How to use GetRecordById?

1719
1
01-04-2012 04:02 PM
lynnwang
Deactivated User
Hi,
   I'm a new user of Geopotal.Now,I try to use OGC CS-W GetRecordById operation to get a record from geoportal. Here is my KVP request:
   http://localhost:8080/geoportal/csw?REQUEST=GetRecordById&service=CSW&version=2.0.2&Id=FDD685A1-04B9...

  I use Simple Authentication. I uploaded metadata xml already,and approved it. The id value is from the Table GPT_RESOURCE field DOCUUID.
 
   But I can't get metadata back,only received this:
  <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
  <csw:GetRecordByIdResponse xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:dcmiBox="http://dublincore.org/documents/2000/07/11/dcmi-box/" xmlns:dct="http://purl.org/dc/terms/" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" xmlns:xsd="http://www.w3.org/2001/XMLSchema" />

  Is there something wrong with my request?  thank you!
0 Kudos
1 Reply
lynnwang
Deactivated User
I make it out!
http://localhost:8080/geoportal/csw?REQUEST=GetRecordById&service=CSW&version=2.0.2&Id={17606EF2-37DD-41F5-80C0-F0F5A9CD731F}

the {} is needed!!
0 Kudos