2 * JpredServiceLocator.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 JpredServiceLocator
11 extends org.apache.axis.client.Service implements ext.vamsas.JpredService
14 public JpredServiceLocator()
18 public JpredServiceLocator(org.apache.axis.EngineConfiguration config)
23 // Use to get a proxy class for jpred
24 private java.lang.String jpred_address =
25 "http://www.compbio.dundee.ac.uk/JalviewWS/services/jpred";
27 public java.lang.String getjpredAddress()
32 // The WSDD service name defaults to the port name.
33 private java.lang.String jpredWSDDServiceName = "jpred";
35 public java.lang.String getjpredWSDDServiceName()
37 return jpredWSDDServiceName;
40 public void setjpredWSDDServiceName(java.lang.String name)
42 jpredWSDDServiceName = name;
45 public ext.vamsas.Jpred getjpred()
46 throws javax.xml.rpc.ServiceException
48 java.net.URL endpoint;
51 endpoint = new java.net.URL(jpred_address);
53 catch (java.net.MalformedURLException e)
55 throw new javax.xml.rpc.ServiceException(e);
57 return getjpred(endpoint);
60 public ext.vamsas.Jpred getjpred(java.net.URL portAddress)
61 throws javax.xml.rpc.ServiceException
65 ext.vamsas.JpredSoapBindingStub _stub = new ext.vamsas.
66 JpredSoapBindingStub(portAddress, this);
67 _stub.setPortName(getjpredWSDDServiceName());
70 catch (org.apache.axis.AxisFault e)
76 public void setjpredEndpointAddress(java.lang.String address)
78 jpred_address = address;
82 * For the given interface, get the stub implementation.
83 * If this service has no port for the given interface,
84 * then ServiceException is thrown.
86 public java.rmi.Remote getPort(Class serviceEndpointInterface)
87 throws javax.xml.rpc.ServiceException
91 if (ext.vamsas.Jpred.class.isAssignableFrom(serviceEndpointInterface))
93 ext.vamsas.JpredSoapBindingStub _stub = new ext.vamsas.
94 JpredSoapBindingStub(new java.net.URL(jpred_address), this);
95 _stub.setPortName(getjpredWSDDServiceName());
99 catch (java.lang.Throwable t)
101 throw new javax.xml.rpc.ServiceException(t);
103 throw new javax.xml.rpc.ServiceException(
104 "There is no stub implementation for the interface: " +
105 (serviceEndpointInterface == null ? "null" :
106 serviceEndpointInterface.getName()));
110 * For the given interface, get the stub implementation.
111 * If this service has no port for the given interface,
112 * then ServiceException is thrown.
114 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
115 Class serviceEndpointInterface)
116 throws javax.xml.rpc.ServiceException
118 if (portName == null)
120 return getPort(serviceEndpointInterface);
122 java.lang.String inputPortName = portName.getLocalPart();
123 if ("jpred".equals(inputPortName))
129 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
130 ( (org.apache.axis.client.Stub) _stub).setPortName(portName);
135 public javax.xml.namespace.QName getServiceName()
137 return new javax.xml.namespace.QName("vamsas", "jpredService");
140 private java.util.HashSet ports = null;
142 public java.util.Iterator getPorts()
146 ports = new java.util.HashSet();
147 ports.add(new javax.xml.namespace.QName("vamsas", "jpred"));
149 return ports.iterator();
153 * Set the endpoint address for the specified port name.
155 public void setEndpointAddress(java.lang.String portName,
156 java.lang.String address)
157 throws javax.xml.rpc.ServiceException
159 if ("jpred".equals(portName))
161 setjpredEndpointAddress(address);
164 { // Unknown Port Name
165 throw new javax.xml.rpc.ServiceException(
166 " Cannot set Endpoint Address for Unknown Port" + portName);
171 * Set the endpoint address for the specified port name.
173 public void setEndpointAddress(javax.xml.namespace.QName portName,
174 java.lang.String address)
175 throws javax.xml.rpc.ServiceException
177 setEndpointAddress(portName.getLocalPart(), address);