From 246d7b5d172cc9f93190c212ef13ce6dad1e696a Mon Sep 17 00:00:00 2001
From: pvtroshin JABAWS logs all errors to the stdout and in the file called activity.log if logging is enabled. Stdout is usually recorded in web server log files. Have a look there and you may find the reason for the problems. If it is still unclear what went wrong try increasing the logging level. Setting the logging level to TRACE or DEBUG will give you a lot of insights in what goes on behind the scene. We would need this log if you need us to help you, or if you would like to report the bug. To change the log level, replace ERROR keyword in ACTIVITY logger to TRACE. 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; Line 1 makes a qualified name for JABA web services. A more generic connection method would look like this import java.net.URL; Where Services is enumeration of JABAWS web services. All JABAWS multiple sequence alignment methods confirm to MsaWS specification, thus from the caller point of view all JABAWS web services can be represented by MsaWS interface. The full documentation of MsaWS functions is available from the javadoc. Given that msaws is web service proxy, created as described in "Connecting to JABAWS" section, the actual alignment can be obtained as follows: 1) List<FastaSequence> fastalist = SequenceUtil.readFasta(new FileInputStream(file)); Line one loads FASTA sequence from the file You may have noticed that there was no pause between submitting the job and retrieving of the results. This is because getResult(jobId) method block the processing until the calculation is completed. However, taking into account that the connection holds server resources, our public server (www.compbio.dundee.ac.uk/jabaws) is configured to reset the connection after 10 minutes of waiting. To work around the connection reset you are encouraged to check whether the calculation has been completed before accessing the results. You can do it like this: while (msaws.getJobStatus(jobId) != JobStatus.FINISHED) { 1) PresetManager presetman = msaws.getPresets(); Line one obtains the lists of presets supported by a web service. 1) RunnerConfig options = msaws.getRunnerOptions(); Line one obtains the RunnerConfig object that holds information on supported parameters and their values There is a utility method in the client library that does exactly that. Alignment alignment = align(...) 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 nicely colorized PDF version of this example. 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. 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
- If you couldn't compile everthing, then it may be that your system does
+ If you couldn't compile everything, then it may be that your system does
not have all the tools required for compiling the programs. At the very
least check that you have gcc, g++ and make installed in your
system. If not install these packages and repeat the compilation
@@ -284,7 +293,7 @@ look at the war file content table).JABAWS How To
-Table of Content
+Table of content
About
-Using JABAWS in your program (examples in java)
-
-
JABAWS on Apache-Tomcat
Sometimes something goes wrong with JABAWS, but I cannot figure out why. Can you help?
Using JABAWS in your program
-Connecting to JABAWS
-
- import javax.xml.namespace.QName;
- import javax.xml.ws.Service;
- ...............
- 1) String qualifiedName = "http://msa.data.compbio/01/01/2010/";
- 2) URL url = new URL("http://www.compbio.dundee.ac.uk/jabaws/ClustalWS?wsdl");
- 3) QName qname = new QName(, "ClustalWS");
-4) Service serv = Service.create(url, qname);
-5) MsaWS msaws = serv.getPort(new QName(qualifiedName, "ClustalWSPort"),
-MsaWS.class);
- Line 2
- constructs the URL to the web services WSDL.
-Line 3 makes a qualified name instance for Clustal JABA web service.
-Line 4 creates a service instance.
-Line 5 makes a connection to the server.
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-import compbio.ws.client.Services
-..............
-
-String qualifiedServiceName = "http://msa.data.compbio/01/01/2010/";
-String host = "http://www.compbio.dundee.ac.uk/jabaws";
-// In real life the service name can come from args
-Services clustal = Services.ClustalWS;
-URL url = new URL(host + "/" + clustal.toString() + "?wsdl");
-QName qname = new QName(qualifiedServiceName, clustal.toString());
-Service serv = Service.create(url, qname);
-MsaWS msaws = serv.getPort(new QName(qualifiedServiceName, clustal
-+ "Port"), MsaWS.class);Valid JABAWS service names and WSDL files
-
-
-Aligning sequences
-
- 2) String jobId = msaws.align(fastalist);
-
- 3) Alignment alignment = msaws.getResult(jobId);
- Line two submits them to web service represented by msaws proxy
- Line three retrieves the alignment from a web service. This line will block the execution until the result is available. Use this with caution. In general, you should make sure that the calculation has been completed before attempting retrieving results. This is to avoid keeping the connection to the server on hold for a prolonged periods of time. While this may be ok with your local server, our public server (www.compbio.dundee.ac.uk/jabaws) will not let you hold the connection for longer than 10 minutes. This is done to prevent excessive load on the server. The next section describes how to check the status of the calculation.
-Methods and classes mentioned in the excerpt are available from the JABAWS client library. Checking the status of the calculation
-
- Thread.sleep(2000); // wait two seconds, then recheck the status
-
- }Aligning with presets
-
- 2) Preset preset = presetman.getPresetByName(presetName);
- 3) List<FastaSequence> fastalist = SequenceUtil.readFasta(new FileInputStream(file));
- 4) String jobId = msaws.presetAlign(fastalist, preset);
- 5) Alignment alignment = msaws.getResult(jobId);
- Line two return a particular Preset
- by its name
- Lines three to five are doing the same job as in the first aligning sequences example.Aligning with custom parameters
-
- 2) Argument matrix = options.getArgument("MATRIX");
- 3) matrix.setValue("PAM300");
- 4) Argument gapopenpenalty = options.getArgument("GAPOPEN");
- 5) gapopenpenalty.setValue("20");
- 6) List<Argument> arguments = new ArrayList<Argument>();
-
- 7) arguments.add(matrix);
- arguments.add(gapopenpenalty);
- 8) List<FastaSequence> fastalist = SequenceUtil.readFasta(new FileInputStream(file));
- 9) String jobId = msaws.customAlign(fastalist, arguments);
- 10) Alignment alignment = msaws.getResult(jobId);
- Line two retrieve a particular parameter from the holder by its name
- Lines three sets a value to this parameter which will be used in the calculation.
- Line four and five do the same but for another parameter
- Line 6 makes a List to hold the parameters
- Line seven puts the parameters into that list
- Line eight
- and ten is the same as in previous examples
- Line nine submit an alignment request with the sequences and the parameters
- The names of all the parameters supported by a web service e.g. "PAM300" can be obtained using options.getArguments() method. Further details on the methods available from RunnerConfig object are available from the javadoc. Writing alignments to a file
-
- FileOutputStream outStream = new FileOutputStream(file);
- ClustalAlignmentUtil.writeClustalAlignment(outStream, align);A complete client example
-
-import java.io.ByteArrayInputStream;
-import java.io.FileNotFoundException;
-import java.io.IOException;
-import java.net.URL;
-import java.util.List;
-
-import javax.xml.namespace.QName;
-import javax.xml.ws.Service;
-
-import compbio.data.msa.MsaWS;
-import compbio.data.sequence.Alignment;
-import compbio.data.sequence.FastaSequence;
-import compbio.data.sequence.SequenceUtil;
-import compbio.metadata.JobSubmissionException;
-import compbio.metadata.LimitExceededException;
-import compbio.metadata.Preset;
-import compbio.metadata.PresetManager;
-import compbio.metadata.ResultNotAvailableException;
-import compbio.metadata.UnsupportedRuntimeException;
-import compbio.metadata.WrongParameterException;
-
-public class Example {
-
- /*
- * Input sequences for alignment
- */
- static final String input = ">Foo\r\n"
- + "MTADGPRELLQLRAAVRHRPQDFVAWLMLADAELGMGDTTAGEMAVQRGLALHPGHPEAVARLGR"
- + "VRWTQQRHAEAAVLLQQASDAAPEHPGIALWLGHALEDAGQAEAAAAAYTRAHQLLPEEPYITAQ"
- + "LLNWRRRLCDWRALDVLSAQVRAAVAQGVGAVEPFAFLSEDASAAEQLACARTRAQAIAASVRPL"
- + "APTRVRSKGPLRVGFVSNGFGAHPTGLLTVALFEALQRRQPDLQMHLFATSGDDGSTLRTRLAQA"
- + "STLHDVTALGHLATAKHIRHHGIDLLFDLRGWGGGGRPEVFALRPAPVQVNWLAYPGTSGAPWMD"
- + "YVLGDAFALPPALEPFYSEHVLRLQGAFQPSDTSRVVAEPPSRTQCGLPEQGVVLCCFNNSYKLN"
- + "PQSMARMLAVLREVPDSVLWLLSGPGEADARLRAFAHAQGVDAQRLVFMPKLPHPQYLARYRHAD"
- + "LFLDTHPYNAHTTASDALWTGCPVLTTPGETFAARVAGSLNHHLGLDEMNVADDAAFVAKAVALAS"
- + "DPAALTALHARVDVLRRESGVFEMDGFADDFGALLQALARRHGWLGI\r\n"
- + "\r\n"
- + ">Bar\r\n"
- + "MGDTTAGEMAVQRGLALHQQRHAEAAVLLQQASDAAPEHPGIALWLHALEDAGQAEAAAAYTRAH"
- + "QLLPEEPYITAQLLNAVAQGVGAVEPFAFLSEDASAAESVRPLAPTRVRSKGPLRVGFVSNGFGA"
- + "HPTGLLTVALFEALQRRQPDLQMHLFATSGDDGSTLRTRLAQASTLHDVTALGHLATAKHIRHHG"
- + "IDLLFDLRGWGGGGRPEVFALRPAPVQVNWLAYPGTSGAPWMDYVLGDAFALPPALEPFYSEHVL"
- + "RLQGAFQPSDTSRVVAEPPSRTQCGLPEQGVVLCCFNNSYKLNPQSMARMLAVLREVPDSVLWLL"
- + "SGPGEADARLRAFAHAQGVDAQRLVFMPKLPHPQYLARYRHADLFLDTHPYNAHTTASDALWTGC"
- + "PVLTTPGETFAARVAGSLNHHLGLDEMNVADDAAFVAKAVALASDPAALTALHARVDVLRRESGV"
- + "FEMDGFADDFGALLQALARRHGWLGI\r\n"
- + "\r\n"
- + ">Friends\r\n"
- + "MTADGPRELLQLRAAVRHRPQDVAWLMLADAELGMGDTTAGEMAVQRGLALHPGHPEAVARLGRV"
- + "RWTQQRHAEAAVLLQQASDAAPEHPGIALWLGHALEDHQLLPEEPYITAQLDVLSAQVRAAVAQG"
- + "VGAVEPFAFLSEDASAAEQLACARTRAQAIAASVRPLAPTRVRSKGPLRVGFVSNGFGAHPTGLL"
- + "TVALFEALQRRQPDLQMHLFATSGDDGSTLRTRLAQASTLHDVTALGHLATAKHIRHHGIDLLFD"
- + "LRGWGGGGRPEVFALRPAPVQVNWLAYPGTSGAPWMDYVLGDAFALPPALEPFYSEHVLRLQGAF"
- + "QPSDTSRVVAEPPSRTQCGLPEQGVVLCCFNNSYKLNPQSMARMLAVLREVPDSVLWLLSGPGEA"
- + "DARLRAFAHAQGVDAQRLVFMPKLPHPQYLARYRHADLFLDTHPYNAHTTASDALWTGCPVLTTP"
- + "GETFAARVAGSLNHHLGLDEMNVADDAAFVAKAVALASDPAALTALHARVDVLRRESI";
-
- public static void main(String[] args) throws UnsupportedRuntimeException,
- LimitExceededException, JobSubmissionException,
- WrongParameterException, FileNotFoundException, IOException,
- ResultNotAvailableException, InterruptedException {
-
- String qualifiedServiceName = "http://msa.data.compbio/01/01/2010/";
-
- /* Make a URL pointing to web service WSDL */
- URL url = new URL(
- "http://www.compbio.dundee.ac.uk/jabaws/ClustalWS?wsdl");
-
- /*
- * If you are making a client that connects to different web services
- * you can use something like this:
- */
- // URL url = new URL(host + "/" + Services.ClustalWS.toString() +
- // "?wsdl");
-
- QName qname = new QName(qualifiedServiceName, "ClustalWS");
- Service serv = Service.create(url, qname);
- /*
- * Multiple sequence alignment interface for Clustal web service
- * instance
- */
- MsaWS msaws = serv.getPort(new QName(qualifiedServiceName, "ClustalWS"
- + "Port"), MsaWS.class);
-
- /* Get the list of available presets */
- PresetManager presetman = msaws.getPresets();
-
- /* Get the Preset object by preset name */
- Preset preset = presetman
- .getPresetByName("Disable gap weighting (Speed-oriented)");
-
- /*
- * Load sequences in FASTA format from the file You can use something
- * like new FileInputStream(
-For a more detailed description of all available types and their functions please refer to the data model javadoc.
-Building web services artifacts
-JABAWS on Apache-Tomcat
I dropped jaba.war file into web application directory but nothing happened. What do I do next?
diff --git a/website/manual.html b/website/manual.html
index 5941807..95f1d27 100644
--- a/website/manual.html
+++ b/website/manual.html
@@ -40,8 +40,8 @@ href="manual.html">Manual How To
JABAWS Manual
Table of content
-JABAWS Virtual Appliance
+JABAWS Virtual Appliance
+
-For Developers
+Using JABAWS in your program
-
JABA Web Services Internals
@@ -199,8 +208,8 @@ libraries or other problems, then you probably need to Restart the Tomcat.
-That's it! JABAWS should work at this point. Try it out using theJABAWS test client. If not,
+That's it! JABAWS should work at this point. Try it out using the JABAWS test client. If not,
read on... or have a look at deploying on Tomcat tips.
Note: You may want to enable logging, see
@@ -236,7 +245,7 @@ the JABAWS test client to
check that JABAWS can use the new binaries.
-
Default JABAWS configuration includes path to local executables to be run by the local engine only, all cluster related settings -are commened out, but they are there for you as example. Cluster +are commented out, but they are there for you as example. Cluster engine is disabled by default. To configure executable for cluster -execution uncomment the X.cluster settings and change them +execution un comment the X.cluster settings and change them appropriately.
By default limits are set well in excess of what you may want to offer to the users outside your lab, to make sure that the tasks are never rejected. The default limit is 100000 sequences of 100000 letters on average for all of the JABA web services. You can adjust the limits according to your needs by editing conf/settings/<X>Limit.xml files.
After you have completed the editing your configuration may look like
@@ -464,8 +473,8 @@ by providing an absolute path to them. All these settings are
defined in conf/Executable.properties file.
All JABA multiple sequence alignment web services comply to the same interface, thus the function described below are available from all the services.
Functions for initiating the alignment String id = align(List<FastaSequence> list) Additional utility libraries this client depend upon is the compbio-util-1.3.jar and compbio-annotation-1.0.jar. 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; Line 1 makes a qualified name for JABA web services. A more generic connection method would look like this import java.net.URL; Where Services is enumeration of JABAWS web services. All JABAWS multiple sequence alignment methods confirm to MsaWS specification, thus from the caller point of view all JABAWS web services can be represented by MsaWS interface. The full documentation of MsaWS functions is available from the javadoc. Given that msaws is web service proxy, created as described in "Connecting to JABAWS" section, the actual alignment can be obtained as follows: 1) List<FastaSequence> fastalist = SequenceUtil.readFasta(new FileInputStream(file)); Line one loads FASTA sequence from the file You may have noticed that there was no pause between submitting the job and retrieving of the results. This is because getResult(jobId) method block the processing until the calculation is completed. However, taking into account that the connection holds server resources, our public server (www.compbio.dundee.ac.uk/jabaws) is configured to reset the connection after 10 minutes of waiting. To work around the connection reset you are encouraged to check whether the calculation has been completed before accessing the results. You can do it like this: while (msaws.getJobStatus(jobId) != JobStatus.FINISHED) { 1) PresetManager presetman = msaws.getPresets(); Line one obtains the lists of presets supported by a web service. 1) RunnerConfig options = msaws.getRunnerOptions(); Line one obtains the RunnerConfig object that holds information on supported parameters and their values There is a utility method in the client library that does exactly that. Alignment alignment = align(...) 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. 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 You can use a command line client (part of the client only
@@ -531,7 +773,7 @@ lines in this file are commented out. The reason why the logging is
disabled by default it simple, log4j have to know the exact
location where the log files should be stored. This is not known up
until the deployment time. To enable the logging you need to
-definelogDir property in the logDir property in the log4j.properties and uncomment section of
the file which corresponds to your need. More information is given
in the log4j.properties file
@@ -625,7 +867,7 @@ pages)
String id = customAlign(List<FastaSequence> sequenceList, List<Option> optionList)
@@ -506,6 +515,239 @@ defined in
Please refer to a data model javadoc for a detailed description of each class and its methods. Connecting to JABAWS
+
+ import javax.xml.namespace.QName;
+ import javax.xml.ws.Service;
+ ...............
+ 1) String qualifiedName = "http://msa.data.compbio/01/01/2010/";
+ 2) URL url = new URL("http://www.compbio.dundee.ac.uk/jabaws/ClustalWS?wsdl");
+ 3) QName qname = new QName(, "ClustalWS");
+ 4) Service serv = Service.create(url, qname);
+ 5) MsaWS msaws = serv.getPort(new QName(qualifiedName, "ClustalWSPort"),
+ MsaWS.class);
+ Line 2
+ constructs the URL to the web services WSDL.
+ Line 3 makes a qualified name instance for Clustal JABA web service.
+ Line 4 creates a service instance.
+ Line 5 makes a connection to the server.
+ import javax.xml.namespace.QName;
+ import javax.xml.ws.Service;
+ import compbio.ws.client.Services
+ ..............
+ String qualifiedServiceName = "http://msa.data.compbio/01/01/2010/";
+ String host = "http://www.compbio.dundee.ac.uk/jabaws";
+ // In real life the service name can come from args
+ Services clustal = Services.ClustalWS;
+ URL url = new URL(host + "/" + clustal.toString() + "?wsdl");
+ QName qname = new QName(qualifiedServiceName, clustal.toString());
+ Service serv = Service.create(url, qname);
+ MsaWS msaws = serv.getPort(new QName(qualifiedServiceName, clustal
+ + "Port"), MsaWS.class);Valid JABAWS service names and WSDL files
+
+
+Aligning sequences
+
+ 2) String jobId = msaws.align(fastalist);
+ 3) Alignment alignment = msaws.getResult(jobId);
+ Line two submits them to web service represented by msaws proxy
+ Line three retrieves the alignment from a web service. This line will block the execution until the result is available. Use this with caution. In general, you should make sure that the calculation has been completed before attempting retrieving results. This is to avoid keeping the connection to the server on hold for a prolonged periods of time. While this may be ok with your local server, our public server (www.compbio.dundee.ac.uk/jabaws) will not let you hold the connection for longer than 10 minutes. This is done to prevent excessive load on the server. The next section describes how to check the status of the calculation.
+ Methods and classes mentioned in the excerpt are available from the JABAWS client library. Checking the status of the calculation
+
+ Thread.sleep(2000); // wait two seconds, then recheck the status
+ }Aligning with presets
+
+ 2) Preset preset = presetman.getPresetByName(presetName);
+ 3) List<FastaSequence> fastalist = SequenceUtil.readFasta(new FileInputStream(file));
+ 4) String jobId = msaws.presetAlign(fastalist, preset);
+ 5) Alignment alignment = msaws.getResult(jobId);
+ Line two return a particular Preset
+ by its name
+ Lines three to five are doing the same job as in the first aligning sequences example.Aligning with custom parameters
+
+ 2) Argument matrix = options.getArgument("MATRIX");
+ 3) matrix.setValue("PAM300");
+ 4) Argument gapopenpenalty = options.getArgument("GAPOPEN");
+ 5) gapopenpenalty.setValue("20");
+ 6) List<Argument> arguments = new ArrayList<Argument>();
+ 7) arguments.add(matrix);
+ arguments.add(gapopenpenalty);
+ 8) List<FastaSequence> fastalist = SequenceUtil.readFasta(new FileInputStream(file));
+ 9) String jobId = msaws.customAlign(fastalist, arguments);
+ 10) Alignment alignment = msaws.getResult(jobId);
+ Line two retrieve a particular parameter from the holder by its name
+ Lines three sets a value to this parameter which will be used in the calculation.
+ Line four and five do the same but for another parameter
+ Line 6 makes a List to hold the parameters
+ Line seven puts the parameters into that list
+ Line eight
+ and ten is the same as in previous examples
+ Line nine submit an alignment request with the sequences and the parameters
+ The names of all the parameters supported by a web service e.g. "PAM300" can be obtained using options.getArguments() method. Further details on the methods available from RunnerConfig object are available from the javadoc. Writing alignments to a file
+
+ FileOutputStream outStream = new FileOutputStream(file);
+ ClustalAlignmentUtil.writeClustalAlignment(outStream, align);A complete client example
+
+import java.io.ByteArrayInputStream;
+import java.io.FileNotFoundException;
+import java.io.IOException;
+import java.net.URL;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import compbio.data.msa.MsaWS;
+import compbio.data.sequence.Alignment;
+import compbio.data.sequence.FastaSequence;
+import compbio.data.sequence.SequenceUtil;
+import compbio.metadata.JobSubmissionException;
+import compbio.metadata.LimitExceededException;
+import compbio.metadata.Preset;
+import compbio.metadata.PresetManager;
+import compbio.metadata.ResultNotAvailableException;
+import compbio.metadata.UnsupportedRuntimeException;
+import compbio.metadata.WrongParameterException;
+
+public class Example {
+
+ /*
+ * Input sequences for alignment
+ */
+ static final String input = ">Foo\r\n"
+ + "MTADGPRELLQLRAAVRHRPQDFVAWLMLADAELGMGDTTAGEMAVQRGLALHPGHPEAVARLGR"
+ + "VRWTQQRHAEAAVLLQQASDAAPEHPGIALWLGHALEDAGQAEAAAAAYTRAHQLLPEEPYITAQ"
+ + "LLNWRRRLCDWRALDVLSAQVRAAVAQGVGAVEPFAFLSEDASAAEQLACARTRAQAIAASVRPL"
+ + "APTRVRSKGPLRVGFVSNGFGAHPTGLLTVALFEALQRRQPDLQMHLFATSGDDGSTLRTRLAQA"
+ + "STLHDVTALGHLATAKHIRHHGIDLLFDLRGWGGGGRPEVFALRPAPVQVNWLAYPGTSGAPWMD"
+ + "YVLGDAFALPPALEPFYSEHVLRLQGAFQPSDTSRVVAEPPSRTQCGLPEQGVVLCCFNNSYKLN"
+ + "PQSMARMLAVLREVPDSVLWLLSGPGEADARLRAFAHAQGVDAQRLVFMPKLPHPQYLARYRHAD"
+ + "LFLDTHPYNAHTTASDALWTGCPVLTTPGETFAARVAGSLNHHLGLDEMNVADDAAFVAKAVALAS"
+ + "DPAALTALHARVDVLRRESGVFEMDGFADDFGALLQALARRHGWLGI\r\n"
+ + "\r\n"
+ + ">Bar\r\n"
+ + "MGDTTAGEMAVQRGLALHQQRHAEAAVLLQQASDAAPEHPGIALWLHALEDAGQAEAAAAYTRAH"
+ + "QLLPEEPYITAQLLNAVAQGVGAVEPFAFLSEDASAAESVRPLAPTRVRSKGPLRVGFVSNGFGA"
+ + "HPTGLLTVALFEALQRRQPDLQMHLFATSGDDGSTLRTRLAQASTLHDVTALGHLATAKHIRHHG"
+ + "IDLLFDLRGWGGGGRPEVFALRPAPVQVNWLAYPGTSGAPWMDYVLGDAFALPPALEPFYSEHVL"
+ + "RLQGAFQPSDTSRVVAEPPSRTQCGLPEQGVVLCCFNNSYKLNPQSMARMLAVLREVPDSVLWLL"
+ + "SGPGEADARLRAFAHAQGVDAQRLVFMPKLPHPQYLARYRHADLFLDTHPYNAHTTASDALWTGC"
+ + "PVLTTPGETFAARVAGSLNHHLGLDEMNVADDAAFVAKAVALASDPAALTALHARVDVLRRESGV"
+ + "FEMDGFADDFGALLQALARRHGWLGI\r\n"
+ + "\r\n"
+ + ">Friends\r\n"
+ + "MTADGPRELLQLRAAVRHRPQDVAWLMLADAELGMGDTTAGEMAVQRGLALHPGHPEAVARLGRV"
+ + "RWTQQRHAEAAVLLQQASDAAPEHPGIALWLGHALEDHQLLPEEPYITAQLDVLSAQVRAAVAQG"
+ + "VGAVEPFAFLSEDASAAEQLACARTRAQAIAASVRPLAPTRVRSKGPLRVGFVSNGFGAHPTGLL"
+ + "TVALFEALQRRQPDLQMHLFATSGDDGSTLRTRLAQASTLHDVTALGHLATAKHIRHHGIDLLFD"
+ + "LRGWGGGGRPEVFALRPAPVQVNWLAYPGTSGAPWMDYVLGDAFALPPALEPFYSEHVLRLQGAF"
+ + "QPSDTSRVVAEPPSRTQCGLPEQGVVLCCFNNSYKLNPQSMARMLAVLREVPDSVLWLLSGPGEA"
+ + "DARLRAFAHAQGVDAQRLVFMPKLPHPQYLARYRHADLFLDTHPYNAHTTASDALWTGCPVLTTP"
+ + "GETFAARVAGSLNHHLGLDEMNVADDAAFVAKAVALASDPAALTALHARVDVLRRESI";
+
+ public static void main(String[] args) throws UnsupportedRuntimeException,
+ LimitExceededException, JobSubmissionException,
+ WrongParameterException, FileNotFoundException, IOException,
+ ResultNotAvailableException, InterruptedException {
+
+ String qualifiedServiceName = "http://msa.data.compbio/01/01/2010/";
+
+ /* Make a URL pointing to web service WSDL */
+ URL url = new URL(
+ "http://www.compbio.dundee.ac.uk/jabaws/ClustalWS?wsdl");
+
+ /*
+ * If you are making a client that connects to different web services
+ * you can use something like this:
+ */
+ // URL url = new URL(host + "/" + Services.ClustalWS.toString() +
+ // "?wsdl");
+
+ QName qname = new QName(qualifiedServiceName, "ClustalWS");
+ Service serv = Service.create(url, qname);
+ /*
+ * Multiple sequence alignment interface for Clustal web service
+ * instance
+ */
+ MsaWS msaws = serv.getPort(new QName(qualifiedServiceName, "ClustalWS"
+ + "Port"), MsaWS.class);
+
+ /* Get the list of available presets */
+ PresetManager presetman = msaws.getPresets();
+
+ /* Get the Preset object by preset name */
+ Preset preset = presetman
+ .getPresetByName("Disable gap weighting (Speed-oriented)");
+
+ /*
+ * Load sequences in FASTA format from the file You can use something
+ * like new FileInputStream(
+For a more detailed description of all available types and their functions please refer to the data model javadoc.
+Building web services artifacts
+JABA Web Services Internals
Testing JABA Web Services
prog_docs
-documentation for programmes that JABAWS uses
+documentation for programs that JABAWS uses
--
1.7.10.2