Version 2 (modified by trac, 13 years ago) (diff)


Our current Web Services include:



Term confusion

By the way, Web Services terms overload common terms which causes some confusion. Here is a rough correspondence:

  • port: like Java Class, Perl module, etc.
    • operation: like Java Method, Perl function, etc.; may take parameters

So you call the TransformationServer running on femur port 8080 with the Web Services port name TransformationServer and the Web Services operation transformXML. Documentation may also refer to the "endpoint" or "location" which is a full URL including server and path where the SOAP client POSTs its message; in this case the endpoint is

Example clients

Using Eider's AngloSaxon:

let $q := 

let $a := anglo:xquery("", "SilkRouteWebService", "queryDatabase", $q)

From the Apache Axis documentation:

import org.apache.axis.client.Call;
import org.apache.axis.client.Service;
import javax.xml.namespace.QName;

public class testClient
   public static void main(String [] args) {
       try {
           String endpoint = "";
           Service  service = new Service();
           Call     call    = (Call) service.createCall();

           call.setTargetEndpointAddress( new );
           call.setOperationName(new QName("", "queryDatabase") );

           call.addParameter("xquery", org.apache.axis.Constants.XSD_STRING,javax.xml.rpc.ParameterMode.IN);

           String xquery = ""+
             "<results> {"+ 
           String ret = (String) call.invoke(new Object[] {xquery});

           System.out.println("QUERY: \n" + xquery + "\nRESULTS: \n\n" + ret + "\n");
       } catch (Exception e) {

Using perl SOAP::Lite

use SOAP::Lite;
#use SOAP::Lite +trace;
$q = '
 for $p in $pv/patient[pnum=54] 
print SOAP::Lite
  -> service("")
  -> queryDatabase("$q");
print "\n";