Hi,
in the generic search of slide LIKE is not implemented.
Regards,
Martin
-Original Message-
From: Juan Andr?s Bentancour [mailto:[EMAIL PROTECTED]
Sent: Donnerstag, 25. März 2004 18:32
To: [EMAIL PROTECTED]
Subject: Search DAV:like
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:depthinfinity/D:depth
/D:scope
/D:from
D:where
D:like
D:prop
D:getcontenttype /
/D:prop
D:literalimage%/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]
--
The content of this e-mail is confidential, may contain privileged material
and is intended solely for the recipient(s) named above. If you receive this
in error, please notify Software AG immediately and delete this e-mail.
Software AG (UK) Limited
Registered in England Wales 1310740
Registered Office: Hudson House, Hudson Way,
Pride Park, Derby DE24 8HS
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]