2 * JPredWSServiceLocator.java
4 * This file was auto-generated from WSDL
5 * by the Apache Axis WSDL2Java emitter.
10 public class JPredWSServiceLocator extends org.apache.axis.client.Service implements ext.vamsas.JPredWSService {
12 // Use to get a proxy class for jpred
13 private final java.lang.String jpred_address = "http://anaplog.compbio.dundee.ac.uk:8080/axis/services/jpred";
15 public java.lang.String getjpredAddress() {
19 // The WSDD service name defaults to the port name.
20 private java.lang.String jpredWSDDServiceName = "jpred";
22 public java.lang.String getjpredWSDDServiceName() {
23 return jpredWSDDServiceName;
26 public void setjpredWSDDServiceName(java.lang.String name) {
27 jpredWSDDServiceName = name;
30 public ext.vamsas.JPredWS getjpred() throws javax.xml.rpc.ServiceException {
31 java.net.URL endpoint;
33 endpoint = new java.net.URL(jpred_address);
35 catch (java.net.MalformedURLException e) {
36 throw new javax.xml.rpc.ServiceException(e);
38 return getjpred(endpoint);
41 public ext.vamsas.JPredWS getjpred(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
43 ext.vamsas.JpredSoapBindingStub _stub = new ext.vamsas.JpredSoapBindingStub(portAddress, this);
44 _stub.setPortName(getjpredWSDDServiceName());
47 catch (org.apache.axis.AxisFault e) {
53 * For the given interface, get the stub implementation.
54 * If this service has no port for the given interface,
55 * then ServiceException is thrown.
57 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
59 if (ext.vamsas.JPredWS.class.isAssignableFrom(serviceEndpointInterface)) {
60 ext.vamsas.JpredSoapBindingStub _stub = new ext.vamsas.JpredSoapBindingStub(new java.net.URL(jpred_address), this);
61 _stub.setPortName(getjpredWSDDServiceName());
65 catch (java.lang.Throwable t) {
66 throw new javax.xml.rpc.ServiceException(t);
68 throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
72 * For the given interface, get the stub implementation.
73 * If this service has no port for the given interface,
74 * then ServiceException is thrown.
76 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
77 if (portName == null) {
78 return getPort(serviceEndpointInterface);
80 String inputPortName = portName.getLocalPart();
81 if ("jpred".equals(inputPortName)) {
85 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
86 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
91 public javax.xml.namespace.QName getServiceName() {
92 return new javax.xml.namespace.QName("vamsas", "JPredWSService");
95 private java.util.HashSet ports = null;
97 public java.util.Iterator getPorts() {
99 ports = new java.util.HashSet();
100 ports.add(new javax.xml.namespace.QName("jpred"));
102 return ports.iterator();