2 * Jalview - A Sequence Alignment Editor and Viewer (Development Version 2.4.1)
\r
3 * Copyright (C) 2009 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
\r
5 * This program is free software; you can redistribute it and/or
\r
6 * modify it under the terms of the GNU General Public License
\r
7 * as published by the Free Software Foundation; either version 2
\r
8 * of the License, or (at your option) any later version.
\r
10 * This program is distributed in the hope that it will be useful,
\r
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
\r
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
\r
13 * GNU General Public License for more details.
\r
15 * You should have received a copy of the GNU General Public License
\r
16 * along with this program; if not, write to the Free Software
\r
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
\r
21 public class SeqSearchServiceLocator extends org.apache.axis.client.Service
\r
22 implements ext.vamsas.SeqSearchServiceService
\r
25 public SeqSearchServiceLocator()
\r
29 public SeqSearchServiceLocator(org.apache.axis.EngineConfiguration config)
\r
34 // Use to get a proxy class for ScanPSService
\r
35 private java.lang.String ScanPSService_address = "http://localhost:8080/TestJWS/services/ScanPSService";
\r
37 public java.lang.String getSeqSeachServiceAddress()
\r
39 return ScanPSService_address;
\r
42 // The WSDD service name defaults to the port name.
\r
43 private java.lang.String ScanPSServiceWSDDServiceName = "ScanPSService";
\r
45 public java.lang.String getScanPSServiceWSDDServiceName()
\r
47 return ScanPSServiceWSDDServiceName;
\r
50 public void setScanPSServiceWSDDServiceName(java.lang.String name)
\r
52 ScanPSServiceWSDDServiceName = name;
\r
55 public ext.vamsas.SeqSearchI getSeqSearchService()
\r
56 throws javax.xml.rpc.ServiceException
\r
58 java.net.URL endpoint;
\r
61 endpoint = new java.net.URL(ScanPSService_address);
\r
62 } catch (java.net.MalformedURLException e)
\r
64 throw new javax.xml.rpc.ServiceException(e);
\r
66 return getSeqSearchService(endpoint);
\r
69 public ext.vamsas.SeqSearchI getSeqSearchService(java.net.URL portAddress)
\r
70 throws javax.xml.rpc.ServiceException
\r
74 ext.vamsas.SeqSearchServiceSoapBindingStub _stub = new ext.vamsas.SeqSearchServiceSoapBindingStub(
\r
76 _stub.setPortName(getScanPSServiceWSDDServiceName());
\r
78 } catch (org.apache.axis.AxisFault e)
\r
84 public void setScanPSServiceEndpointAddress(java.lang.String address)
\r
86 ScanPSService_address = address;
\r
90 * For the given interface, get the stub implementation. If this service has
\r
91 * no port for the given interface, then ServiceException is thrown.
\r
93 public java.rmi.Remote getPort(Class serviceEndpointInterface)
\r
94 throws javax.xml.rpc.ServiceException
\r
98 if (ext.vamsas.SeqSearchI.class
\r
99 .isAssignableFrom(serviceEndpointInterface))
\r
101 ext.vamsas.SeqSearchServiceSoapBindingStub _stub = new ext.vamsas.SeqSearchServiceSoapBindingStub(
\r
102 new java.net.URL(ScanPSService_address), this);
\r
103 _stub.setPortName(getScanPSServiceWSDDServiceName());
\r
106 } catch (java.lang.Throwable t)
\r
108 throw new javax.xml.rpc.ServiceException(t);
\r
110 throw new javax.xml.rpc.ServiceException(
\r
111 "There is no stub implementation for the interface: "
\r
112 + (serviceEndpointInterface == null ? "null"
\r
113 : serviceEndpointInterface.getName()));
\r
117 * For the given interface, get the stub implementation. If this service has
\r
118 * no port for the given interface, then ServiceException is thrown.
\r
120 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
\r
121 Class serviceEndpointInterface)
\r
122 throws javax.xml.rpc.ServiceException
\r
124 if (portName == null)
\r
126 return getPort(serviceEndpointInterface);
\r
128 java.lang.String inputPortName = portName.getLocalPart();
\r
129 if ("ScanPSService".equals(inputPortName))
\r
131 return getSeqSearchService();
\r
135 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
\r
136 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
\r
141 public javax.xml.namespace.QName getServiceName()
\r
143 return new javax.xml.namespace.QName("vamsas", "ScanPSServiceService");
\r
146 private java.util.HashSet ports = null;
\r
148 public java.util.Iterator getPorts()
\r
152 ports = new java.util.HashSet();
\r
153 ports.add(new javax.xml.namespace.QName("vamsas", "ScanPSService"));
\r
155 return ports.iterator();
\r
159 * Set the endpoint address for the specified port name.
\r
161 public void setEndpointAddress(java.lang.String portName,
\r
162 java.lang.String address) throws javax.xml.rpc.ServiceException
\r
164 if ("ScanPSService".equals(portName))
\r
166 setScanPSServiceEndpointAddress(address);
\r
169 { // Unknown Port Name
\r
170 throw new javax.xml.rpc.ServiceException(
\r
171 " Cannot set Endpoint Address for Unknown Port" + portName);
\r
176 * Set the endpoint address for the specified port name.
\r
178 public void setEndpointAddress(javax.xml.namespace.QName portName,
\r
179 java.lang.String address) throws javax.xml.rpc.ServiceException
\r
181 setEndpointAddress(portName.getLocalPart(), address);
\r