Changeset 3706
- Timestamp:
- 2003-01-24T15:53:28+13:00 (21 years ago)
- Location:
- trunk/gsdl3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsdl3/INSTALL
r3640 r3706 97 97 address for talking to the tomcat SOAP servlet services. 98 98 99 Note: you can change tomcat to use a different port if you like. Edit comms/tomcat/jakarta/conf/server.xml, and change 8080 to whatever. If you do this, and are using soap, you need to remember to change the port number in: 99 100 101 the install-soap.bash file where it tries to deploy site1. 102 the siteConfig.xml file for any site that wants to talk to a soap service running on this tomcat. 103 -
trunk/gsdl3/RUNNING
r3561 r3706 24 24 25 25 The interface and site to use for a particular servlet is determined by the 26 init-params in the web.xml file 26 init-params in the web.xml file (web/WEB-INF/web.xml) 27 27 28 28 XSL Files: when an xslt file is to be used, eg home.xsl, it is looked for in … … 40 40 41 41 only mgpp collections can be searched - use mgppdemo, not demo. 42 Currently, only Text search works.43 42 44 43 to change the interface language, you can add &l=fr to the url. However, there are no alternative langs at the moment. … … 60 59 directly to the message router 61 60 62 basically messages are like: 63 64 <message><request type="describe|query" to="demo/TextQuery" info=""/></message> 65 with type="describe", to="", can use serviceList, collectionList and siteList 66 for the info field. 61 see the manual for sample messages. 67 62 68 63 this program is not very useful - except for debugging - when using the servlet 69 or Library2, can print out the messages - then cut and paste these for teh64 or Library2, can print out the messages - then cut and paste these for 70 65 input to Library1 71 72 sample messages: (to cut and paste)73 74 describe request to message router:75 <message><request type="describe" to=""/></message>76 77 describe request to collection:78 <message><request type="describe" to="mgppdemo"/></message>79 80 query:81 <message><request type="query" to="mgppdemo/TextQuery"><paramList/><content>the</content></request></message>82 83 get Titles for a list of docs:84 <message><request type="query" to="mgppdemo/MetadataRetrieve"><paramList/><content><resourceList><resource name="HASH30aa188f4d8ddaef558fc9" /><resource name="HASH0102361bccb095d60673448c.3" /><resource name="HASH4632a8a51d33c47a75c559.4.1.5" /></resourceList><metadataList><element name="Title"/></metadataList></content></request></message>85 86 get a document:87 <message><request type="query" to="mgppdemo/ResourceRetrieve"><paramList/><content><resourceList><resource name="HASH30aa188f4d8ddaef558fc9" /></resourceList></content></request></message>88 66 89 67 … … 93 71 94 72 takes xml request of 'cgi' params, and returns html (input must be all on one line) 95 96 <message lang="en">97 <request type="action" action="q" subaction="text">98 <paramList>99 <param name="q" value="the"/>100 </paramList>101 </request>102 </message>103 104 the info field is action/subaction, eg a=p&sa=home, or a=q&sa=text105 106 Some sample queries: (to cut and paste)107 108 home page:109 <message lang="en"><request type="action" action="p" subaction="home" /></message>110 111 about page for mgppdemo:112 <message lang="en"><request type="action" action="p" subaction="about""><paramList><param name="c" value="mgppdemo"/></paramList></request></message>113 114 search for frog in mgppdemo: (no docs returned)115 <message lang="en"><request type="action" action="q" subaction="text"><paramList><param name="c" value="mgppdemo"/><param name="q" value="frog"/><param name="md" value="10"/></paramList></request></message>116 117 search for frog in mgppdemo, with stemming on: (some docs returned)118 <message lang="en"><request type="action" action="q" subaction="text""><paramList><param name="c" value="mgppdemo"/><param name="q" value="frog"/><param name="md" value="10"/><param name="s" value="1"/></paramList></request></message>119 120 73 121 74 Collections:
Note:
See TracChangeset
for help on using the changeset viewer.