package compbio.ws.jpred; import javax.xml.ws.Service; import javax.xml.namespace.QName; import java.net.URL; /** * */ public class JpredClient { public static void main(String[] args) throws Exception { QName qname = new QName("http://server.proteocache.ws", "ProteoCacheWS"); URL url = new URL("http://localhost:8080/proteocache-1.0/ProteoCacheWS"); Service service = Service.create(url, qname); Jpred sequense = service.getPort(Jpred.class); int result = sequense.findSequence("EQCGRQAGGKLCPNNLCCSQWGWCGSTDEYCS", "Jpred", "3.0.1"); System.out.println("Result : " + result + " jobs found"); } }