Still not working WS for querinh proteochache (probably due to interaction with Spring)
[proteocache.git] / server / compbio / ws / jpred / proteocache-WS / JpredClient.java
diff --git a/server/compbio/ws/jpred/proteocache-WS/JpredClient.java b/server/compbio/ws/jpred/proteocache-WS/JpredClient.java
new file mode 100644 (file)
index 0000000..78d7d95
--- /dev/null
@@ -0,0 +1,37 @@
+
+/**
+ * Please modify this class to meet your needs
+ * This class is not complete
+ */
+
+package compbio.ws.server;
+
+import java.util.Properties;
+
+import javax.xml.ws.Service;
+import javax.xml.namespace.QName;
+
+import java.net.URL;
+
+/**
+ * This class was generated by Apache CXF 2.7.8
+ * 2013-12-09T11:22:58.858Z
+ * Generated source version: 2.7.8
+ * 
+ */
+public class JpredClient {
+
+       public static void main(String[] args) throws Exception {
+               Properties properties = new Properties();
+               properties.setProperty("openejb.embedded.remotable", "true");
+               QName qname = new QName("http://server.ws.compbio", "JpredWSService");
+               Service service = Service.create(new URL("http://localhost:8080/proteocache/services/JpredWS?wsdl"),
+                               qname);
+
+       //      QName qq = service.getServiceName();
+       //      
+               Jpred sequense = service.getPort(service.getPorts().next(), Jpred.class);
+               System.out.println(" : " + sequense.findSequence("erwerw"));
+       }
+
+}