Merge branch 'master' into PROT-9-webservice
[proteocache.git] / server / compbio / ws / jpred / proteocache-WS / JpredClient.java
1
2 /**
3  * Please modify this class to meet your needs
4  * This class is not complete
5  */
6
7 package compbio.ws.server;
8
9 import java.util.Properties;
10
11 import javax.xml.ws.Service;
12 import javax.xml.namespace.QName;
13
14 import java.net.URL;
15
16 /**
17  * This class was generated by Apache CXF 2.7.8
18  * 2013-12-09T11:22:58.858Z
19  * Generated source version: 2.7.8
20  * 
21  */
22 public class JpredClient {
23
24         public static void main(String[] args) throws Exception {
25                 Properties properties = new Properties();
26                 properties.setProperty("openejb.embedded.remotable", "true");
27                 QName qname = new QName("http://server.ws.compbio", "JpredWSService");
28                 Service service = Service.create(new URL("http://localhost:8080/proteocache/services/JpredWS?wsdl"),
29                                 qname);
30
31         //      QName qq = service.getServiceName();
32         //      
33                 Jpred sequense = service.getPort(service.getPorts().next(), Jpred.class);
34                 System.out.println(" : " + sequense.findSequence("erwerw"));
35         }
36
37 }