2 * Jalview - A Sequence Alignment Editor and Viewer (Version 2.7)
3 * Copyright (C) 2011 J Procter, AM Waterhouse, J Engelhardt, LM Lui, G Barton, M Clamp, S Searle
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/>.
18 package uk.ac.ebi.www;
20 public class WSWUBlastServiceLocator extends org.apache.axis.client.Service
21 implements uk.ac.ebi.www.WSWUBlastService
24 // Use to get a proxy class for WSWUBlast
25 private final java.lang.String WSWUBlast_address = "http://www.ebi.ac.uk/~alabarga/cgi-bin/webservices/WSWUBlast";
27 public java.lang.String getWSWUBlastAddress()
29 return WSWUBlast_address;
32 // The WSDD service name defaults to the port name.
33 private java.lang.String WSWUBlastWSDDServiceName = "WSWUBlast";
35 public java.lang.String getWSWUBlastWSDDServiceName()
37 return WSWUBlastWSDDServiceName;
40 public void setWSWUBlastWSDDServiceName(java.lang.String name)
42 WSWUBlastWSDDServiceName = name;
45 public uk.ac.ebi.www.WSWUBlast getWSWUBlast()
46 throws javax.xml.rpc.ServiceException
48 java.net.URL endpoint;
51 endpoint = new java.net.URL(WSWUBlast_address);
52 } catch (java.net.MalformedURLException e)
54 return null; // unlikely as URL was validated in WSDL2Java
56 return getWSWUBlast(endpoint);
59 public uk.ac.ebi.www.WSWUBlast getWSWUBlast(java.net.URL portAddress)
60 throws javax.xml.rpc.ServiceException
64 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
66 _stub.setPortName(getWSWUBlastWSDDServiceName());
68 } catch (org.apache.axis.AxisFault e)
75 * For the given interface, get the stub implementation. If this service has
76 * no port for the given interface, then ServiceException is thrown.
78 public java.rmi.Remote getPort(Class serviceEndpointInterface)
79 throws javax.xml.rpc.ServiceException
83 if (uk.ac.ebi.www.WSWUBlast.class
84 .isAssignableFrom(serviceEndpointInterface))
86 uk.ac.ebi.www.WSWUBlastSoapBindingStub _stub = new uk.ac.ebi.www.WSWUBlastSoapBindingStub(
87 new java.net.URL(WSWUBlast_address), this);
88 _stub.setPortName(getWSWUBlastWSDDServiceName());
91 } catch (java.lang.Throwable t)
93 throw new javax.xml.rpc.ServiceException(t);
95 throw new javax.xml.rpc.ServiceException(
96 "There is no stub implementation for the interface: "
97 + (serviceEndpointInterface == null ? "null"
98 : serviceEndpointInterface.getName()));
102 * For the given interface, get the stub implementation. If this service has
103 * no port for the given interface, then ServiceException is thrown.
105 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
106 Class serviceEndpointInterface)
107 throws javax.xml.rpc.ServiceException
109 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
110 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
114 public javax.xml.namespace.QName getServiceName()
116 return new javax.xml.namespace.QName("http://www.ebi.ac.uk/WSWUBlast",
120 private java.util.HashSet ports = null;
122 public java.util.Iterator getPorts()
126 ports = new java.util.HashSet();
127 ports.add(new javax.xml.namespace.QName("WSWUBlast"));
129 return ports.iterator();