[geotk] CSW client : unmarshalling issue

Damiano ALBANI damiano.albani at univ-nantes.fr
Wed May 11 05:01:02 EDT 2011


Here's another thing that looks strange.
With this code:

   GetRecordsRequest request = cswServer.createGetRecords();
   request.setMaxRecords(5);
   request.setStartPosition(1);
   request.setResultType(ResultType.RESULTS);
   request.setOutputFormat("application/xml");
   request.setOutputSchema("http://www.isotc211.org/2005/gmd");
   request.setTypeNames("csw:Record");
   request.setConstraint("csw:Title like '%Africa%'");
   request.setDistributedSearch(false);

InputStream stream = request.getResponseStream();

Works fine, except that the request XML does contain a 
<DistributedSearch/> element, even though I specifically requested to 
turn it off.

-- 
Damiano ALBANI



More information about the Geotoolkit mailing list