X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=webservices%2Fcompbio%2Fws%2Fserver%2FProbconsWS.java;h=71f47302ea3fbf9a58d0f5a806b598885f665be2;hb=c84ec6492607920b938cfa3645e1a92e15727dd1;hp=4ab7a348c06f39e34b0a29be5b394dd333871850;hpb=61af8ce2cea02220228f58b30b4319f500b2f040;p=jabaws.git diff --git a/webservices/compbio/ws/server/ProbconsWS.java b/webservices/compbio/ws/server/ProbconsWS.java index 4ab7a34..71f4730 100644 --- a/webservices/compbio/ws/server/ProbconsWS.java +++ b/webservices/compbio/ws/server/ProbconsWS.java @@ -1,6 +1,6 @@ -/* Copyright (c) 2009 Peter Troshin +/* Copyright (c) 2011 Peter Troshin * - * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 1.0 + * JAva Bioinformatics Analysis Web Services (JABAWS) @version: 2.0 * * This library is free software; you can redistribute it and/or modify it under the terms of the * Apache License version 2 as published by the Apache Software Foundation @@ -25,6 +25,7 @@ import javax.jws.WebService; import org.apache.log4j.Logger; +import compbio.data.msa.JABAService; import compbio.data.msa.MsaWS; import compbio.data.sequence.Alignment; import compbio.data.sequence.FastaSequence; @@ -46,7 +47,7 @@ import compbio.metadata.WrongParameterException; import compbio.runner.Util; import compbio.runner.msa.Probcons; -@WebService(endpointInterface = "compbio.data.msa.MsaWS", targetNamespace = "http://msa.data.compbio/01/01/2010/", serviceName = "ProbconsWS") +@WebService(endpointInterface = "compbio.data.msa.MsaWS", targetNamespace = JABAService.SERVICE_NAMESPACE, serviceName = "ProbconsWS") public class ProbconsWS implements MsaWS { private static Logger log = Logger.getLogger(ProbconsWS.class); @@ -62,8 +63,8 @@ public class ProbconsWS implements MsaWS { throws JobSubmissionException { WSUtil.validateFastaInput(sequences); ConfiguredExecutable confProbcons = init(sequences); - return WSUtil.align(sequences, confProbcons, null, "align", - getLimit("")); + return WSUtil + .align(sequences, confProbcons, log, "align", getLimit("")); } ConfiguredExecutable init(List dataSet) @@ -85,7 +86,7 @@ public class ProbconsWS implements MsaWS { Probcons.KEY_VALUE_SEPARATOR); log.info("Setting parameters:" + params); confProbcons.addParameters(params); - return WSUtil.align(sequences, confProbcons, null, "customAlign", + return WSUtil.align(sequences, confProbcons, log, "customAlign", getLimit("")); } @@ -100,8 +101,7 @@ public class ProbconsWS implements MsaWS { ConfiguredExecutable confProbcons = init(sequences); confProbcons.addParameters(preset.getOptions()); Limit limit = getLimit(preset.getName()); - return WSUtil - .align(sequences, confProbcons, null, "presetAlign", limit); + return WSUtil.align(sequences, confProbcons, log, "presetAlign", limit); } @SuppressWarnings("unchecked")