RE: Search DAV:like

2004-03-26 Thread Wallmer, Martin
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]



Search DAV:like

2004-03-25 Thread Juan Andr?s Bentancour

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]



Re: Search DAV:like

2004-03-25 Thread Julian Reschke
Juan Andr?s Bentancour wrote:
...
(from http://www.webdav.org/dasl/protocol/draft-dasl-protocol-00.html
...
Hi,

I'm not familiar with Slide, so I can't answer that question. The query 
itself looks fine.

Also note that the current draft for DASL is here:

http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html

Regards, Julian

--
green/bytes GmbH -- http://www.greenbytes.de -- tel:+492512807760
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Search DAV:like

2004-03-25 Thread Juan Andrés Bentancour
El jue, 25-03-2004 a las 18:27, Julian Reschke escribió:
 Juan Andr?s Bentancour wrote:
  ...
  (from http://www.webdav.org/dasl/protocol/draft-dasl-protocol-00.html
  ...
 
 Hi,
 
 I'm not familiar with Slide, so I can't answer that question. The query 
 itself looks fine.
 
:(

 Also note that the current draft for DASL is here:
 
 http://greenbytes.de/tech/webdav/draft-reschke-webdav-search-latest.html

...
5.5.2  Handling Optional operators 
If a query contains an operator that is not supported by the server,
then the server MUST respond with a 422 (Unprocessable Entity) status
code. 


DASL defines LIKE operator, but we dont have an implementation (LIKE is
an optional operator). I have no idea where to start.   any help would be
appreciated !

Regards,


-- 
Juan Andrés Bentancour [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]