2 * WSWUBlastServiceLocator.java
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
10 public class WSWUBlastServiceLocator
11 extends org.apache.axis.client.Service implements uk.ac.ebi.www.
15 // Use to get a proxy class for WSWUBlast
16 private final java.lang.String WSWUBlast_address =
17 "http://www.ebi.ac.uk/~alabarga/cgi-bin/webservices/WSWUBlast";
19 public java.lang.String getWSWUBlastAddress()
21 return WSWUBlast_address;
24 // The WSDD service name defaults to the port name.
25 private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
27 public java.lang.String getWSWUBlastWSDDServiceName()
29 return WSWUBlastWSDDServiceName;
32 public void setWSWUBlastWSDDServiceName(java.lang.String name)
34 WSWUBlastWSDDServiceName = name;
37 public uk.ac.ebi.www.WSWUBlast getWSWUBlast()
38 throws javax.xml.rpc.ServiceException
40 java.net.URL endpoint;
43 endpoint = new java.net.URL(WSWUBlast_address);
45 catch (java.net.MalformedURLException e)
47 return null; // unlikely as URL was validated in WSDL2Java
49 return getWSWUBlast(endpoint);
52 public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress)
53 throws javax.xml.rpc.ServiceException
57 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.
58 WSWUBlastSoapBindingStub(portAddress, this);
59 _stub.setPortName(getWSWUBlastWSDDServiceName());
62 catch (org.apache.axis.AxisFault e)
69 * For the given interface, get the stub implementation.
70 * If this service has no port for the given interface,
71 * then ServiceException is thrown.
73 public java.rmi.Remote getPort(Class serviceEndpointInterface)
74 throws javax.xml.rpc.ServiceException
78 if (uk.ac.ebi.www.WSWUBlast.class.isAssignableFrom(
79 serviceEndpointInterface))
81 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.
82 WSWUBlastSoapBindingStub(new java.net.URL(WSWUBlast_address), this);
83 _stub.setPortName(getWSWUBlastWSDDServiceName());
87 catch (java.lang.Throwable t)
89 throw new javax.xml.rpc.ServiceException(t);
91 throw new javax.xml.rpc.ServiceException(
92 "There is no stub implementation for the interface: " +
93 (serviceEndpointInterface == null ? "null" :
94 serviceEndpointInterface.getName()));
98 * For the given interface, get the stub implementation.
99 * If this service has no port for the given interface,
100 * then ServiceException is thrown.
102 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
103 Class serviceEndpointInterface)
104 throws javax.xml.rpc.ServiceException
106 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
107 ( (org.apache.axis.client.Stub) _stub).setPortName(portName);
111 public javax.xml.namespace.QName getServiceName()
113 return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
117 private java.util.HashSet ports = null;
119 public java.util.Iterator getPorts()
123 ports = new java.util.HashSet();
124 ports.add(new javax.xml.namespace.QName("WSWUBlast"));
126 return ports.iterator();