Mathieu: looking at document 07-045, table 29, it looks like NAMESPACE
is formatted as you say.
However, I think this would look like, in GET:
http://host/?service=CSW&version=2.0.2&request=GetRecords&.....&namespac
e=xmlns:xmlns(csw=http='//www.opengis.net/cat/csw/2.0.2).
In POST mode, I don't see NAMESPACE in either the CSW or APISO schemas.
The XML document GN sends, which looks like:
<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'><Query
typeNames='csw:Record'><ElementSetName>summary</ElementSetName></Query><
/GetRecords></ows:ExceptionText>
...does not validate or is well-formed (offending xmlns: format).
I would imagine, in POST mode, that namespaces be simply defined in the
XML document like xmlns:csw="http://www.opengis.net/cat/csw/2.0.2", etc.
..Tom
-----Original Message-----
From: Mathieu Coudert [mailto:mathieu.coudert@anonymised.com]
Sent: Friday, 28 May 2010 04:02
To: Kralidis,Tom [Ontario]
Cc: steve.richard@anonymised.com; geonetwork-devel@lists.sourceforge.net
Subject: Re: [GeoNetwork-devel] CSW harvesting issues
Hi Tom and Stephen,
I don't think namespace declaration in request is wrong, have
a look at that :
http://osgeo-org.1803224.n2.nabble.com/Re-Failed-harvest-of-2-
0-2-CSW-td4861039.html#none
HTH,
Cheers,
Mathieu
<http://osgeo-org.1803224.n2.nabble.com/Re-Failed-harvest-of-2
-0-2-CSW-td4861039.html#none>
On Thu, May 27, 2010 at 3:34 PM, Kralidis,Tom [Ontario]
<Tom.Kralidis@anonymised.com> wrote:
Any update on this issue? It appears that GeoNetwork
is sending the
offending XML for harvest?
..Tom
> -----Original Message-----
> From: Kralidis,Tom [Ontario] [mailto:Tom.Kralidis@anonymised.com]
> Sent: Thursday, 13 May 2010 11:28
> To: steve.richard@anonymised.com;
geonetwork-devel@lists.sourceforge.net
> Subject: Re: [GeoNetwork-devel] CSW harvesting issues
>
>
> Right. Is this what GeoNetwork is sending to the server?
> That's what it looks like.
>
> > -----Original Message-----
> > From: Stephen M Richard [mailto:steve.richard@anonymised.com]
> > Sent: Thursday, 13 May 2010 11:26
> > To: geonetwork-devel@lists.sourceforge.net
> > Subject: Re: [GeoNetwork-devel] CSW harvesting issues
> >
> > namespace declaration in request is wrong
> > > xmlns:xmlns(csw=http='//www.opengis.net/cat/csw/2.0.2)'
> > >
> > should be xmlns:csw="http://www.opengis.net/cat/csw/2.0.2"
> >
> > On 5/13/2010 6:27 AM, Kralidis,Tom [Ontario] wrote:
> > > Hi: I am attempting to harvest a CSW server with
GN trunk. When
> > > attempting the first run in the admin interface, an error
> > is returned:
> > >
> > > <ows:ExceptionReport
xmlns:ows="http://www.opengis.net/ows"
> > > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> > version="2.0.2"
> > > xsi:schemaLocation="http://www.opengis.net/ows
> > >
http://schemas.opengis.net/ows/1.0.0/owsExceptionReport.xsd
> > > http://www.opengis.net/cat/csw/2.0.2
> > > http://schemas.opengis.net/csw/2.0.2/CSW-discovery.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'
> > > outputFormat='application/xml'
> > > outputSchema='http://www.isotc211.org/2005/gmd’
startPosition='1'
> > > maxRecords='20'&gt;&lt;Query
> > >
> >
>
typeNames='csw:Record'&gt;&lt;ElementSetName&gt;summary&am
> > > p;
> > >
> >
>
lt;/ElementSetName&gt;&lt;/Query&gt;&lt;/GetRecords&am
> > > p;
> > > gt;</ows:ExceptionText>
> > > </ows:Exception>
> > > </ows:ExceptionReport>
> > >
> > > Looks like GN's GetRecords request as part of the
harvest job is
> > > echoed back. Any idea (perhaps the namespace
declarations)?
> > >
> > > ..Tom
> > >
> > >
> >
>
----------------------------------------------------------------------
> > > --------
> > >
> > > _______________________________________________
> > > 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
> > >
> > >
> >
> > --
> > Stephen M. Richard
> > Section Chief, Geoinformatics
> > Arizona Geological Survey
> > 416 W. Congress St., #100
> > Tucson, Arizona, 85701 USA
> >
> > Phone:
> > Office: (520) 209-4127
> > Reception: (520) 770-3500
> > FAX: (520) 770-3505
> >
> > email: steve.richard@anonymised.com
> >
> >
> >
--------------------------------------------------------------
> > ----------------
> >
> > _______________________________________________
> > 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
> >
>
> --------------------------------------------------------------
> ----------------
>
> _______________________________________________
> 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
>
--------------------------------------------------------------
----------------
_______________________________________________
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