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.
10 public class MuscleWSServiceLocator extends org.apache.axis.client.Service implements ext.vamsas.MuscleWSService {
12 public MuscleWSServiceLocator() {
16 public MuscleWSServiceLocator(org.apache.axis.EngineConfiguration config) {
20 // Use to get a proxy class for MuscleWS
21 private java.lang.String MuscleWS_address = "http://anaplog.compbio.dundee.ac.uk:8080/axis/services/MuscleWS";
23 public java.lang.String getMuscleWSAddress() {
24 return MuscleWS_address;
27 // The WSDD service name defaults to the port name.
28 private java.lang.String MuscleWSWSDDServiceName = "MuscleWS";
30 public java.lang.String getMuscleWSWSDDServiceName() {
31 return MuscleWSWSDDServiceName;
34 public void setMuscleWSWSDDServiceName(java.lang.String name) {
35 MuscleWSWSDDServiceName = name;
38 public ext.vamsas.MuscleWS getMuscleWS() throws javax.xml.rpc.ServiceException {
39 java.net.URL endpoint;
41 endpoint = new java.net.URL(MuscleWS_address);
43 catch (java.net.MalformedURLException e) {
44 throw new javax.xml.rpc.ServiceException(e);
46 return getMuscleWS(endpoint);
49 public ext.vamsas.MuscleWS getMuscleWS(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
51 ext.vamsas.MuscleWSSoapBindingStub _stub = new ext.vamsas.MuscleWSSoapBindingStub(portAddress, this);
52 _stub.setPortName(getMuscleWSWSDDServiceName());
55 catch (org.apache.axis.AxisFault e) {
60 public void setMuscleWSEndpointAddress(java.lang.String address) {
61 MuscleWS_address = address;
65 * For the given interface, get the stub implementation.
66 * If this service has no port for the given interface,
67 * then ServiceException is thrown.
69 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
71 if (ext.vamsas.MuscleWS.class.isAssignableFrom(serviceEndpointInterface)) {
72 ext.vamsas.MuscleWSSoapBindingStub _stub = new ext.vamsas.MuscleWSSoapBindingStub(new java.net.URL(MuscleWS_address), this);
73 _stub.setPortName(getMuscleWSWSDDServiceName());
77 catch (java.lang.Throwable t) {
78 throw new javax.xml.rpc.ServiceException(t);
80 throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
84 * For the given interface, get the stub implementation.
85 * If this service has no port for the given interface,
86 * then ServiceException is thrown.
88 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
89 if (portName == null) {
90 return getPort(serviceEndpointInterface);
92 java.lang.String inputPortName = portName.getLocalPart();
93 if ("MuscleWS".equals(inputPortName)) {
97 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
98 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
103 public javax.xml.namespace.QName getServiceName() {
104 return new javax.xml.namespace.QName("vamsas", "MuscleWSService");
107 private java.util.HashSet ports = null;
109 public java.util.Iterator getPorts() {
111 ports = new java.util.HashSet();
112 ports.add(new javax.xml.namespace.QName("vamsas", "MuscleWS"));
114 return ports.iterator();
118 * Set the endpoint address for the specified port name.
120 public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
121 if ("MuscleWS".equals(portName)) {
122 setMuscleWSEndpointAddress(address);
124 else { // Unknown Port Name
125 throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
130 * Set the endpoint address for the specified port name.
132 public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
133 setEndpointAddress(portName.getLocalPart(), address);