+++ /dev/null
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
-<html xmlns="http://www.w3.org/1999/xhtml">\r
-<head>\r
-<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />\r
-<title>Java Bioinformatics Analyses Web Services (JABAWS) developers documentation</title>\r
-<link href="ws.css" rel="stylesheet" type="text/css" media="screen, projection, handheld, tv" />\r
-<link rel="stylesheet" type="text/css" media="print" href="print.css"/>\r
-\r
-<script type="text/javascript" src="prototype-1.6.0.3.js"></script>\r
-\r
-</head>\r
-<body>\r
-<div id="page">\r
-<div id="banner">\r
-<table> \r
-<tr><td style="width:130px;"><a href="http://www.dundee.ac.uk"><img src="images/uod_lt.gif" alt="University of Dundee" class="logo" title="University of Dundee" longdesc="http://www.dundee.ac.uk"/></a></td>\r
-<td class="bg"><img src="images/jabaws.png" title="JABAWS:MSA" alt="JABAWS:MSA"/></td>\r
-<td class="bg"><img src="images/align.png"/></td>\r
-</tr>\r
-</table>\r
-</div><!-- banner end-->\r
-\r
-<div id="wrapper">\r
-<div id="panel">\r
-<a href="index.html">Home</a> \r
- <a href="quick_start.html">Getting Started</a> \r
- <a class="selected" href="man_about.html">Manual</a> \r
- <div id="submenu">\r
- <a href="man_about.html">About</a>\r
- <a href="man_servervm.html" title="JABAWS Server as Virtual Appliance">Server VA</a>\r
- <a href="man_serverwar.html" title="JABAWS Server as Web Application aRchive">Server WAR</a>\r
- <a href="man_configuration.html" >Server<br/>\r
- Configuration</a>\r
- <a class="selected" href="man_jaba_internals.html" >JABAWS Internals</a>\r
- <a href="man_client.html" title="JABAWS Command Line Client">CMD Client</a>\r
- <a href="man_stats.html" title="JABAWS Usage Statistics">Usage Statistics</a>\r
- <a href="man_dev.html" title="Accessing JABAWS from your program">Accessing<br/>\r
- JABAWS</a> \r
- </div>\r
-<a href="download.html">Download</a> \r
-<a href="contacts.html">Contact Us</a>\r
-<a href="PublicAnnualStat" title="JABAWS usage statistics">Usage Statistics</a>\r
-<a href="http://www.compbio.dundee.ac.uk" title="University of Dundee, The Barton Group" >Barton Group</a>\r
- </div>\r
-<!-- panel end-->\r
-<div id="content">\r
-\r
- <h4>JABAWS Javadoc</h4>\r
- <p><a href="dm_javadoc/index.html">Data model</a> javadoc- read this if your are coding against JABA Web Services</p>\r
- <p><a href="full_javadoc/index.html">Complete</a> javadoc - for developers who want to use JABAWS framework and use Engines and Executables directly</p>\r
- <h4>Starting up from the source code</h4>\r
-<p><a name="svn">SVN source repository:</a><a href="link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA_r1">https://svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA_r1</a><br/>\r
-The repository contains a complete JABAWS <a href="http://www.eclipse.org">Eclipse</a> project. To use Eclipse with this repository you need to install Eclipse SVN plugin which could be found here: http://subclipse.tigris.org/servlets/ProjectProcess?pageID=p4wYuA. Eclipse update web site address is <a href="http://subclipse.tigris.org/update_1.4.x">http://subclipse.tigris.org/update_1.4.x</a> Take care to install 1.4.x version of the plugin, as SVN repository will not work with more recent clients. it would help to install TestNG plugin as well which could be downloaded from <a href="http://testng.org/doc/download.html">http://testng.org/doc/download.html</a>. Please note however that no generated code is stored in the repository. That is to say that if you like to obtain client or server packages it is better to download them from the download section of this web site. Of cause If you want to make a modification to the source code you would need to generate distributives yourself. To do that first generate JAX-WS artifacts using <span class="hightlight">build-server</span> task from <span class="hightlight">wsbuild.xml</span> ant script, than you could use build.xml tasks to generate any of the distributives you need. </p>\r
-<h4>Structure of the project</h4>\r
-<img style="padding:0 1em;" align="left" src="images/ws-structure.png" alt="JABAWS layers" />\r
-<p>Layers in the source code are defined in a different source folders which are: \r
-<br/><span class="hightlight">/webservices<br />\r
- /runner<br />\r
- /engine<br />\r
- /datamodel</span></p>\r
-<p style="clear:both">JABAWS project is split into 4 layers. From bottom-up the first layer consists from the value classes used by all other layers of the hierarchy, in particular web services. So, to be able to use JABAWS one needs to have these classes. At the same time classes on this layer does not have any dependencies on the layers above.</p>\r
-<p>The second layer contains code for execution of the wrappers, which are the abstraction describing native executables. The code on this level code engine. JABAWS can execute tasks locally that is on the same machine as JVM and on the cluster. Thus currently code on this layer contain two engines. This layer depends on the layer underneath, the data model layer, but is completely independent from the code above.</p>\r
-<p>The third layer consists of the wrappers for the native executables and classes to handle their configuration. It depends on the engines and the data model, but know nothing about the web services.</p>\r
-<p>Finally, the upper layer contains the web services, that depend on all the layers below.</p>\r
-<p>The layer isolation is archived though specially designed compilation task which is executed sequentially in several stages so that the first layer compiles before any other layers, second layer compiles after that and process continies before all the code is compiled. Any violation of the layer boundaries results in the compilation failure. Use Ant "Compile" or "Complile_with_debug" tasks to perform the staged compilation.</p>\r
-<p>A client package contains only classes from data model layer and a simple web services client. Framework package is for anyone who want to use JABAWS framework for controlling native executables in local or cluster environments. Framework exclude the web services layer. Server package contains all the code.</p>\r
-\r
-<h4>Running tests</h4>\r
-<p>The test results for the JABAWS package offered for download can be found here: <a href="http://www.compbio.dundee.ac.uk/user/www-jws2/tests/index.html">Test Results</a><br/>\r
-JABAWS uses <a href="http://testng.org/doc/index.html">TestNG</a> for testing. There is a TestNG plugin available for Eclipse which has functionality similar to JUnit. However, no plugins are necessary to run the test cases, as testng jar is supplied with JABAWS together with an ant tasks to run the test cases. </p>\r
-<p>The best way to ensure that JABAWS framework is completely functional on your system is to run all test cases. \r
-Test cases tests all aspects of JABAWS functionality. Consequently, one need to have non windows operation system and support of the cluster to be able to run all tests. If your system does not support cluster, then you could run all test excluding those that depends on the cluster.\r
-Several testing groups are supported: \r
-<ul>\r
-<li>All tests (Test)</li>\r
-<li>Cluster tests (Run_cluster_dependent_test)</li>\r
-<li>Cluster independent tests () </li>\r
-<li>Windows only tests (All_cluster_independent_windows_only_tests) </li>\r
-<li>Performance and stability tests (Long_tests) </li>\r
-<li>Re-run failed tests (Rerun_failed_tests) </li>\r
-<li>Run custom test (CustomTest) </li>\r
-</ul>\r
-<p>To run the tests you need to download all sources from <a href="#svn">repository</a>. Once you have done that, enter into the command line mode, change directory to the project directory and type: \r
- <span class="code">ant -f build.xml <test group name></span> </p>\r
- <p>. Make sure you have <a href="http://ant.apache.org/">Apache Ant</a> \r
- installed and path to ant executable is defined in your path environmental variable. \r
- Replace test group name with the one of the names given in the list above to run required group of tests e.g for running cluster only tests \r
- use the following \r
- command: <span class="code">ant -f build.xml Run_cluster_dependent_test</span>\r
- If you work under Linux you could use a simple script from the root folder of repository called <span class="hightlight">runtests.sh</span> This script simply contains a collection of the test commands described above and paths to java home directory and an ant executable, which you can define once for your system and then reuse.\r
- </p>\r
- </p>\r
- <p>A handy feature of TestNG is its ability to re-run failed tests. Failed test ant file is stored in <span class="hightlight">test-output/testng-failed.xml</span>. and is used in the ant task called <span class="hightlight">Rerun_failed_tests</span>. So re-running failed tests requires no more work than running any other test group and could be accomplished with the command: <span class="code">ant -f build.xml Rerun_failed_tests</span> CustomTest runs the test defined in the project root directory file called <span class="hightlight">temp-testng-customsuite.xml</span>. This file is generated by TestNG plugin every time you run the test from Eclipse. Thus an easy way to run a test in a different environment is to run it from Eclipse first and then from ant using a custom test procedure. </p>\r
- <p class="hightlight">For cluster execution make sure that the property LD_LIBRARY_PATH defined in build.xml points to cluster engine LD libraries directory in your local system.</p>\r
-\r
- <h4>Preparing distributive's</h4>\r
- <p>There are a number of ant tasks aimed for preparing distributives for download.\r
- Currently a few types of JABAWS packages are offered \r
- <ol>\r
- <li>Client only (contains classes required to access JABA Web Services)</li>\r
- <li>Platform specific JABAWS (windows and other)</li>\r
- <li>JABA Web Services without JAXWS libraries ( a the runtime dependency) </li>\r
- <li>JABAWS without binaries</li>\r
- <li>JABAWS without binaries and jax-ws </li>\r
- <li>JABAWS framework </li>\r
- </ol>\r
- </p>\r
- Corresponding build task names are: \r
- <ol>\r
- <li>min-jaba-client</li>\r
- <li>jaba-windows, jaba-complete</li>\r
- <li>jaba-without-jaxws</li>\r
- <li>jaba-no-binaries</li>\r
- <li>jaba-no-jaxws-no-binaries</li>\r
- <li>full-jaba-client</li>\r
- </ol>\r
-\r
- <p>The easiest way to build all distributives is to call <span class="hightlight">build-all </span>ant task. There are more tasks defined in build.xml than described here. They are mostly self explanatory. </p>\r
- <p class="hightlight">If you made any changes to the data model and would like to generate a complete JABAWS distro make sure you have rebuilt jaxws artifact as described below. </p>\r
- <h4>Building web services artifacts</h4>\r
-<p>Server side artifacts should be rebuild whenever the data model, meta model or MSA interface were changed. To do that run build-server task from wsbuild.xml ant build file. WSDL files will be generated in <span class="hightlight">webservices/compbio/ws/server/resource</span> directory. It is not necessary to edit them if any of the JABAWS clients are used. However, if you would like to generate portable artifacts using wsimport based on the generated WSDL files then, <span class="code"><soap:address location="REPLACE_WITH_ACTUAL_URL"/></span></p>\r
-\r
-<p>must be replaced with an actual server URL including the web services context path. For example: </p>\r
-<p class="code">http://www.compbio.ac.uk:8080/ws</p>\r
-<p>JABAWS are the standard JAX-WS web services, which are WS-I basic profile compatible. </p>\r
-</div>\r
-<!-- content end--> \r
-<div id="copyright">Last update: 19 August 2010<br/>Peter Troshin, The Barton Group, University of Dundee, UK</div>\r
-</div><!-- wrapper end-->\r
-</div> <!-- page end-->\r
-<!-- Google analitics -->\r
-<script type="text/javascript">\r
-var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r
-document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\r
-</script>\r
-<script type="text/javascript">\r
-try{\r
-var pageTracker = _gat._getTracker("UA-5356328-1");\r
-pageTracker._trackPageview();\r
-} catch(err) {}\r
-</script>\r
-</body>\r
-</html>\r
-\r
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\r
+<html xmlns="http://www.w3.org/1999/xhtml">\r
+<head>\r
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />\r
+<title>Java Bioinformatics Analyses Web Services (JABAWS) developers documentation</title>\r
+<link href="ws.css" rel="stylesheet" type="text/css" media="screen, projection, handheld, tv" />\r
+<link rel="stylesheet" type="text/css" media="print" href="print.css"/>\r
+\r
+<script type="text/javascript" src="prototype-1.6.0.3.js"></script>\r
+\r
+</head>\r
+<body>\r
+<div id="page">\r
+<div id="banner">\r
+<table> \r
+<tr><td style="width:158px;"><a href="http://www.dundee.ac.uk"><img src="images/uod_lt_long.gif" alt="University of Dundee" width="158" height="90" class="logo" title="University of Dundee" longdesc="http://www.dundee.ac.uk"/></a></td>\r
+<td class="bg"><img src="images/jabaws2.png" alt="JABAWS-2.0:Disorder" width="353" height="67" title="JABAWS-2.0:Disorder"/></td>\r
+<td class="bg"><img src="images/banner_right.png" alt="Disorder" width="200" height="80"/></td>\r
+</tr>\r
+</table>\r
+</div><!-- banner end-->\r
+\r
+<div id="wrapper">\r
+<div id="panel">\r
+<a href="index.html">Home</a> \r
+ <a href="quick_start.html">Getting Started</a> \r
+ <a class="selected" href="man_about.html">Manual</a> \r
+ <div id="submenu">\r
+ <a href="man_about.html">About</a>\r
+ <a href="man_servervm.html" title="JABAWS Server as Virtual Appliance">Server VA</a>\r
+ <a href="man_serverwar.html" title="JABAWS Server as Web Application aRchive">Server WAR</a>\r
+ <a href="man_configuration.html" >Server<br/>\r
+ Configuration</a>\r
+ <a href="man_client.html" title="JABAWS Command Line Client">CMD Client</a>\r
+ <a href="man_stats.html" title="JABAWS Usage Statistics">Usage Statistics</a>\r
+ <a href="man_dev.html" title="Accessing JABAWS from your program">Accessing<br/>\r
+ JABAWS</a> \r
+ <a class="selected" href="man_server_dev.html" >JABAWS Development</a>\r
+ </div>\r
+<a href="download.html">Download</a> \r
+<a href="contacts.html">Contact Us</a>\r
+<a href="PublicAnnualStat" title="JABAWS usage statistics">Usage Statistics</a>\r
+<a href="http://www.compbio.dundee.ac.uk" title="University of Dundee, The Barton Group" >Barton Group</a>\r
+</div>\r
+<!-- panel end-->\r
+<div id="content">\r
+\r
+ <h2 id="headtitle">For JABAWS Developers</h2>\r
+ <h2>The JABAWS project </h2>\r
+ <p>This page is for anyone who wants to add a new webservice into the JABAWS framework. </p>\r
+ <ul>\r
+ <li><a href="#api">The API</a></li>\r
+ <li><a href="#thesrc">The source code</a></li>\r
+ <li><a href="#projstruct">Structure of the project</a></li>\r
+ <li><a href="#thecode">The code structure</a></li>\r
+ <li><a href="#runtests">Running tests</a></li>\r
+ <li><a href="#prepexec">Preparing distributive's</a></li>\r
+ <li><a href="#buildstubs">Building web services artifacts</a></li>\r
+ <li><a href="#addnewws">Rough guide - adding a new web service</a></li>\r
+ </ul>\r
+\r
+ <h4><a name="api" id="api"></a>The API </h4>\r
+ <p><a href="dm_javadoc/index.html">Data model</a> javadoc- read this if your are coding against JABA Web Services</p>\r
+ <p><a href="full_javadoc/index.html">Complete</a> javadoc - for developers who want to use JABAWS framework and use Engines and Executables directly</p>\r
+ <h4><a name="thesrc" id="thesrc"></a>The source code</h4>\r
+<p><a name="svn">Private (most up-to-date) SVN source repository:</a><a href="link to svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA_r1">https://svn.lifesci.dundee.ac.uk/svn/barton/ptroshin/JABA2_r1</a></p>\r
+<p>The JABAWS public code repository containing the code for each JABAWS public release is located at https://jabaws.googlecode.com/ </p>\r
+<p> The repository contains a complete JABAWS <a href="http://www.eclipse.org">Eclipse</a> project. </p>\r
+<p>Of cause If you want to make a modification to the source code you would need to generate distributives yourself. To do that first generate JAX-WS artifacts using <span class="hightlight">build-server</span> task from <span class="hightlight">wsbuild.xml</span> ant script, than you could use build.xml tasks to generate any of the distributives you need. </p>\r
+<h4><a name="projstruct" id="projstruct"></a>Structure of the project</h4>\r
+<ul>\r
+ <li>\r
+ <span class="directory">binaries</span> contains native executables e.g. clustalw</li>\r
+ <ul>\r
+ <li><span class="directory">src</span> contains sources of native executables</li>\r
+ <li><span class="directory">windows</span> contains pre-compiled Windows binaries</li>\r
+ <li>compilebin.sh - the script to complile binaries</li>\r
+ <li>setexecflag.sh - the script to set executable flag for the binaries</li>\r
+ </ul>\r
+ <li><span class="directory">conf</span> contains JABAWS configuration files </li>\r
+ <li><span class="directory">ExecutionStatistics</span> the database for storing collected execution statistics </li>\r
+ <li><span class="directory">jobsout</span> a default folder for temporary job directories </li>\r
+ <li><span class="directory">statpages</span> the web pages for execution statistics display</li>\r
+ <li><span class="directory">WEB-INF</span> default </li>\r
+ <li><span class="directory">website</span> contains the JABAWS web pages </li>\r
+ <ul>\r
+ <li><span class="directory">archive</span> contains JABAWS packages, the WAR and JAR files</li>\r
+ </ul>\r
+ </ul>\r
+<h4><a name="thecode" id="thecode"></a>The code structure</h4>\r
+<ul>\r
+ <li><span class="directory">datamodel</span> contains the JABAWS datamodel </li>\r
+ <li><span class="directory">engine</span> contains the JABAWS engine - the code that abstract the execution environment and executes native binaries</li>\r
+ <li><span class="directory">runner</span> contains the JABAWS runners - thin wrappers for native binaries </li>\r
+ <li><span class="directory">webservices</span> contains the JABAWS SOAP web services </li>\r
+ <li><span class="directory">testsrc</span> contains the JABAWS unit tests</li>\r
+ </ul>\r
+<p>Each source folder depends on the upper folders for compilation. For example, the datamodel is the top level folder so it has no other dependencies on other JABAWS code. The Engine level depends on the datamodel to compile etc. The web services folder is the bottom layer and depends on all the other source code. </p>\r
+<p>So the JABAWS project is split into 4 layers. From bottom-up the first layer consists from the value classes used by all other layers of the hierarchy, in particular web services. So, to be able to use JABAWS one needs to have these classes. At the same time classes on this layer does not have any dependencies on the layers above.</p>\r
+<p>The second layer contains code for execution of the wrappers, which are the abstraction describing native executables. JABAWS can execute tasks locally that is on the same machine as JVM and on the cluster. Thus currently code on this layer contain two engines. This layer depends on the layer underneath, the data model layer, but is completely independent from the code above.</p>\r
+<p>The third layer consists of the wrappers for the native executables and classes to handle their configuration. It depends on the engines and the data model, but know nothing about the web services.</p>\r
+<p>Finally, the upper layer contains the web services, that depend on all the layers below.</p>\r
+<p>The layer isolation is archived though specially designed compilation task which is executed sequentially in several stages so that the first layer compiles before any other layers, second layer compiles after that and process continies before all the code is compiled. Any violation of the layer boundaries results in the compilation failure. Use Ant "Compile" or "Complile_with_debug" tasks to perform the staged compilation.</p>\r
+<p>A client package contains only classes from data model layer and a simple web services client. Framework package is for anyone who want to use JABAWS framework for controlling native executables in local or cluster environments. Framework exclude the web services layer. Server package contains all the code.</p>\r
+\r
+<h4><a name="runtests" id="runtests"></a>Running tests</h4>\r
+<p>JABAWS uses TestNG framework for testing. The test results for the JABAWS package offered for download can be found here: <a href="http://www.compbio.dundee.ac.uk/user/www-jws2/tests/index.html">Test Results</a><br/>\r
+JABAWS uses <a href="http://testng.org/doc/index.html">TestNG</a> for testing. There is a TestNG plugin available for Eclipse which has functionality similar to JUnit. However, no plugins are necessary to run the test cases, as testng jar is supplied with JABAWS together with an ant tasks to run the test cases. </p>\r
+<p>The best way to ensure that JABAWS framework is completely functional on your system is to run all test cases. \r
+Test cases tests all aspects of JABAWS functionality. Consequently, one need to have non windows operation system and support of the cluster to be able to run all tests. If your system does not support cluster, then you could run all test excluding those that depends on the cluster.\r
+Several testing groups are supported: \r
+<p>All tests (Test)</p>\r
+<p>Cluster tests (Run_cluster_dependent_test)</p>\r
+<p>Cluster independent tests () </p>\r
+<p>Windows only tests (All_cluster_independent_windows_only_tests) </p>\r
+<p>Performance and stability tests (Long_tests) </p>\r
+<p>Re-run failed tests (Rerun_failed_tests) </p>\r
+<p>Run custom test (CustomTest) </p>\r
+<p>To run the tests you need to download all sources from <a href="#svn">repository</a>. Once you have done that, enter into the command line mode, change directory to the project directory and type: \r
+ <span class="code">ant -f build.xml <test group name></span> </p>\r
+ <p>. Make sure you have <a href="http://ant.apache.org/">Apache Ant</a> \r
+ installed and path to ant executable is defined in your path environmental variable. \r
+ Replace test group name with the one of the names given in the list above to run required group of tests e.g for running cluster only tests \r
+ use the following \r
+ command: <span class="code">ant -f build.xml Run_cluster_dependent_test</span>\r
+ If you work under Linux you could use a simple script from the root folder of repository called <span class="hightlight">runtests.sh</span> This script simply contains a collection of the test commands described above and paths to java home directory and an ant executable, which you can define once for your system and then reuse. </p>\r
+ </p>\r
+ <p>A handy feature of TestNG is its ability to re-run failed tests. Failed test ant file is stored in <span class="hightlight">test-output/testng-failed.xml</span>. and is used in the ant task called <span class="hightlight">Rerun_failed_tests</span>. So re-running failed tests requires no more work than running any other test group and could be accomplished with the command: <span class="code">ant -f build.xml Rerun_failed_tests</span> CustomTest runs the test defined in the project root directory file called <span class="hightlight">temp-testng-customsuite.xml</span>. This file is generated by TestNG plugin every time you run the test from Eclipse. Thus an easy way to run a test in a different environment is to run it from Eclipse first and then from ant using a custom test procedure. </p>\r
+ <p class="hightlight">For cluster execution make sure that the property LD_LIBRARY_PATH defined in build.xml points to cluster engine LD libraries directory in your local system.</p>\r
+\r
+ <h4><a name="prepexec" id="prepexec"></a>Preparing distributive's</h4>\r
+ <p>There are a number of ant tasks aimed for preparing distributives for download.\r
+ Currently a few types of JABAWS packages are offered \r
+ <p>Client only (contains classes required to access JABA Web Services)</p>\r
+ <p>Platform specific JABAWS (windows and other)</p>\r
+ <p>JABAWS without binaries</p>\r
+ <p>JABAWS framework </p>\r
+ </p>\r
+ Corresponding build task names are: \r
+ <p>min-jaba-client</p>\r
+ <p>jaba-windows, jaba-complete</p>\r
+ <p>jaba-no-binaries</p>\r
+ <p>full-jaba-client</p>\r
+ <p>The easiest way to build all distributives is to call <span class="hightlight">build-all </span>ant task. There are more tasks defined in build.xml than described here. They are mostly self explanatory. </p>\r
+ <p class="hightlight">If you made any changes to the data model and would like to generate a complete JABAWS distro make sure you have rebuilt jaxws artifact as described below. </p>\r
+ <h4><a name="buildstubs" id="buildstubs"></a>Building web services artifacts</h4>\r
+<p>Server side artifacts should be rebuild whenever the data model, meta model or MSA interface were changed. To do that run build-server task from wsbuild.xml ant build file. WSDL files will be generated in <span class="hightlight">webservices/compbio/ws/server/resource</span> directory. It is not necessary to edit them if any of the JABAWS clients are used. JABAWS are the standard JAX-WS web services, which are WS-I basic profile compatible. </p>\r
+<h4><a name="addnewws" id="addnewws"></a>Rough guide - adding a new web service</h4>\r
+<ol>\r
+<li> Add a new executable which you'd like to wrap as a JABAWS web service to the binaries folder. If it has the source code and can be \r
+ recompiled for different platforms include it under binaries/src.\r
+ Edit binaries/src setexecutableflag.sh and compilebin.sh scripts accordingly. </li>\r
+<li> Make sure that all the dependencies of the software being installed are satisfied. \r
+ If there are other binaries they should be included as well. Keep the dependent \r
+ binaries in subfolder for the main executable. Update compilebin and setexecflag </li>\r
+ scripts accordingly.<li> Make sure that the new executable </li>\r
+ does not have any hard links to its dependencies, e.g. is able to run from \r
+ any installation folder and does not contain any hard coded paths. \r
+ <li> Describe executable in conf/Exectuable.properties file. The lowercase name of the \r
+ wrapper should be included in the name of the property for example Clustal \r
+ properties all include clustal as a part of the name e.g. local.clustalw.bin.\r
+ The same property for Mafft will be called local.mafft.bin. For more help please refer to the Executable.properties file. </li>\r
+ <li> Describe the executable supported parameters in the <ExecutableName>Parameters.xml, presets in the <ExecutableName>Presets.xml and the execution limits in the <ExecutableName>Limit.xml. By convention these files are stored in conf/settings. All of these are optional. If the \r
+ executable does not support parameters you do not have to mention the \r
+ XXXParameter.xml file in the Executable.properties file at all. The same is true for \r
+ Presets and Limits. </li>\r
+<li> Create a Java wrapper class for your executable. Create it within runner \r
+ source directory. Examples of other wrappers can be found in compbio.runner.msa \r
+ or compbio.runner.disorder packages. Wrapper should extend SkeletalExecutable<T> \r
+ implements PipedExecutable<T> if you need to pass the input or collect the \r
+ results from the standard in/out. Please see Mafft code as example. Wrapper \r
+ should expend SkeletalExecutable<T> if input/output can be set as a parameter \r
+ for an executable. Please see ClustalW code as example. </li>\r
+<li> Create a testcase suit for your wrapper and run the test cases. </li>\r
+<li> Create parser for the output files of your executable. Suggested location \r
+ compbio.data.sequence.SequenceUtil </li>\r
+<li> Test the parser</li>\r
+<li> Decide which web services interfaces your executable is going to match. \r
+ For example if the executable output can be represented as <br />\r
+ SequenceAnnotation then SequenceAnnotation interface might be appropriate. \r
+ For multiple sequence alignment an Msa interface should be used. </li>\r
+<li> If you find a web interface that matches your returning data type, then \r
+ implement a web service which confirms to it within a webservices source folder. </li>\r
+<li> Register web service in WEB-INF/ web.xml and sun-jaxws.xml</li>\r
+<li> Add generated wsdl to wsbuild.xml ant script to generate the stubs.</li>\r
+<li> Run build-server task in wsbuild file. Watch for errors. If the task fails <br />\r
+ that means that JAXB cannot serialize some of your new data structures. Add <br />\r
+ appropriate annotations to your data types.\r
+ Also check that <br />\r
+ - you do not have interfaces to serialize. JAXB cannot serialize them.<br />\r
+ - you have a default no args constructor (can be private if you do not need it)<br />\r
+ - JAXB cannot serialize a Map, use custom data structure instead!<br />\r
+ - Enum cannot be serialized as its abstract class (do not confuse with enum <br />\r
+ which is fine)<br />\r
+ - Fields serialization leave a little more space for manoeuvre, so use it. If <br />\r
+ you do then you can accept and return interfaces, e.g. List, Map; abstract <br />\r
+ classes etc, from your methods. <br />\r
+ <br />\r
+ If you have the data on the server side, but nothing is coming through to the <br />\r
+ client, this is a JAXB serialization problem. They tend to be very silent and <br />\r
+ thus hard to debug. Check your data structure can be serialized! </li>\r
+<li>Modify the client to work with your new web service. Update Services \r
+ enumeration to include new service and ensure that all the methods of this \r
+ enumeration take into account the new service. Update the client help text \r
+ (client_help.txt) and insert it into the Constraints class. </li>\r
+<li> Test the web service with the client </li>\r
+<li> Test on the cluster.</li>\r
+</ol>\r
+<p> </p>\r
+</div>\r
+<!-- content end--> \r
+<div id="copyright">Last update: 2 August 2011<br/>\r
+ Peter Troshin, The Barton Group, University of Dundee, UK</div>\r
+</div><!-- wrapper end-->\r
+</div> <!-- page end-->\r
+<!-- Google analitics -->\r
+<script type="text/javascript">\r
+var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");\r
+document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));\r
+</script>\r
+<script type="text/javascript">\r
+try{\r
+var pageTracker = _gat._getTracker("UA-5356328-1");\r
+pageTracker._trackPageview();\r
+} catch(err) {}\r
+</script>\r
+</body>\r
+</html>\r
+\r
+\r