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
11 implements uk.ac.ebi.www.WSWUBlastService
14 // Use to get a proxy class for WSWUBlast
15 private final java.lang.String WSWUBlast_address = "http://www.ebi.ac.uk/~alabarga/cgi-bin/webservices/WSWUBlast";
17 public java.lang.String getWSWUBlastAddress()
19 return WSWUBlast_address;
22 // The WSDD service name defaults to the port name.
23 private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
25 public java.lang.String getWSWUBlastWSDDServiceName()
27 return WSWUBlastWSDDServiceName;
30 public void setWSWUBlastWSDDServiceName(java.lang.String name)
32 WSWUBlastWSDDServiceName = name;
35 public uk.ac.ebi.www.WSWUBlast getWSWUBlast()
36 throws javax.xml.rpc.ServiceException
38 java.net.URL endpoint;
41 endpoint = new java.net.URL(WSWUBlast_address);
42 } catch (java.net.MalformedURLException e)
44 return null; // unlikely as URL was validated in WSDL2Java
46 return getWSWUBlast(endpoint);
49 public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress)
50 throws javax.xml.rpc.ServiceException
54 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
56 _stub.setPortName(getWSWUBlastWSDDServiceName());
58 } catch (org.apache.axis.AxisFault e)
65 * For the given interface, get the stub implementation. If this service has
66 * no port for the given interface, then ServiceException is thrown.
68 public java.rmi.Remote getPort(Class serviceEndpointInterface)
69 throws javax.xml.rpc.ServiceException
73 if (uk.ac.ebi.www.WSWUBlast.class
74 .isAssignableFrom(serviceEndpointInterface))
76 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
77 new java.net.URL(WSWUBlast_address), this);
78 _stub.setPortName(getWSWUBlastWSDDServiceName());
81 } catch (java.lang.Throwable t)
83 throw new javax.xml.rpc.ServiceException(t);
85 throw new javax.xml.rpc.ServiceException(
86 "There is no stub implementation for the interface: "
87 + (serviceEndpointInterface == null ? "null"
88 : serviceEndpointInterface.getName()));
92 * For the given interface, get the stub implementation. If this service has
93 * no port for the given interface, then ServiceException is thrown.
95 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
96 Class serviceEndpointInterface)
97 throws javax.xml.rpc.ServiceException
99 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
100 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
104 public javax.xml.namespace.QName getServiceName()
106 return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
110 private java.util.HashSet ports = null;
112 public java.util.Iterator getPorts()
116 ports = new java.util.HashSet();
117 ports.add(new javax.xml.namespace.QName("WSWUBlast"));
119 return ports.iterator();