From e99bf5d1f025ee60f7acaab2f418a16fc457a901 Mon Sep 17 00:00:00 2001 From: Sasha Sherstnev Date: Mon, 3 Feb 2014 10:27:39 +0000 Subject: [PATCH] Add explicit URL object --- server/compbio/ws/jpred/JpredClient.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server/compbio/ws/jpred/JpredClient.java b/server/compbio/ws/jpred/JpredClient.java index 08948e8..6fe8f84 100644 --- a/server/compbio/ws/jpred/JpredClient.java +++ b/server/compbio/ws/jpred/JpredClient.java @@ -12,8 +12,8 @@ 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"); -- 1.7.10.2