Hello,
we inserted a metadata set with the fileIdentifier XXXid as user XYZ, who is an administrator, into the CSW programatically (direct communication per http-post with the CSW).
This is, how the metadata-xml starts:
<gmd:MD_Metadata xsi:schemaLocation="http://www.isotc211.org/2005/gmd http://schemas.opengis.net/iso/19139/20060504/gmd/gmd.xsd"
xmlns:gmd="http://www.isotc211.org/2005/gmd"
xmlns:gco="http://www.isotc211.org/2005/gco"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:gml="http://www.opengis.net/gml"
xmlns:xlink="http://www.w3.org/1999/xlink">
<gmd:fileIdentifier>
<gco:CharacterString>XXXid</gco:CharacterString>
</gmd:fileIdentifier>
<gmd:language>
[...]
and this is the postbody we used to delete the metadata set:
<?xml version="1.0" encoding="UTF-8"?>
<csw:Transaction service="CSW" version="2.0.2" xmlns:csw="http://www.opengis.net/cat/csw/2.0.2" xmlns:ogc="http://www.opengis.net/ogc" xmlns:apiso="http://www.opengis.net/cat/csw/apiso/1.0">
<csw:Delete>
<csw:Constraint version="1.1.0">
<ogc:Filter>
<ogc:PropertyIsEqualTo> <ogc:PropertyName>AnyText</ogc:PropertyName>
<ogc:Literal>XXXid</ogc:Literal>
</ogc:PropertyIsEqualTo>
</ogc:Filter>
</csw:Constraint>
</csw:Delete>
</csw:Transaction>
We also tried with <ogc:PropertyName>apiso:fileIdentifier</ogc:PropertyName>. But it did not work. No deletion, no error message, just the response, that 0 datasets were deleted.
We firstly logged in as user XYZ. What is wrong with the Delete-postbody???
Cheers,
Kieran
--
NEU: FreePhone - 0ct/min Handyspartarif mit Geld-zurück-Garantie!
Jetzt informieren: http://www.gmx.net/de/go/freephone