merge from 2_4_Release branch
[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 extends org.apache.axis.client.Service
11         implements uk.ac.ebi.www.WSWUBlastService
12 {
13
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";
16
17   public java.lang.String getWSWUBlastAddress()
18   {
19     return WSWUBlast_address;
20   }
21
22   // The WSDD service name defaults to the port name.
23   private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
24
25   public java.lang.String getWSWUBlastWSDDServiceName()
26   {
27     return WSWUBlastWSDDServiceName;
28   }
29
30   public void setWSWUBlastWSDDServiceName(java.lang.String name)
31   {
32     WSWUBlastWSDDServiceName = name;
33   }
34
35   public uk.ac.ebi.www.WSWUBlast getWSWUBlast()
36           throws javax.xml.rpc.ServiceException
37   {
38     java.net.URL endpoint;
39     try
40     {
41       endpoint = new java.net.URL(WSWUBlast_address);
42     } catch (java.net.MalformedURLException e)
43     {
44       return null; // unlikely as URL was validated in WSDL2Java
45     }
46     return getWSWUBlast(endpoint);
47   }
48
49   public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress)
50           throws javax.xml.rpc.ServiceException
51   {
52     try
53     {
54       uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
55               portAddress, this);
56       _stub.setPortName(getWSWUBlastWSDDServiceName());
57       return _stub;
58     } catch (org.apache.axis.AxisFault e)
59     {
60       return null;
61     }
62   }
63
64   /**
65    * For the given interface, get the stub implementation. If this service has
66    * no port for the given interface, then ServiceException is thrown.
67    */
68   public java.rmi.Remote getPort(Class serviceEndpointInterface)
69           throws javax.xml.rpc.ServiceException
70   {
71     try
72     {
73       if (uk.ac.ebi.www.WSWUBlast.class
74               .isAssignableFrom(serviceEndpointInterface))
75       {
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());
79         return _stub;
80       }
81     } catch (java.lang.Throwable t)
82     {
83       throw new javax.xml.rpc.ServiceException(t);
84     }
85     throw new javax.xml.rpc.ServiceException(
86             "There is no stub implementation for the interface:  "
87                     + (serviceEndpointInterface == null ? "null"
88                             : serviceEndpointInterface.getName()));
89   }
90
91   /**
92    * For the given interface, get the stub implementation. If this service has
93    * no port for the given interface, then ServiceException is thrown.
94    */
95   public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
96           Class serviceEndpointInterface)
97           throws javax.xml.rpc.ServiceException
98   {
99     java.rmi.Remote _stub = getPort(serviceEndpointInterface);
100     ((org.apache.axis.client.Stub) _stub).setPortName(portName);
101     return _stub;
102   }
103
104   public javax.xml.namespace.QName getServiceName()
105   {
106     return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
107             "WSWUBlastService");
108   }
109
110   private java.util.HashSet ports = null;
111
112   public java.util.Iterator getPorts()
113   {
114     if (ports == null)
115     {
116       ports = new java.util.HashSet();
117       ports.add(new javax.xml.namespace.QName("WSWUBlast"));
118     }
119     return ports.iterator();
120   }
121
122 }