X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=website%2Fman_dev.html;h=94ee9f4c195d4a6dae07de7931a06a6638767888;hb=b7c9fc19284680ebe7c16c50e12f583b3f46299a;hp=083150332634ee49c73cd0ff0ee3be99b37cb3d1;hpb=a284b66c119ee21683202f51e5276d5a5ee7f121;p=jabaws.git diff --git a/website/man_dev.html b/website/man_dev.html index 0831503..94ee9f4 100644 --- a/website/man_dev.html +++ b/website/man_dev.html @@ -3,51 +3,52 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> - + Java Bioinformatics Analyses Web Services (JABAWS) client developers manual - - + + +
+
+ +
Home - Getting Started - Manual - -Download -Usage Statistics - Services Status -Contact Us -Barton Group - + Getting Started + Manual + + Download + Usage Statistics + Services Status + Contact Us + Barton Group + Funding
- + +

JABAWS MANUAL

@@ -107,7 +108,7 @@

Additional utility libraries this client depend upon is the compbio-util-1.3.jar and compbio-annotation-1.0.jar.
Please refer to a data model javadoc for a detailed description of each class and its methods.

Connecting to JABAWS

-

For a complete working example of JABAWS command line client please see compbio.ws.client.Jws2Client class. JABAWS command line client source code is available from the download page. Please note that for now all the examples are in Java other languages will follow given a sufficient demand.

+

For a complete working example of JABAWS command line client please see compbio.ws.client.Jws2Client class. JABAWS command line client source code is available from the download page. Please note that for now all the examples are in Java other languages will follow given a sufficient demand.

Download a binary JABAWS client. Add the client to the class path. The following code excerpt will connect your program to Clustal web service deployed in the University of Dundee.

import java.net.URL;
import javax.xml.namespace.QName;
@@ -214,7 +215,7 @@ FileOutputStream outStream = new FileOutputStream(file);
ClustalAlignmentUtil.writeClustalAlignment(outStream, align);

A complete client example

-

Finally, a complete example of the program that connects to JABAWS Clustal service and aligns sequences using one of the Clustal web service preset. Three is also a PDF version of this example with syntax highlighted. The text comments are commented by block style comments e.g. /* comment */, the alternatives given in the code are line commented // comment. You may want to remove line style comments to test alternatives of the functions. All you need for this to work is a JABAWS binary client. Please make sure that the client is in the Java class path before running this example.

+

Finally, a complete example of the program that connects to JABAWS Clustal service and aligns sequences using one of the Clustal web service preset. Three is also a PDF version of this example with syntax highlighted. The text comments are commented by block style comments e.g. /* comment */, the alternatives given in the code are line commented // comment. You may want to remove line style comments to test alternatives of the functions. All you need for this to work is a JABAWS binary client. Please make sure that the client is in the Java class path before running this example.

 import java.io.ByteArrayInputStream;
 import java.io.FileNotFoundException;
@@ -351,17 +352,11 @@ For a more detailed description of all available types and their functions pleas
 

Building web services artifacts

JABAWS are the standard JAX-WS SOAP web services, which are WS-I basic profile compatible. This means that you could use whatever tool your language has to work with web services. Below is how you can generate portable artifacts to work with JABAWS from Java. However, if programming in Java we recommend using our client library as it provides a handful of useful methods in addition to plain data types.

wsimport -keep http://www.compbio.dundee.ac.uk/jabaws/ClustalWS?wsdl

-
+
+ + + - - - - - - - -