Hi all, I?ve implemented a searchMethod() method in a WebdavResource subclass. (thanks Ingo). a first version is:
public Enumeration searchMethod(HttpURL httpURL, String queryXML) throws HttpException, IOException { setClient(); SearchMethod sm = new SearchMethod(httpURL.getEscapedPath(), queryXML); super.client.executeMethod(sm); Enumeration responseUrls = sm.getAllResponseURLs(); System.out.println(sm.getStatusCode() + sm.getStatusText() + sm.getStatusLine()); return responseUrls; } Now, I have another problem. I need to use LIKE operator when I search for properties values. For example: Retrieve all images files: <D:searchRequest xmlns:D="DAV:"> <D:basicSearch> <D:select> <D:prop> <D:getcontenttype /> </D:prop> </D:select> <D:from> <D:scope> <D:href>/slide/files/Destinos/ImagenesSatelitales</D:href> <D:depth>infinity</D:depth> </D:scope> </D:from> <D:where> <D:like> <D:prop> <D:getcontenttype /> </D:prop> <D:literal>image%</D:literal> </D:like> </D:where> </D:basicSearch> </D:searchRequest> Status code: 422 Unprocessable Entity HTTP/1.1 (from http://www.webdav.org/dasl/protocol/draft-dasl-protocol-00.html 422 Unprocessable entity. The query could not be executed. If a text/xml request entity was provided, then it may have been valid (well-formed) but may have contained an unsupported or unimplemented query operator. ) If I use "EQ" instead of "LIKE" all works properly. Is LIKE operator implemented in Slide ? How could I implement it ? Has anyone already done it ? thanks in advance, -- Juan Andres Bentancour -------- E-mail y acceso a Internet UltraVeloz totalmente GRATIS en Buenos Aires, Rosario, Cordoba, Mendoza, La Plata y Pilar http://www.Argentina.com Nro. de acceso 5078-5000 Usuario: Argentina Password: Argentina --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]