2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.8.1)
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 of the License, or (at your option) any later version.
11 * Jalview is distributed in the hope that it will be useful, but
12 * WITHOUT ANY WARRANTY; without even the implied warranty
13 * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 * PURPOSE. See the GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along with Jalview. If not, see <http://www.gnu.org/licenses/>.
17 * The Jalview Authors are detailed in the 'AUTHORS' file.
19 package uk.ac.ebi.www;
21 public class WSWUBlastServiceLocator extends org.apache.axis.client.Service
22 implements uk.ac.ebi.www.WSWUBlastService
25 // Use to get a proxy class for WSWUBlast
26 private final java.lang.String WSWUBlast_address = "http://www.ebi.ac.uk/~alabarga/cgi-bin/webservices/WSWUBlast";
28 public java.lang.String getWSWUBlastAddress()
30 return WSWUBlast_address;
33 // The WSDD service name defaults to the port name.
34 private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
36 public java.lang.String getWSWUBlastWSDDServiceName()
38 return WSWUBlastWSDDServiceName;
41 public void setWSWUBlastWSDDServiceName(java.lang.String name)
43 WSWUBlastWSDDServiceName = name;
46 public uk.ac.ebi.www.WSWUBlast getWSWUBlast()
47 throws javax.xml.rpc.ServiceException
49 java.net.URL endpoint;
52 endpoint = new java.net.URL(WSWUBlast_address);
53 } catch (java.net.MalformedURLException e)
55 return null; // unlikely as URL was validated in WSDL2Java
57 return getWSWUBlast(endpoint);
60 public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress)
61 throws javax.xml.rpc.ServiceException
65 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
67 _stub.setPortName(getWSWUBlastWSDDServiceName());
69 } catch (org.apache.axis.AxisFault e)
76 * For the given interface, get the stub implementation. If this service has
77 * no port for the given interface, then ServiceException is thrown.
79 public java.rmi.Remote getPort(Class serviceEndpointInterface)
80 throws javax.xml.rpc.ServiceException
84 if (uk.ac.ebi.www.WSWUBlast.class
85 .isAssignableFrom(serviceEndpointInterface))
87 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
88 new java.net.URL(WSWUBlast_address), this);
89 _stub.setPortName(getWSWUBlastWSDDServiceName());
92 } catch (java.lang.Throwable t)
94 throw new javax.xml.rpc.ServiceException(t);
96 throw new javax.xml.rpc.ServiceException(
97 "There is no stub implementation for the interface: "
98 + (serviceEndpointInterface == null ? "null"
99 : serviceEndpointInterface.getName()));
103 * For the given interface, get the stub implementation. If this service has
104 * no port for the given interface, then ServiceException is thrown.
106 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
107 Class serviceEndpointInterface)
108 throws javax.xml.rpc.ServiceException
110 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
111 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
115 public javax.xml.namespace.QName getServiceName()
117 return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
121 private java.util.HashSet ports = null;
123 public java.util.Iterator getPorts()
127 ports = new java.util.HashSet();
128 ports.add(new javax.xml.namespace.QName("WSWUBlast"));
130 return ports.iterator();