First working web service for quering proteocache DB
[proteocache.git] / server / compbio / ws / jpred / JpredClient.java
1 package compbio.ws.jpred;
2
3 import javax.xml.ws.Service;
4 import javax.xml.namespace.QName;
5
6 import java.net.URL;
7
8 /**
9  * 
10  */
11 public class JpredClient {
12
13         public static void main(String[] args) throws Exception {
14                 QName qname = new QName("http://server.proteocache.ws", "ProteoCacheWS");
15
16                 Service service = Service.create(new URL("http://localhost:8080/proteocache-1.0/ProteoCacheWS"), qname);
17                 Jpred sequense = service.getPort(Jpred.class);
18                 String result= sequense.findSequence("EQCGRQAGGKLCPNNLCCSQWGWCGSTDEYCS", "Jpred", "3.0.1");
19
20                 System.out.println("Result : " + result);
21         }
22
23 }