Still not working WS for querinh proteochache (probably due to interaction with Spring)
[proteocache.git] / server / compbio / ws / jpred / JpredWS.java
1 package compbio.ws.jpred;
2
3 import javax.jws.WebService;
4
5 import compbio.cassandra.CassandraNativeConnector;
6 import compbio.statistic.CassandraRequester;
7
8
9 @WebService(endpointInterface = "compbio.ws.jpred.Jpred", 
10 targetNamespace = "http://server.ws.compbio", serviceName = "JpredWS")
11 public class JpredWS implements Jpred {
12
13         @Override
14         public String findSequence(String sequence) {
15                 CassandraNativeConnector dbconnector = new CassandraNativeConnector();
16                 CassandraRequester cr = new CassandraRequester();
17                 System.out.println("YES");
18                 if (cr.readProteins(sequence, "whole") != null)
19                         return "The sequence is " + sequence;
20                 else
21                         return "No sequence  " + sequence;
22         }
23
24 }