1 package compbio.ws.jpred;
3 import javax.xml.ws.Service;
4 import javax.xml.namespace.QName;
11 public class JpredClient {
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");
20 System.out.println("Result : " + result + " jobs found");