[GeoNetwork-devel] Failed harvest of 2.0.2 CSW

Hey Folks,

I am trying to harvest data from the following getCap request. The catalogue claims to be 2.0.2

http://geodiscover.cgdi.ca/wes/serviceManagerCSW/csw?request=getCapabilities&service=CSW&version=2.0.2

Just wondering if anyone can harvest it using GeoNetwork. I am running 2.4.2 and can not access it.

Log files spit back the following error. Can anyone decipher. Is this a GeoNetwork problem or the remote catalogue?

GDP
259c3df4-4a4e-4490-a6d1-39df6659efb4

false



http://geodiscover.cgdi.ca/wes/serviceManagerCSW/csw?request=getCapabilities&service=CSW&acceptVersions=2.0.2

default.gif


90
false
active












false


Raised exception when searching
OperationAbortedEx

java.lang.Exception: Bad exception (unknown 'exceptionCode') : <ows:ExceptionReport xmlns:ows="[http://www.opengis.net/ows](http://www.opengis.net/ows)" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)" version="2.0.2" xsi:schemaLocation="[http://www.opengis.net/ows](http://www.opengis.net/ows) [http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">&#xD](http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd);

<ows:Exception exceptionCode=“InvalidRequest” locator=“Error”>
<ows:ExceptionText>Error during parsing: Attribute name “xmlns:xmlns” associated with an element type “GetRecords” must be followed by the ’ = ’ character. &lt;GetRecords service=‘CSW’ version=‘2.0.2’ xmlns:xmlns(csw=http=‘//www.opengis.net/cat/csw/2.0.2)’ xmlns:xmlns(gmd=http=‘//www.isotc211.org/2005/gmd)’ resultType=‘results’ outputSchema='http://www.isotc211.org/2005/gmd’ startPosition=‘1’ maxRecords=‘20’&gt;&lt;Query typeNames=‘csw:Record’&gt;&lt;ElementSetName&gt;summary&lt;/ElementSetName&gt;&lt;/Query&gt;&lt;/GetRecords&gt;</ows:ExceptionText>

</ows:Exception>
</ows:ExceptionReport>


Hi David,

I tried to harvest your specified CSW server using the following GetCapabilities request [1].

I’m facing the same issue you did…
Having a look at the Geonetwork logs and especially the request sent by the harvester [2], it seems that the remote CSW server does not interpret correctly the way namespace are sent to the server.
Indeed, as the exception report there is an error during parsing of namespace parameters : “Error during parsing: Attribute name “xmlns:xmlns” associated with an element type “GetRecords” must be followed by the ’ = ’ character. <GetRecords service=‘CSW’ version=‘2.0.2’ xmlns:xmlns(csw=http=‘//www.opengis.net/cat/csw/2.0.2)’ xmlns:xmlns(gmd=http=‘//www.isotc211.org/2005/gmd)’ resultType=‘results’ outputFormat=‘application/xml’ outputSchema=‘http://www.isotc211.org/2005/gmd’ startPosition=‘1’ maxRecords=‘20’>summary”

However, regarding CSW specification [3], namespace parameters should be sent as a list of character string (comma separated), and the format must be xmlns([prefix=]namespace-url).

So IHMO, it seems to be a problem parsing namespace parameters from the remote CSW server, which is not implementing the CSW 2.0.2 specification concerning that point…

HTH,
Cheers,

Mathieu

[1] http://geodiscover.cgdi.ca/wes/serviceManagerCSW/csw?request=getCapabilities&service=CSW&version=2.0.2

[2] http://geodiscover.cgdi.ca/wes/serviceManagerCSW/csw?request=GetRecords&service=CSW&version=2.0.2&resultType=results&namespace=xmlns(csw=http://www.opengis.net/cat/csw/2.0.2),xmlns(gmd=http://www.isotc211.org/2005/gmd)&outputFormat=application%2Fxml&outputSchema=http://www.isotc211.org/2005/gmd&startPosition=1&maxRecords=20&elementSetName=summary&constraintLanguage=CQL_TEXT&constraint_language_version=1.1.0&typeNames=csw:Record

[3] OpenGIS Catalogue Services Specification 2.0.2 - ISO Metadata Application Profile (07-045), page 65, table29.

On Tue, Apr 6, 2010 at 10:05 PM, Sampson, David <David.Sampson@anonymised.com670…> wrote:

Hey Folks,

I am trying to harvest data from the following getCap request. The catalogue claims to be 2.0.2

http://geodiscover.cgdi.ca/wes/serviceManagerCSW/csw?request=getCapabilities&service=CSW&version=2.0.2

Just wondering if anyone can harvest it using GeoNetwork. I am running 2.4.2 and can not access it.

Log files spit back the following error. Can anyone decipher. Is this a GeoNetwork problem or the remote catalogue?

GDP
259c3df4-4a4e-4490-a6d1-39df6659efb4

false



http://geodiscover.cgdi.ca/wes/serviceManagerCSW/csw?request=getCapabilities&service=CSW&acceptVersions=2.0.2

default.gif


90
false
active












false


Raised exception when searching
OperationAbortedEx

java.lang.Exception: Bad exception (unknown 'exceptionCode') : <ows:ExceptionReport xmlns:ows="[http://www.opengis.net/ows](http://www.opengis.net/ows)" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance](http://www.w3.org/2001/XMLSchema-instance)" version="2.0.2" xsi:schemaLocation="[http://www.opengis.net/ows](http://www.opengis.net/ows) [http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd">&#xD](http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd);

<ows:Exception exceptionCode=“InvalidRequest” locator=“Error”>
<ows:ExceptionText>Error during parsing: Attribute name “xmlns:xmlns” associated with an element type “GetRecords” must be followed by the ’ = ’ character. &lt;GetRecords service=‘CSW’ version=‘2.0.2’ xmlns:xmlns(csw=http=‘//www.opengis.net/cat/csw/2.0.2)’ xmlns:xmlns(gmd=http=‘//www.isotc211.org/2005/gmd)’ resultType=‘results’ outputSchema='http://www.isotc211.org/2005/gmd’ startPosition=‘1’ maxRecords=‘20’&gt;&lt;Query typeNames=‘csw:Record’&gt;&lt;ElementSetName&gt;summary&lt;/ElementSetName&gt;&lt;/Query&gt;&lt;/GetRecords&gt;</ows:ExceptionText>

</ows:Exception>
</ows:ExceptionReport>



Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork