From a14bde7963e4f753ac20c629bb6441910c4ad083 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Tue, 6 Dec 2005 11:41:09 +0000 Subject: [PATCH] After branch merge --- src/uk/ac/ebi/www/Data.java | 120 ++++++++ src/uk/ac/ebi/www/InputParams.java | 376 +++++++++++++++++++++++ src/uk/ac/ebi/www/WSFile.java | 120 ++++++++ src/uk/ac/ebi/www/WSWUBlast.java | 18 ++ src/uk/ac/ebi/www/WSWUBlastService.java | 16 + src/uk/ac/ebi/www/WSWUBlastServiceLocator.java | 96 ++++++ src/uk/ac/ebi/www/WSWUBlastSoapBindingStub.java | 323 +++++++++++++++++++ 7 files changed, 1069 insertions(+) create mode 100755 src/uk/ac/ebi/www/Data.java create mode 100755 src/uk/ac/ebi/www/InputParams.java create mode 100755 src/uk/ac/ebi/www/WSFile.java create mode 100755 src/uk/ac/ebi/www/WSWUBlast.java create mode 100755 src/uk/ac/ebi/www/WSWUBlastService.java create mode 100755 src/uk/ac/ebi/www/WSWUBlastServiceLocator.java create mode 100755 src/uk/ac/ebi/www/WSWUBlastSoapBindingStub.java diff --git a/src/uk/ac/ebi/www/Data.java b/src/uk/ac/ebi/www/Data.java new file mode 100755 index 0000000..bc8ec84 --- /dev/null +++ b/src/uk/ac/ebi/www/Data.java @@ -0,0 +1,120 @@ +/** + * Data.java + * + * This file was auto-generated from WSDL + * by the Apache Axis WSDL2Java emitter. + */ + +package uk.ac.ebi.www; + +public class Data implements java.io.Serializable { + private java.lang.String type; + private java.lang.String content; + + public Data() { + } + + public java.lang.String getType() { + return type; + } + + public void setType(java.lang.String type) { + this.type = type; + } + + public java.lang.String getContent() { + return content; + } + + public void setContent(java.lang.String content) { + this.content = content; + } + + private java.lang.Object __equalsCalc = null; + public synchronized boolean equals(java.lang.Object obj) { + if (!(obj instanceof Data)) return false; + Data other = (Data) obj; + if (obj == null) return false; + if (this == obj) return true; + if (__equalsCalc != null) { + return (__equalsCalc == obj); + } + __equalsCalc = obj; + boolean _equals; + _equals = true && + ((type==null && other.getType()==null) || + (type!=null && + type.equals(other.getType()))) && + ((content==null && other.getContent()==null) || + (content!=null && + content.equals(other.getContent()))); + __equalsCalc = null; + return _equals; + } + + private boolean __hashCodeCalc = false; + public synchronized int hashCode() { + if (__hashCodeCalc) { + return 0; + } + __hashCodeCalc = true; + int _hashCode = 1; + if (getType() != null) { + _hashCode += getType().hashCode(); + } + if (getContent() != null) { + _hashCode += getContent().hashCode(); + } + __hashCodeCalc = false; + return _hashCode; + } + + // Type metadata + private static org.apache.axis.description.TypeDesc typeDesc = + new org.apache.axis.description.TypeDesc(Data.class); + + static { + org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("type"); + field.setXmlName(new javax.xml.namespace.QName("", "type")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("content"); + field.setXmlName(new javax.xml.namespace.QName("", "content")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + }; + + /** + * Return type metadata object + */ + public static org.apache.axis.description.TypeDesc getTypeDesc() { + return typeDesc; + } + + /** + * Get Custom Serializer + */ + public static org.apache.axis.encoding.Serializer getSerializer( + java.lang.String mechType, + java.lang.Class _javaType, + javax.xml.namespace.QName _xmlType) { + return + new org.apache.axis.encoding.ser.BeanSerializer( + _javaType, _xmlType, typeDesc); + } + + /** + * Get Custom Deserializer + */ + public static org.apache.axis.encoding.Deserializer getDeserializer( + java.lang.String mechType, + java.lang.Class _javaType, + javax.xml.namespace.QName _xmlType) { + return + new org.apache.axis.encoding.ser.BeanDeserializer( + _javaType, _xmlType, typeDesc); + } + +} diff --git a/src/uk/ac/ebi/www/InputParams.java b/src/uk/ac/ebi/www/InputParams.java new file mode 100755 index 0000000..15de139 --- /dev/null +++ b/src/uk/ac/ebi/www/InputParams.java @@ -0,0 +1,376 @@ +/** + * InputParams.java + * + * This file was auto-generated from WSDL + * by the Apache Axis WSDL2Java emitter. + */ + +package uk.ac.ebi.www; + +public class InputParams implements java.io.Serializable { + private java.lang.String program; + private java.lang.String database; + private java.lang.String matrix; + private float exp; + private boolean echofilter; + private java.lang.String filter; + private int numal; + private int scores; + private java.lang.String sensitivity; + private java.lang.String sort; + private java.lang.String stats; + private java.lang.String strand; + private java.lang.String outformat; + private int topcombon; + private boolean async; + private java.lang.String email; + + public InputParams() { + } + + public java.lang.String getProgram() { + return program; + } + + public void setProgram(java.lang.String program) { + this.program = program; + } + + public java.lang.String getDatabase() { + return database; + } + + public void setDatabase(java.lang.String database) { + this.database = database; + } + + public java.lang.String getMatrix() { + return matrix; + } + + public void setMatrix(java.lang.String matrix) { + this.matrix = matrix; + } + + public float getExp() { + return exp; + } + + public void setExp(float exp) { + this.exp = exp; + } + + public boolean isEchofilter() { + return echofilter; + } + + public void setEchofilter(boolean echofilter) { + this.echofilter = echofilter; + } + + public java.lang.String getFilter() { + return filter; + } + + public void setFilter(java.lang.String filter) { + this.filter = filter; + } + + public int getNumal() { + return numal; + } + + public void setNumal(int numal) { + this.numal = numal; + } + + public int getScores() { + return scores; + } + + public void setScores(int scores) { + this.scores = scores; + } + + public java.lang.String getSensitivity() { + return sensitivity; + } + + public void setSensitivity(java.lang.String sensitivity) { + this.sensitivity = sensitivity; + } + + public java.lang.String getSort() { + return sort; + } + + public void setSort(java.lang.String sort) { + this.sort = sort; + } + + public java.lang.String getStats() { + return stats; + } + + public void setStats(java.lang.String stats) { + this.stats = stats; + } + + public java.lang.String getStrand() { + return strand; + } + + public void setStrand(java.lang.String strand) { + this.strand = strand; + } + + public java.lang.String getOutformat() { + return outformat; + } + + public void setOutformat(java.lang.String outformat) { + this.outformat = outformat; + } + + public int getTopcombon() { + return topcombon; + } + + public void setTopcombon(int topcombon) { + this.topcombon = topcombon; + } + + public boolean isAsync() { + return async; + } + + public void setAsync(boolean async) { + this.async = async; + } + + public java.lang.String getEmail() { + return email; + } + + public void setEmail(java.lang.String email) { + this.email = email; + } + + private java.lang.Object __equalsCalc = null; + public synchronized boolean equals(java.lang.Object obj) { + if (!(obj instanceof InputParams)) return false; + InputParams other = (InputParams) obj; + if (obj == null) return false; + if (this == obj) return true; + if (__equalsCalc != null) { + return (__equalsCalc == obj); + } + __equalsCalc = obj; + boolean _equals; + _equals = true && + ((program==null && other.getProgram()==null) || + (program!=null && + program.equals(other.getProgram()))) && + ((database==null && other.getDatabase()==null) || + (database!=null && + database.equals(other.getDatabase()))) && + ((matrix==null && other.getMatrix()==null) || + (matrix!=null && + matrix.equals(other.getMatrix()))) && + exp == other.getExp() && + echofilter == other.isEchofilter() && + ((filter==null && other.getFilter()==null) || + (filter!=null && + filter.equals(other.getFilter()))) && + numal == other.getNumal() && + scores == other.getScores() && + ((sensitivity==null && other.getSensitivity()==null) || + (sensitivity!=null && + sensitivity.equals(other.getSensitivity()))) && + ((sort==null && other.getSort()==null) || + (sort!=null && + sort.equals(other.getSort()))) && + ((stats==null && other.getStats()==null) || + (stats!=null && + stats.equals(other.getStats()))) && + ((strand==null && other.getStrand()==null) || + (strand!=null && + strand.equals(other.getStrand()))) && + ((outformat==null && other.getOutformat()==null) || + (outformat!=null && + outformat.equals(other.getOutformat()))) && + topcombon == other.getTopcombon() && + async == other.isAsync() && + ((email==null && other.getEmail()==null) || + (email!=null && + email.equals(other.getEmail()))); + __equalsCalc = null; + return _equals; + } + + private boolean __hashCodeCalc = false; + public synchronized int hashCode() { + if (__hashCodeCalc) { + return 0; + } + __hashCodeCalc = true; + int _hashCode = 1; + if (getProgram() != null) { + _hashCode += getProgram().hashCode(); + } + if (getDatabase() != null) { + _hashCode += getDatabase().hashCode(); + } + if (getMatrix() != null) { + _hashCode += getMatrix().hashCode(); + } + _hashCode += new Float(getExp()).hashCode(); + _hashCode += new Boolean(isEchofilter()).hashCode(); + if (getFilter() != null) { + _hashCode += getFilter().hashCode(); + } + _hashCode += getNumal(); + _hashCode += getScores(); + if (getSensitivity() != null) { + _hashCode += getSensitivity().hashCode(); + } + if (getSort() != null) { + _hashCode += getSort().hashCode(); + } + if (getStats() != null) { + _hashCode += getStats().hashCode(); + } + if (getStrand() != null) { + _hashCode += getStrand().hashCode(); + } + if (getOutformat() != null) { + _hashCode += getOutformat().hashCode(); + } + _hashCode += getTopcombon(); + _hashCode += new Boolean(isAsync()).hashCode(); + if (getEmail() != null) { + _hashCode += getEmail().hashCode(); + } + __hashCodeCalc = false; + return _hashCode; + } + + // Type metadata + private static org.apache.axis.description.TypeDesc typeDesc = + new org.apache.axis.description.TypeDesc(InputParams.class); + + static { + org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("program"); + field.setXmlName(new javax.xml.namespace.QName("", "program")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("database"); + field.setXmlName(new javax.xml.namespace.QName("", "database")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("matrix"); + field.setXmlName(new javax.xml.namespace.QName("", "matrix")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("exp"); + field.setXmlName(new javax.xml.namespace.QName("", "exp")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "float")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("echofilter"); + field.setXmlName(new javax.xml.namespace.QName("", "echofilter")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("filter"); + field.setXmlName(new javax.xml.namespace.QName("", "filter")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("numal"); + field.setXmlName(new javax.xml.namespace.QName("", "numal")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("scores"); + field.setXmlName(new javax.xml.namespace.QName("", "scores")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("sensitivity"); + field.setXmlName(new javax.xml.namespace.QName("", "sensitivity")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("sort"); + field.setXmlName(new javax.xml.namespace.QName("", "sort")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("stats"); + field.setXmlName(new javax.xml.namespace.QName("", "stats")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("strand"); + field.setXmlName(new javax.xml.namespace.QName("", "strand")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("outformat"); + field.setXmlName(new javax.xml.namespace.QName("", "outformat")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("topcombon"); + field.setXmlName(new javax.xml.namespace.QName("", "topcombon")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "int")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("async"); + field.setXmlName(new javax.xml.namespace.QName("", "async")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "boolean")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("email"); + field.setXmlName(new javax.xml.namespace.QName("", "email")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + }; + + /** + * Return type metadata object + */ + public static org.apache.axis.description.TypeDesc getTypeDesc() { + return typeDesc; + } + + /** + * Get Custom Serializer + */ + public static org.apache.axis.encoding.Serializer getSerializer( + java.lang.String mechType, + java.lang.Class _javaType, + javax.xml.namespace.QName _xmlType) { + return + new org.apache.axis.encoding.ser.BeanSerializer( + _javaType, _xmlType, typeDesc); + } + + /** + * Get Custom Deserializer + */ + public static org.apache.axis.encoding.Deserializer getDeserializer( + java.lang.String mechType, + java.lang.Class _javaType, + javax.xml.namespace.QName _xmlType) { + return + new org.apache.axis.encoding.ser.BeanDeserializer( + _javaType, _xmlType, typeDesc); + } + +} diff --git a/src/uk/ac/ebi/www/WSFile.java b/src/uk/ac/ebi/www/WSFile.java new file mode 100755 index 0000000..4344b7e --- /dev/null +++ b/src/uk/ac/ebi/www/WSFile.java @@ -0,0 +1,120 @@ +/** + * WSFile.java + * + * This file was auto-generated from WSDL + * by the Apache Axis WSDL2Java emitter. + */ + +package uk.ac.ebi.www; + +public class WSFile implements java.io.Serializable { + private java.lang.String type; + private java.lang.String ext; + + public WSFile() { + } + + public java.lang.String getType() { + return type; + } + + public void setType(java.lang.String type) { + this.type = type; + } + + public java.lang.String getExt() { + return ext; + } + + public void setExt(java.lang.String ext) { + this.ext = ext; + } + + private java.lang.Object __equalsCalc = null; + public synchronized boolean equals(java.lang.Object obj) { + if (!(obj instanceof WSFile)) return false; + WSFile other = (WSFile) obj; + if (obj == null) return false; + if (this == obj) return true; + if (__equalsCalc != null) { + return (__equalsCalc == obj); + } + __equalsCalc = obj; + boolean _equals; + _equals = true && + ((type==null && other.getType()==null) || + (type!=null && + type.equals(other.getType()))) && + ((ext==null && other.getExt()==null) || + (ext!=null && + ext.equals(other.getExt()))); + __equalsCalc = null; + return _equals; + } + + private boolean __hashCodeCalc = false; + public synchronized int hashCode() { + if (__hashCodeCalc) { + return 0; + } + __hashCodeCalc = true; + int _hashCode = 1; + if (getType() != null) { + _hashCode += getType().hashCode(); + } + if (getExt() != null) { + _hashCode += getExt().hashCode(); + } + __hashCodeCalc = false; + return _hashCode; + } + + // Type metadata + private static org.apache.axis.description.TypeDesc typeDesc = + new org.apache.axis.description.TypeDesc(WSFile.class); + + static { + org.apache.axis.description.FieldDesc field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("type"); + field.setXmlName(new javax.xml.namespace.QName("", "type")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + field = new org.apache.axis.description.ElementDesc(); + field.setFieldName("ext"); + field.setXmlName(new javax.xml.namespace.QName("", "ext")); + field.setXmlType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string")); + typeDesc.addFieldDesc(field); + }; + + /** + * Return type metadata object + */ + public static org.apache.axis.description.TypeDesc getTypeDesc() { + return typeDesc; + } + + /** + * Get Custom Serializer + */ + public static org.apache.axis.encoding.Serializer getSerializer( + java.lang.String mechType, + java.lang.Class _javaType, + javax.xml.namespace.QName _xmlType) { + return + new org.apache.axis.encoding.ser.BeanSerializer( + _javaType, _xmlType, typeDesc); + } + + /** + * Get Custom Deserializer + */ + public static org.apache.axis.encoding.Deserializer getDeserializer( + java.lang.String mechType, + java.lang.Class _javaType, + javax.xml.namespace.QName _xmlType) { + return + new org.apache.axis.encoding.ser.BeanDeserializer( + _javaType, _xmlType, typeDesc); + } + +} diff --git a/src/uk/ac/ebi/www/WSWUBlast.java b/src/uk/ac/ebi/www/WSWUBlast.java new file mode 100755 index 0000000..becd6ea --- /dev/null +++ b/src/uk/ac/ebi/www/WSWUBlast.java @@ -0,0 +1,18 @@ +/** + * WSWUBlast.java + * + * This file was auto-generated from WSDL + * by the Apache Axis WSDL2Java emitter. + */ + +package uk.ac.ebi.www; + +public interface WSWUBlast extends java.rmi.Remote { + public java.lang.String runWUBlast(uk.ac.ebi.www.InputParams params, uk.ac.ebi.www.Data[] content) throws java.rmi.RemoteException; + public java.lang.String checkStatus(java.lang.String jobid) throws java.rmi.RemoteException; + public byte[] poll(java.lang.String jobid, java.lang.String type) throws java.rmi.RemoteException; + public uk.ac.ebi.www.WSFile[] getResults(java.lang.String jobid) throws java.rmi.RemoteException; + public byte[] test(java.lang.String jobid, java.lang.String type) throws java.rmi.RemoteException; + public byte[] polljob(java.lang.String jobid, java.lang.String outformat) throws java.rmi.RemoteException; + public byte[] doWUBlast(uk.ac.ebi.www.InputParams params, byte[] content) throws java.rmi.RemoteException; +} diff --git a/src/uk/ac/ebi/www/WSWUBlastService.java b/src/uk/ac/ebi/www/WSWUBlastService.java new file mode 100755 index 0000000..fcc8b16 --- /dev/null +++ b/src/uk/ac/ebi/www/WSWUBlastService.java @@ -0,0 +1,16 @@ +/** + * WSWUBlastService.java + * + * This file was auto-generated from WSDL + * by the Apache Axis WSDL2Java emitter. + */ + +package uk.ac.ebi.www; + +public interface WSWUBlastService extends javax.xml.rpc.Service { + public java.lang.String getWSWUBlastAddress(); + + public uk.ac.ebi.www.WSWUBlast getWSWUBlast() throws javax.xml.rpc.ServiceException; + + public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress) throws javax.xml.rpc.ServiceException; +} diff --git a/src/uk/ac/ebi/www/WSWUBlastServiceLocator.java b/src/uk/ac/ebi/www/WSWUBlastServiceLocator.java new file mode 100755 index 0000000..2e8067c --- /dev/null +++ b/src/uk/ac/ebi/www/WSWUBlastServiceLocator.java @@ -0,0 +1,96 @@ +/** + * WSWUBlastServiceLocator.java + * + * This file was auto-generated from WSDL + * by the Apache Axis WSDL2Java emitter. + */ + +package uk.ac.ebi.www; + +public class WSWUBlastServiceLocator extends org.apache.axis.client.Service implements uk.ac.ebi.www.WSWUBlastService { + + // Use to get a proxy class for WSWUBlast + private final java.lang.String WSWUBlast_address = "http://www.ebi.ac.uk/~alabarga/cgi-bin/webservices/WSWUBlast"; + + public java.lang.String getWSWUBlastAddress() { + return WSWUBlast_address; + } + + // The WSDD service name defaults to the port name. + private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast"; + + public java.lang.String getWSWUBlastWSDDServiceName() { + return WSWUBlastWSDDServiceName; + } + + public void setWSWUBlastWSDDServiceName(java.lang.String name) { + WSWUBlastWSDDServiceName = name; + } + + public uk.ac.ebi.www.WSWUBlast getWSWUBlast() throws javax.xml.rpc.ServiceException { + java.net.URL endpoint; + try { + endpoint = new java.net.URL(WSWUBlast_address); + } + catch (java.net.MalformedURLException e) { + return null; // unlikely as URL was validated in WSDL2Java + } + return getWSWUBlast(endpoint); + } + + public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress) throws javax.xml.rpc.ServiceException { + try { + uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(portAddress, this); + _stub.setPortName(getWSWUBlastWSDDServiceName()); + return _stub; + } + catch (org.apache.axis.AxisFault e) { + return null; + } + } + + /** + * For the given interface, get the stub implementation. + * If this service has no port for the given interface, + * then ServiceException is thrown. + */ + public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { + try { + if (uk.ac.ebi.www.WSWUBlast.class.isAssignableFrom(serviceEndpointInterface)) { + uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(new java.net.URL(WSWUBlast_address), this); + _stub.setPortName(getWSWUBlastWSDDServiceName()); + return _stub; + } + } + catch (java.lang.Throwable t) { + throw new javax.xml.rpc.ServiceException(t); + } + throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName())); + } + + /** + * For the given interface, get the stub implementation. + * If this service has no port for the given interface, + * then ServiceException is thrown. + */ + public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException { + java.rmi.Remote _stub = getPort(serviceEndpointInterface); + ((org.apache.axis.client.Stub) _stub).setPortName(portName); + return _stub; + } + + public javax.xml.namespace.QName getServiceName() { + return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "WSWUBlastService"); + } + + private java.util.HashSet ports = null; + + public java.util.Iterator getPorts() { + if (ports == null) { + ports = new java.util.HashSet(); + ports.add(new javax.xml.namespace.QName("WSWUBlast")); + } + return ports.iterator(); + } + +} diff --git a/src/uk/ac/ebi/www/WSWUBlastSoapBindingStub.java b/src/uk/ac/ebi/www/WSWUBlastSoapBindingStub.java new file mode 100755 index 0000000..ea3ee73 --- /dev/null +++ b/src/uk/ac/ebi/www/WSWUBlastSoapBindingStub.java @@ -0,0 +1,323 @@ +/** + * WSWUBlastSoapBindingStub.java + * + * This file was auto-generated from WSDL + * by the Apache Axis WSDL2Java emitter. + */ + +package uk.ac.ebi.www; + +public class WSWUBlastSoapBindingStub extends org.apache.axis.client.Stub implements uk.ac.ebi.www.WSWUBlast { + private java.util.Vector cachedSerClasses = new java.util.Vector(); + private java.util.Vector cachedSerQNames = new java.util.Vector(); + private java.util.Vector cachedSerFactories = new java.util.Vector(); + private java.util.Vector cachedDeserFactories = new java.util.Vector(); + + public WSWUBlastSoapBindingStub() throws org.apache.axis.AxisFault { + this(null); + } + + public WSWUBlastSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { + this(service); + super.cachedEndpoint = endpointURL; + } + + public WSWUBlastSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault { + if (service == null) { + super.service = new org.apache.axis.client.Service(); + } else { + super.service = service; + } + java.lang.Class cls; + javax.xml.namespace.QName qName; + java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class; + java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class; + java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class; + java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class; + java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class; + java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class; + java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class; + java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class; + qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "inputParams"); + cachedSerQNames.add(qName); + cls = uk.ac.ebi.www.InputParams.class; + cachedSerClasses.add(cls); + cachedSerFactories.add(beansf); + cachedDeserFactories.add(beandf); + + qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "WSArrayofFile"); + cachedSerQNames.add(qName); + cls = uk.ac.ebi.www.WSFile[].class; + cachedSerClasses.add(cls); + cachedSerFactories.add(arraysf); + cachedDeserFactories.add(arraydf); + + qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "WSArrayofData"); + cachedSerQNames.add(qName); + cls = uk.ac.ebi.www.Data[].class; + cachedSerClasses.add(cls); + cachedSerFactories.add(arraysf); + cachedDeserFactories.add(arraydf); + + qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "data"); + cachedSerQNames.add(qName); + cls = uk.ac.ebi.www.Data.class; + cachedSerClasses.add(cls); + cachedSerFactories.add(beansf); + cachedDeserFactories.add(beandf); + + qName = new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "WSFile"); + cachedSerQNames.add(qName); + cls = uk.ac.ebi.www.WSFile.class; + cachedSerClasses.add(cls); + cachedSerFactories.add(beansf); + cachedDeserFactories.add(beandf); + + } + + private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException { + try { + org.apache.axis.client.Call _call = + (org.apache.axis.client.Call) super.service.createCall(); + if (super.maintainSessionSet) { + _call.setMaintainSession(super.maintainSession); + } + if (super.cachedUsername != null) { + _call.setUsername(super.cachedUsername); + } + if (super.cachedPassword != null) { + _call.setPassword(super.cachedPassword); + } + if (super.cachedEndpoint != null) { + _call.setTargetEndpointAddress(super.cachedEndpoint); + } + if (super.cachedTimeout != null) { + _call.setTimeout(super.cachedTimeout); + } + if (super.cachedPortName != null) { + _call.setPortName(super.cachedPortName); + } + java.util.Enumeration keys = super.cachedProperties.keys(); + while (keys.hasMoreElements()) { + java.lang.String key = (java.lang.String) keys.nextElement(); + if(_call.isPropertySupported(key)) + _call.setProperty(key, super.cachedProperties.get(key)); + // else + // _call.setScopedProperty(key, super.cachedProperties.get(key)); + } + // All the type mapping information is registered + // when the first call is made. + // The type mapping information is actually registered in + // the TypeMappingRegistry of the service, which + // is the reason why registration is only needed for the first call. + synchronized (this) { + if (firstCall()) { + // must set encoding style before registering serializers + _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC); + for (int i = 0; i < cachedSerFactories.size(); ++i) { + java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i); + javax.xml.namespace.QName qName = + (javax.xml.namespace.QName) cachedSerQNames.get(i); + java.lang.Class sf = (java.lang.Class) + cachedSerFactories.get(i); + java.lang.Class df = (java.lang.Class) + cachedDeserFactories.get(i); + _call.registerTypeMapping(cls, qName, sf, df, false); + } + } + } + return _call; + } + catch (java.lang.Throwable t) { + throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t); + } + } + + public byte[] poll(java.lang.String jobid, java.lang.String type) throws java.rmi.RemoteException { + if (super.cachedEndpoint == null) { + throw new org.apache.axis.NoEndPointException(); + } + org.apache.axis.client.Call _call = createCall(); + _call.addParameter(new javax.xml.namespace.QName("", "jobid"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN); + _call.addParameter(new javax.xml.namespace.QName("", "type"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN); + _call.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class); + _call.setUseSOAPAction(true); + _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#poll"); + _call.setOperationStyle("rpc"); + _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "poll")); + + java.lang.Object _resp = _call.invoke(new java.lang.Object[] {jobid, type}); + + if (_resp instanceof java.rmi.RemoteException) { + throw (java.rmi.RemoteException)_resp; + } + else { + try { + return (byte[]) _resp; + } catch (java.lang.Exception _exception) { + return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp, byte[].class); + } + } + } + + public java.lang.String runWUBlast(uk.ac.ebi.www.InputParams params, uk.ac.ebi.www.Data[] content) throws java.rmi.RemoteException { + if (super.cachedEndpoint == null) { + throw new org.apache.axis.NoEndPointException(); + } + org.apache.axis.client.Call _call = createCall(); + _call.addParameter(new javax.xml.namespace.QName("", "params"), new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "inputParams"), uk.ac.ebi.www.InputParams.class, javax.xml.rpc.ParameterMode.IN); + _call.addParameter(new javax.xml.namespace.QName("", "content"), new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "WSArrayofData"), uk.ac.ebi.www.Data[].class, javax.xml.rpc.ParameterMode.IN); + _call.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class); + _call.setUseSOAPAction(true); + _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#runWUBlast"); + _call.setOperationStyle("rpc"); + _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "runWUBlast")); + + java.lang.Object _resp = _call.invoke(new java.lang.Object[] {params, content}); + + if (_resp instanceof java.rmi.RemoteException) { + throw (java.rmi.RemoteException)_resp; + } + else { + try { + return (java.lang.String) _resp; + } catch (java.lang.Exception _exception) { + return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class); + } + } + } + + public byte[] test(java.lang.String jobid, java.lang.String type) throws java.rmi.RemoteException { + if (super.cachedEndpoint == null) { + throw new org.apache.axis.NoEndPointException(); + } + org.apache.axis.client.Call _call = createCall(); + _call.addParameter(new javax.xml.namespace.QName("", "jobid"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN); + _call.addParameter(new javax.xml.namespace.QName("", "type"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN); + _call.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class); + _call.setUseSOAPAction(true); + _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#test"); + _call.setOperationStyle("rpc"); + _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "test")); + + java.lang.Object _resp = _call.invoke(new java.lang.Object[] {jobid, type}); + + if (_resp instanceof java.rmi.RemoteException) { + throw (java.rmi.RemoteException)_resp; + } + else { + try { + return (byte[]) _resp; + } catch (java.lang.Exception _exception) { + return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp, byte[].class); + } + } + } + + public java.lang.String checkStatus(java.lang.String jobid) throws java.rmi.RemoteException { + if (super.cachedEndpoint == null) { + throw new org.apache.axis.NoEndPointException(); + } + org.apache.axis.client.Call _call = createCall(); + _call.addParameter(new javax.xml.namespace.QName("", "jobid"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN); + _call.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class); + _call.setUseSOAPAction(true); + _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#checkStatus"); + _call.setOperationStyle("rpc"); + _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "checkStatus")); + + java.lang.Object _resp = _call.invoke(new java.lang.Object[] {jobid}); + + if (_resp instanceof java.rmi.RemoteException) { + throw (java.rmi.RemoteException)_resp; + } + else { + try { + return (java.lang.String) _resp; + } catch (java.lang.Exception _exception) { + return (java.lang.String) org.apache.axis.utils.JavaUtils.convert(_resp, java.lang.String.class); + } + } + } + + public uk.ac.ebi.www.WSFile[] getResults(java.lang.String jobid) throws java.rmi.RemoteException { + if (super.cachedEndpoint == null) { + throw new org.apache.axis.NoEndPointException(); + } + org.apache.axis.client.Call _call = createCall(); + _call.addParameter(new javax.xml.namespace.QName("", "jobid"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN); + _call.setReturnType(new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "WSArrayofFile"), uk.ac.ebi.www.WSFile[].class); + _call.setUseSOAPAction(true); + _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#getResults"); + _call.setOperationStyle("rpc"); + _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "getResults")); + + java.lang.Object _resp = _call.invoke(new java.lang.Object[] {jobid}); + + if (_resp instanceof java.rmi.RemoteException) { + throw (java.rmi.RemoteException)_resp; + } + else { + try { + return (uk.ac.ebi.www.WSFile[]) _resp; + } catch (java.lang.Exception _exception) { + return (uk.ac.ebi.www.WSFile[]) org.apache.axis.utils.JavaUtils.convert(_resp, uk.ac.ebi.www.WSFile[].class); + } + } + } + + public byte[] polljob(java.lang.String jobid, java.lang.String outformat) throws java.rmi.RemoteException { + if (super.cachedEndpoint == null) { + throw new org.apache.axis.NoEndPointException(); + } + org.apache.axis.client.Call _call = createCall(); + _call.addParameter(new javax.xml.namespace.QName("", "jobid"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN); + _call.addParameter(new javax.xml.namespace.QName("", "outformat"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, javax.xml.rpc.ParameterMode.IN); + _call.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class); + _call.setUseSOAPAction(true); + _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#polljob"); + _call.setOperationStyle("rpc"); + _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "polljob")); + + java.lang.Object _resp = _call.invoke(new java.lang.Object[] {jobid, outformat}); + + if (_resp instanceof java.rmi.RemoteException) { + throw (java.rmi.RemoteException)_resp; + } + else { + try { + return (byte[]) _resp; + } catch (java.lang.Exception _exception) { + return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp, byte[].class); + } + } + } + + public byte[] doWUBlast(uk.ac.ebi.www.InputParams params, byte[] content) throws java.rmi.RemoteException { + if (super.cachedEndpoint == null) { + throw new org.apache.axis.NoEndPointException(); + } + org.apache.axis.client.Call _call = createCall(); + _call.addParameter(new javax.xml.namespace.QName("", "params"), new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "inputParams"), uk.ac.ebi.www.InputParams.class, javax.xml.rpc.ParameterMode.IN); + _call.addParameter(new javax.xml.namespace.QName("", "content"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class, javax.xml.rpc.ParameterMode.IN); + _call.setReturnType(new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class); + _call.setUseSOAPAction(true); + _call.setSOAPActionURI("http://www.ebi.ac.uk/WSWUBlast#doWUBlast"); + _call.setOperationStyle("rpc"); + _call.setOperationName(new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "doWUBlast")); + + java.lang.Object _resp = _call.invoke(new java.lang.Object[] {params, content}); + + if (_resp instanceof java.rmi.RemoteException) { + throw (java.rmi.RemoteException)_resp; + } + else { + try { + return (byte[]) _resp; + } catch (java.lang.Exception _exception) { + return (byte[]) org.apache.axis.utils.JavaUtils.convert(_resp, byte[].class); + } + } + } + +} -- 1.7.10.2