Changes between Version 3 and Version 4 of SaxonWebService


Ignore:
Timestamp:
12/20/06 00:52:51 (12 years ago)
Author:
ebmoore
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SaxonWebService

    v3 v4  
    1717 * Public: http://cuboid.biostr.washington.edu:8080/PublicSaxonWebService/XQuerylet 
    1818 
    19  
    20 The Web Service currently has the following methods: 
    21  
    22  * Service: XQueryService 
    23   * Port: XQuery 
    24    * Call: String doXQuery(String) 
    25  
    26 The wsdl for the full database lives at  
    27  * http://cuboid.biostr.washington.edu:8080/SaxonWebService/wsdl/XQuery.wsdl. 
    28  * http://sig.biostr.washington.edu/~ebmoore/wsdl/CSM.wsdl 
    29  
    30 The public database lives at  
    31  * http://cuboid.biostr.washington.edu:8080/PublicSaxonWebService/wsdl/XQuery.wsdl. 
    32  * http://sig.biostr.washington.edu/~ebmoore/wsdl/publicCSM.wsdl 
    33  
    3419The document's root node is bound to {{{$root}}} (and for backwards compatibility {{{$pv}}}, please use $root on all future queries). 
    3520 
     
    4530The source lives in the experimental SubVersion repository under SaxonWebService. 
    4631 
    47 == Configuration == 
    48 In XQuery.java, you need to change a variable to point at the xml file 
    49  
    5032=== Required Libraries === 
    5133 1. [http://www.saxonica.com/ Saxon] 
    5234 
    5335== Downloads == 
    54 No downloads yet... 
    55 ## [http://sig.biostr.washington.edu/downloads Compiled Version...] 
     36There is now a small deploy script that creates a war file that points to your target xml: 
     37[http://sig.biostr.washington.edu/~ebmoore/Wix.zip Wix.zip] 
    5638 
    5739== Example == 
    58 From AngloSaxon 
     40From XQuery 
    5941{{{ 
    60 declare namespace anglo="java:edu.washington.biostr.sig.anglo.WebServiceWrapper"; 
    6142let $q :=  
    6243"<results>  
     
    7051</results>" 
    7152 
    72 let $a := anglo:xquery("http://cuboid.biostr.washington.edu:8080/SaxonWebService/wsdl/XQuery.wsdl", "XQuery", "doXQuery", $q) 
     53let $a := doc(concat("http://cuboid.biostr.washington.edu:8080/SaxonWebService/XQuerylet?query=", escape-uri($q))) 
    7354return  
    7455<allpatients>