Formatting
[jalview.git] / src / uk / ac / ebi / www / WSWUBlastServiceLocator.java
1 /**
2  * WSWUBlastServiceLocator.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis WSDL2Java emitter.
6  */
7
8 package uk.ac.ebi.www;
9
10 public class WSWUBlastServiceLocator
11     extends org.apache.axis.client.Service implements uk.ac.ebi.www.
12     WSWUBlastService
13 {
14
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";
18
19   public java.lang.String getWSWUBlastAddress()
20   {
21     return WSWUBlast_address;
22   }
23
24   // The WSDD service name defaults to the port name.
25   private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
26
27   public java.lang.String getWSWUBlastWSDDServiceName()
28   {
29     return WSWUBlastWSDDServiceName;
30   }
31
32   public void setWSWUBlastWSDDServiceName(java.lang.String name)
33   {
34     WSWUBlastWSDDServiceName = name;
35   }
36
37   public uk.ac.ebi.www.WSWUBlast getWSWUBlast()
38       throws javax.xml.rpc.ServiceException
39   {
40     java.net.URL endpoint;
41     try
42     {
43       endpoint = new java.net.URL(WSWUBlast_address);
44     }
45     catch (java.net.MalformedURLException e)
46     {
47       return null; // unlikely as URL was validated in WSDL2Java
48     }
49     return getWSWUBlast(endpoint);
50   }
51
52   public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress)
53       throws javax.xml.rpc.ServiceException
54   {
55     try
56     {
57       uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.
58           WSWUBlastSoapBindingStub(portAddress, this);
59       _stub.setPortName(getWSWUBlastWSDDServiceName());
60       return _stub;
61     }
62     catch (org.apache.axis.AxisFault e)
63     {
64       return null;
65     }
66   }
67
68   /**
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.
72    */
73   public java.rmi.Remote getPort(Class serviceEndpointInterface)
74       throws javax.xml.rpc.ServiceException
75   {
76     try
77     {
78       if (uk.ac.ebi.www.WSWUBlast.class.isAssignableFrom(
79           serviceEndpointInterface))
80       {
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());
84         return _stub;
85       }
86     }
87     catch (java.lang.Throwable t)
88     {
89       throw new javax.xml.rpc.ServiceException(t);
90     }
91     throw new javax.xml.rpc.ServiceException(
92         "There is no stub implementation for the interface:  " +
93         (serviceEndpointInterface == null ? "null" :
94          serviceEndpointInterface.getName()));
95   }
96
97   /**
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.
101    */
102   public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
103                                  Class serviceEndpointInterface)
104       throws javax.xml.rpc.ServiceException
105   {
106     java.rmi.Remote _stub = getPort(serviceEndpointInterface);
107     ( (org.apache.axis.client.Stub) _stub).setPortName(portName);
108     return _stub;
109   }
110
111   public javax.xml.namespace.QName getServiceName()
112   {
113     return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
114                                          "WSWUBlastService");
115   }
116
117   private java.util.HashSet ports = null;
118
119   public java.util.Iterator getPorts()
120   {
121     if (ports == null)
122     {
123       ports = new java.util.HashSet();
124       ports.add(new javax.xml.namespace.QName("WSWUBlast"));
125     }
126     return ports.iterator();
127   }
128
129 }