wiki:OqafmaWebservice
Last modified 12 years ago Last modified on 05/22/06 12:03:27

A quick wrapper for OqaFma.

This call:

#!/usr/bin/perl
use SOAP::Lite;
$y = 'WHERE X->":NAME"->"Heart", X->":NAME"->bar CREATE foo(bar)';
print SOAP::Lite
  -> service("http://fma.biostr.washington.edu:8080/OqafmaWebService/wsdl/OqafmaWS.wsdl")
  -> runQuery("$y");

produces these results:

<?xml version="1.0"?>
<results>
  <foo>
    <bar>Heart</bar>
  </foo>
</results>

An AngloSaxon example:

declare namespace anglo="java:edu.washington.biostr.sig.anglo.WebServiceWrapper";
let $q := 
'
WHERE
     X->":NAME"->"Heart",
     X->"part"+->Y,
     Y->":NAME"->Parts
     CREATE
     TheHeart(Parts)
;
'

let $a := anglo:xquery("http://fma.biostr.washington.edu:8080/OqafmaWebService/wsdl/OqafmaWS.wsdl", "OqafmaWS", "runQuery", $q)
return 
<foo>
{$a}
</foo>