Add explicit URL object
[proteocache.git] / server / compbio / ws / jpred / JpredClient.java
index d5a91d7..6fe8f84 100644 (file)
@@ -12,10 +12,10 @@ public class JpredClient {
 
        public static void main(String[] args) throws Exception {
                QName qname = new QName("http://server.proteocache.ws", "ProteoCacheWS");
-
-               Service service = Service.create(new URL("http://localhost:8080/proteocache-1.0/ProteoCacheWS"), qname);
+               URL url = new URL("http://localhost:8080/proteocache-1.0/ProteoCacheWS");
+               Service service = Service.create(url, qname);
                Jpred sequense = service.getPort(Jpred.class);
-               String result= sequense.findSequence("EQCGRQAGGKLCPNNLCCSQWGWCGSTDEYCS", "Jpred", "3.0.1");
+               String result = sequense.findSequence("EQCGRQAGGKLCPNNLCCSQWGWCGSTDEYCS", "Jpred", "3.0.1");
 
                System.out.println("Result : " + result);
        }