Use of the webService (ConstellioSolrServlet)

47 views
Skip to first unread message

Antwan

unread,
May 22, 2012, 9:03:58 AM5/22/12
to Constellio
I’m a new user of Constellio, I like it and i have a question
concerning the webService. When I use it by an url like Constellio/app/
select?param or Constellio/app/solr?param it work perfectly (as shown
in the wiki) but I wanted to exploit an opportunity offered by
Constellio ie. Using the servlet ConstellioSolrServlet with this kind
of url: Constellio/select?+param.
In practice a request through this url works only if the web
application has already been initialized but SolrServletEmulator does
not initialized it systematically. So I have to run Constellio on a
browser before using the webService. I tried to fixed this with the
instruction ConstellioApplication.initializeIfRequired() and it works
well only if I provided for the first request the parameters username
and password (to avoid a null session error). My question is, do I try
to use this servlet in a wrong way (the servlet doesn’t exist for
this) or is there a will (perhaps not finalized) to make it possible
to query the collections without launching the web application?

Really sorry for my poor English!
Best regards,

Antwan



Bonjour,
J’utilise depuis peu Constellio que j'apprécie beaucoup et j’ai une
question concernant le webService.
Passer par le webService /app/select?param ou /app/solr?param
fonctionne à merveille mais j’ai souhaité exploiter une possibilité
offerte par Constellio c'est-à-dire passer par la servlet
ConstellioSolrServlet avec une url de type /Constellio/select?param
C’est ici que survient mon interrogation, la requête aboutie seulement
si l’application à été initialisée, hors SolrServletEmulator ne le
fait pas automatiquement. J’ai réussi en systématisant
l’initialisation (ConstellioApplication.initializeIfRequired()) mais
on doit fournir lors de la première requête les paramètres
d’authentification (username password). Ma question est donc la
suivante, est-ce-que j’essaye d’utiliser cette servlet de façon
abusive (elle n’est pas faîtes pour ça) ou est ce qu’il y’a une
volonté peut-être non finalisé de pouvoir interroger les collections
créées en s’affranchissant de l’application web?
Cordialement,

Antwan


Reply all
Reply to author
Forward
0 new messages