ea62bdec55628a99709c1140279d250e3b46a621
[proteocache.git] / 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                 URL url = new URL("http://localhost:8080/proteocache-1.0/ProteoCacheWS");
16                 Service service = Service.create(url, qname);
17                 Jpred sequense = service.getPort(Jpred.class);
18                 int result = sequense.findSequence("EQCGRQAGGKLCPNNLCCSQWGWCGSTDEYCS", "Jpred", "3.0.1");
19
20                 System.out.println("Result : " + result + " jobs found");
21         }
22
23 }