Changeset 3706


Ignore:
Timestamp:
2003-01-24T15:53:28+13:00 (21 years ago)
Author:
kjdon
Message:

modified

Location:
trunk/gsdl3
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl3/INSTALL

    r3640 r3706  
    9797address for talking to the tomcat SOAP servlet services.
    9898
     99Note: 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:
    99100
     101the install-soap.bash file where it tries to deploy site1.
     102the siteConfig.xml file for any site that wants to talk to a soap service running on this tomcat.
     103
  • trunk/gsdl3/RUNNING

    r3561 r3706  
    2424
    2525The interface and site to use for a particular servlet is determined by the
    26 init-params in the web.xml file
     26init-params in the web.xml file (web/WEB-INF/web.xml)
    2727
    2828XSL Files: when an xslt file is to be used, eg home.xsl, it is looked for in
     
    4040
    4141only mgpp collections can be searched - use mgppdemo, not demo.
    42 Currently, only Text search works.
    4342
    4443to change the interface language, you can add &l=fr to the url. However, there are no alternative langs at the moment.
     
    6059directly to the message router
    6160
    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.
     61see the manual for sample messages.
    6762
    6863this 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 teh
     64or Library2, can print out the messages - then cut and paste these for
    7065input 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>
    8866
    8967
     
    9371
    9472takes 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=text
    105 
    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 
    12073
    12174Collections:
Note: See TracChangeset for help on using the changeset viewer.