2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.2)
3 * Copyright (C) 2014 The Jalview Authors
5 * This file is part of Jalview.
7 * Jalview is free software: you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation, either version 3
10 * of the License, or (at your option) any later version.
12 * Jalview is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty
14 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 * PURPOSE. See the GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with Jalview. If not, see <http://www.gnu.org/licenses/>.
19 * The Jalview Authors are detailed in the 'AUTHORS' file.
21 package uk.ac.ebi.www;
23 public class WSWUBlastServiceLocator extends org.apache.axis.client.Service
24 implements uk.ac.ebi.www.WSWUBlastService
27 // Use to get a proxy class for WSWUBlast
28 private final java.lang.String WSWUBlast_address = "http://www.ebi.ac.uk/~alabarga/cgi-bin/webservices/WSWUBlast";
30 public java.lang.String getWSWUBlastAddress()
32 return WSWUBlast_address;
35 // The WSDD service name defaults to the port name.
36 private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
38 public java.lang.String getWSWUBlastWSDDServiceName()
40 return WSWUBlastWSDDServiceName;
43 public void setWSWUBlastWSDDServiceName(java.lang.String name)
45 WSWUBlastWSDDServiceName = name;
48 public uk.ac.ebi.www.WSWUBlast getWSWUBlast()
49 throws javax.xml.rpc.ServiceException
51 java.net.URL endpoint;
54 endpoint = new java.net.URL(WSWUBlast_address);
55 } catch (java.net.MalformedURLException e)
57 return null; // unlikely as URL was validated in WSDL2Java
59 return getWSWUBlast(endpoint);
62 public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress)
63 throws javax.xml.rpc.ServiceException
67 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
69 _stub.setPortName(getWSWUBlastWSDDServiceName());
71 } catch (org.apache.axis.AxisFault e)
78 * For the given interface, get the stub implementation. If this service has
79 * no port for the given interface, then ServiceException is thrown.
81 public java.rmi.Remote getPort(Class serviceEndpointInterface)
82 throws javax.xml.rpc.ServiceException
86 if (uk.ac.ebi.www.WSWUBlast.class
87 .isAssignableFrom(serviceEndpointInterface))
89 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
90 new java.net.URL(WSWUBlast_address), this);
91 _stub.setPortName(getWSWUBlastWSDDServiceName());
94 } catch (java.lang.Throwable t)
96 throw new javax.xml.rpc.ServiceException(t);
98 throw new javax.xml.rpc.ServiceException(
99 "There is no stub implementation for the interface: "
100 + (serviceEndpointInterface == null ? "null"
101 : serviceEndpointInterface.getName()));
105 * For the given interface, get the stub implementation. If this service has
106 * no port for the given interface, then ServiceException is thrown.
108 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
109 Class serviceEndpointInterface)
110 throws javax.xml.rpc.ServiceException
112 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
113 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
117 public javax.xml.namespace.QName getServiceName()
119 return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
123 private java.util.HashSet ports = null;
125 public java.util.Iterator getPorts()
129 ports = new java.util.HashSet();
130 ports.add(new javax.xml.namespace.QName("WSWUBlast"));
132 return ports.iterator();