X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FEBIFetchClient.java;h=893608479348c6b88fd99fa9ca6ac6a089ab0b23;hb=7418f2aca1d88b04abebcce7940006e202c5f19c;hp=2c829ffc1d9b76f2bdb69d107fe17c8060a81598;hpb=efc31b4a8d5cee63555586804a2b79c06bdb5a14;p=jalview.git diff --git a/src/jalview/io/EBIFetchClient.java b/src/jalview/io/EBIFetchClient.java index 2c829ff..8936084 100755 --- a/src/jalview/io/EBIFetchClient.java +++ b/src/jalview/io/EBIFetchClient.java @@ -1,6 +1,6 @@ /* * Jalview - A Sequence Alignment Editor and Viewer -* Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle +* Copyright (C) 2006 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License @@ -18,15 +18,10 @@ */ package jalview.io; -import org.apache.axis.AxisFault; -import org.apache.axis.client.*; -import org.apache.axis.encoding.XMLType; -import org.apache.axis.encoding.ser.JAFDataHandlerDeserializerFactory; -import org.apache.axis.encoding.ser.JAFDataHandlerSerializerFactory; - import java.io.*; -import javax.activation.DataHandler; +import org.apache.axis.client.*; +import org.apache.axis.encoding.XMLType; import javax.xml.namespace.QName; import javax.xml.rpc.ParameterMode; @@ -120,6 +115,46 @@ public class EBIFetchClient } } + public static void main (String [] args) + { + EBIFetchClient ebi = new EBIFetchClient(); + String[] result = ebi.fetchData("uniprot:25KD_SARPE;G6PD_HUMAN", + "xml", null); + + try{ + java.io.PrintWriter out = new java.io.PrintWriter( + new java.io.FileWriter("out.xml")); + + + for(int i=0; i