« XQuery/HelloWorld » : différence entre les versions

Contenu supprimé Contenu ajouté
Ligne 55 :
* Dans eXist, le fait de copier un fichier via l'OS dans <code>C:\eXist-db\webapp\WEB-INF\data\fs\db</code> ne l'ajoutera pas au serveur. Il faut cliquer depuis le tableau de bord du logiciel dans "Collection", puis sur l'icône "Upload resources". Par exemple avec le fichier téléchargé précédemment, une fois importée on peut y accéder via : http://localhost:8080/exist/rest/db/helloWorld_3.xq.
 
Cette URL est composée de trois éléments importants :
There are three important items to note in this URL.
# Il s'agit du chemain par défaut de la configuration eXist.
# This is the URL that you would use if you used the default eXist configuration
# Le mot "rest" figurant avant "/db" dénote l'utilisation de l'interface REST (par opposition à WebDAV, {{w|Atom}} ou {{w|SOAP}}). Pour les modifier il faudrait utiliser l'[[Apache/URL Rewriting|URL rewriting]] du serveur web.
# Note that the world "rest" is in the URL before the "/db" indicating that you are using the REST interface (as opposed to the WebDAV, Atom or SOAP interface)
# NotePar thatcontre, thele port is "8080" (thesuivi defaultdu port for development web sites) and that the "context" of the server iscontexte "exist". peuvent Bothêtre ofchangés theseen canéditant bele easily changed by editing thefichier <code>$EXIST_HOME/tools/jetty/etc/conf.xml</code>, filepuis anden restartingredémarrant yourle eXistserveur serverlogiciel. Par Theexemple short-formen onforme productioncourte sites: might behttp://localhost/rest/db/helloWorld_3.xq.
 
http://localhost/rest/db/hello.xq
 
With tools like URL rewriting you can also remove the "/rest" and the "/db" components of the URL.
 
[[en:XQuery/HelloWorld]]
 
{{à traduire}}