2 * WSWUBlastServiceLocator.java
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
10 public class WSWUBlastServiceLocator extends org.apache.axis.client.Service implements uk.ac.ebi.www.WSWUBlastService {
12 // Use to get a proxy class for WSWUBlast
13 private final java.lang.String WSWUBlast_address = "http://www.ebi.ac.uk/~alabarga/cgi-bin/webservices/WSWUBlast";
15 public java.lang.String getWSWUBlastAddress() {
16 return WSWUBlast_address;
19 // The WSDD service name defaults to the port name.
20 private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
22 public java.lang.String getWSWUBlastWSDDServiceName() {
23 return WSWUBlastWSDDServiceName;
26 public void setWSWUBlastWSDDServiceName(java.lang.String name) {
27 WSWUBlastWSDDServiceName = name;
30 public uk.ac.ebi.www.WSWUBlast getWSWUBlast() throws javax.xml.rpc.ServiceException {
31 java.net.URL endpoint;
33 endpoint = new java.net.URL(WSWUBlast_address);
35 catch (java.net.MalformedURLException e) {
36 return null; // unlikely as URL was validated in WSDL2Java
38 return getWSWUBlast(endpoint);
41 public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
43 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(portAddress, this);
44 _stub.setPortName(getWSWUBlastWSDDServiceName());
47 catch (org.apache.axis.AxisFault e) {
53 * For the given interface, get the stub implementation.
54 * If this service has no port for the given interface,
55 * then ServiceException is thrown.
57 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
59 if (uk.ac.ebi.www.WSWUBlast.class.isAssignableFrom(serviceEndpointInterface)) {
60 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(new java.net.URL(WSWUBlast_address), this);
61 _stub.setPortName(getWSWUBlastWSDDServiceName());
65 catch (java.lang.Throwable t) {
66 throw new javax.xml.rpc.ServiceException(t);
68 throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
72 * For the given interface, get the stub implementation.
73 * If this service has no port for the given interface,
74 * then ServiceException is thrown.
76 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
77 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
78 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
82 public javax.xml.namespace.QName getServiceName() {
83 return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast", "WSWUBlastService");
86 private java.util.HashSet ports = null;
88 public java.util.Iterator getPorts() {
90 ports = new java.util.HashSet();
91 ports.add(new javax.xml.namespace.QName("WSWUBlast"));
93 return ports.iterator();