2 * MuscleWSServiceLocator.java
4 * This file was auto-generated from WSDL
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
9 * Jalview - A Sequence Alignment Editor and Viewer
10 * Copyright (C) 2005 AM Waterhouse, J Procter, G Barton, M Clamp, S Searle
12 * This program is free software; you can redistribute it and/or
13 * modify it under the terms of the GNU General Public License
14 * as published by the Free Software Foundation; either version 2
15 * of the License, or (at your option) any later version.
17 * This program is distributed in the hope that it will be useful,
18 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 * GNU General Public License for more details.
22 * You should have received a copy of the GNU General Public License
23 * along with this program; if not, write to the Free Software
24 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
28 public class MuscleWSServiceLocator extends org.apache.axis.client.Service
\r
29 implements ext.vamsas.MuscleWSService {
\r
30 // Use to get a proxy class for MuscleWS
\r
31 private java.lang.String MuscleWS_address = "http://anaplog.compbio.dundee.ac.uk:8080/axis/services/MuscleWS";
\r
33 // The WSDD service name defaults to the port name.
\r
34 private java.lang.String MuscleWSWSDDServiceName = "MuscleWS";
\r
35 private java.util.HashSet ports = null;
\r
37 public MuscleWSServiceLocator() {
\r
40 public MuscleWSServiceLocator(org.apache.axis.EngineConfiguration config) {
\r
44 public java.lang.String getMuscleWSAddress() {
\r
45 return MuscleWS_address;
\r
48 public java.lang.String getMuscleWSWSDDServiceName() {
\r
49 return MuscleWSWSDDServiceName;
\r
52 public void setMuscleWSWSDDServiceName(java.lang.String name) {
\r
53 MuscleWSWSDDServiceName = name;
\r
56 public ext.vamsas.MuscleWS getMuscleWS()
\r
57 throws javax.xml.rpc.ServiceException {
\r
58 java.net.URL endpoint;
\r
61 endpoint = new java.net.URL(MuscleWS_address);
\r
62 } catch (java.net.MalformedURLException e) {
\r
63 throw new javax.xml.rpc.ServiceException(e);
\r
66 return getMuscleWS(endpoint);
\r
69 public ext.vamsas.MuscleWS getMuscleWS(java.net.URL portAddress)
\r
70 throws javax.xml.rpc.ServiceException {
\r
72 ext.vamsas.MuscleWSSoapBindingStub _stub = new ext.vamsas.MuscleWSSoapBindingStub(portAddress,
\r
74 _stub.setPortName(getMuscleWSWSDDServiceName());
\r
77 } catch (org.apache.axis.AxisFault e) {
\r
82 public void setMuscleWSEndpointAddress(java.lang.String address) {
\r
83 MuscleWS_address = address;
\r
87 * For the given interface, get the stub implementation.
88 * If this service has no port for the given interface,
89 * then ServiceException is thrown.
91 public java.rmi.Remote getPort(Class serviceEndpointInterface)
\r
92 throws javax.xml.rpc.ServiceException {
\r
94 if (ext.vamsas.MuscleWS.class.isAssignableFrom(
\r
95 serviceEndpointInterface)) {
\r
96 ext.vamsas.MuscleWSSoapBindingStub _stub = new ext.vamsas.MuscleWSSoapBindingStub(new java.net.URL(
\r
97 MuscleWS_address), this);
\r
98 _stub.setPortName(getMuscleWSWSDDServiceName());
\r
102 } catch (java.lang.Throwable t) {
\r
103 throw new javax.xml.rpc.ServiceException(t);
\r
106 throw new javax.xml.rpc.ServiceException(
\r
107 "There is no stub implementation for the interface: " +
\r
108 ((serviceEndpointInterface == null) ? "null"
\r
109 : serviceEndpointInterface.getName()));
\r
113 * For the given interface, get the stub implementation.
114 * If this service has no port for the given interface,
115 * then ServiceException is thrown.
117 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
\r
118 Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
\r
119 if (portName == null) {
\r
120 return getPort(serviceEndpointInterface);
\r
123 java.lang.String inputPortName = portName.getLocalPart();
\r
125 if ("MuscleWS".equals(inputPortName)) {
\r
126 return getMuscleWS();
\r
128 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
\r
129 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
\r
135 public javax.xml.namespace.QName getServiceName() {
\r
136 return new javax.xml.namespace.QName("vamsas", "MuscleWSService");
\r
139 public java.util.Iterator getPorts() {
\r
140 if (ports == null) {
\r
141 ports = new java.util.HashSet();
\r
142 ports.add(new javax.xml.namespace.QName("vamsas", "MuscleWS"));
\r
145 return ports.iterator();
\r
149 * Set the endpoint address for the specified port name.
151 public void setEndpointAddress(java.lang.String portName,
\r
152 java.lang.String address) throws javax.xml.rpc.ServiceException {
\r
153 if ("MuscleWS".equals(portName)) {
\r
154 setMuscleWSEndpointAddress(address);
\r
155 } else { // Unknown Port Name
\r
156 throw new javax.xml.rpc.ServiceException(
\r
157 " Cannot set Endpoint Address for Unknown Port" + portName);
\r
162 * Set the endpoint address for the specified port name.
164 public void setEndpointAddress(javax.xml.namespace.QName portName,
\r
165 java.lang.String address) throws javax.xml.rpc.ServiceException {
\r
166 setEndpointAddress(portName.getLocalPart(), address);
\r