X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fio%2FEBIFetchClient.java;h=a6c3ed249a5e32d90c36703735e9ab7295ebb8d6;hb=1476221e1c931da67d7c6f189a5d923c63883536;hp=eebbfc88cf359bd252b2bcde33197ca697949210;hpb=f24dacb1da56fccf05d684e2f4899facec2aecf7;p=jalview.git diff --git a/src/jalview/io/EBIFetchClient.java b/src/jalview/io/EBIFetchClient.java index eebbfc8..a6c3ed2 100755 --- a/src/jalview/io/EBIFetchClient.java +++ b/src/jalview/io/EBIFetchClient.java @@ -18,13 +18,10 @@ */ package jalview.io; -import org.apache.axis.AxisFault; +import java.io.*; + 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 javax.activation.DataHandler; import javax.xml.namespace.QName; import javax.xml.rpc.ParameterMode; @@ -118,6 +115,46 @@ public class EBIFetchClient } } + public static void main (String [] args) + { + EBIFetchClient ebi = new EBIFetchClient(); + String[] result = ebi.fetchData("uniprot:25K89D_SARPE;G6PblobD_HUMAN", + "xml", null); + + try{ + java.io.PrintWriter out = new java.io.PrintWriter( + new java.io.FileWriter("out.xml")); + + + for(int i=0; i