2 * IRegistryServiceLocator.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 IRegistryServiceLocator
11 extends org.apache.axis.client.Service implements ext.vamsas.
15 public IRegistryServiceLocator()
19 public IRegistryServiceLocator(org.apache.axis.EngineConfiguration config)
24 // Use to get a proxy class for RegistryService
25 private java.lang.String RegistryService_address = "http://webservices.compbio.dundee.ac.uk:8080/jalTestWS/services/RegistryService";
27 public java.lang.String getRegistryServiceAddress()
29 return RegistryService_address;
32 // The WSDD service name defaults to the port name.
33 private java.lang.String RegistryServiceWSDDServiceName = "RegistryService";
35 public java.lang.String getRegistryServiceWSDDServiceName()
37 return RegistryServiceWSDDServiceName;
40 public void setRegistryServiceWSDDServiceName(java.lang.String name)
42 RegistryServiceWSDDServiceName = name;
45 public ext.vamsas.IRegistry getRegistryService()
46 throws javax.xml.rpc.ServiceException
48 java.net.URL endpoint;
51 endpoint = new java.net.URL(RegistryService_address);
53 catch (java.net.MalformedURLException e)
55 throw new javax.xml.rpc.ServiceException(e);
57 return getRegistryService(endpoint);
60 public ext.vamsas.IRegistry getRegistryService(java.net.URL portAddress)
61 throws javax.xml.rpc.ServiceException
65 ext.vamsas.RegistryServiceSoapBindingStub _stub = new ext.vamsas.
66 RegistryServiceSoapBindingStub(portAddress, this);
67 _stub.setPortName(getRegistryServiceWSDDServiceName());
70 catch (org.apache.axis.AxisFault e)
76 public void setRegistryServiceEndpointAddress(java.lang.String address)
78 RegistryService_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.IRegistry.class.isAssignableFrom(serviceEndpointInterface))
93 ext.vamsas.RegistryServiceSoapBindingStub _stub = new ext.vamsas.
94 RegistryServiceSoapBindingStub(new java.net.URL(
95 RegistryService_address), this);
96 _stub.setPortName(getRegistryServiceWSDDServiceName());
100 catch (java.lang.Throwable t)
102 throw new javax.xml.rpc.ServiceException(t);
104 throw new javax.xml.rpc.ServiceException(
105 "There is no stub implementation for the interface: " +
106 (serviceEndpointInterface == null ? "null" :
107 serviceEndpointInterface.getName()));
111 * For the given interface, get the stub implementation.
112 * If this service has no port for the given interface,
113 * then ServiceException is thrown.
115 public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
116 Class serviceEndpointInterface)
117 throws javax.xml.rpc.ServiceException
119 if (portName == null)
121 return getPort(serviceEndpointInterface);
123 java.lang.String inputPortName = portName.getLocalPart();
124 if ("RegistryService".equals(inputPortName))
126 return getRegistryService();
130 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
131 ( (org.apache.axis.client.Stub) _stub).setPortName(portName);
136 public javax.xml.namespace.QName getServiceName()
138 return new javax.xml.namespace.QName("vamsas", "IRegistryService");
141 private java.util.HashSet ports = null;
143 public java.util.Iterator getPorts()
147 ports = new java.util.HashSet();
148 ports.add(new javax.xml.namespace.QName("vamsas", "RegistryService"));
150 return ports.iterator();
154 * Set the endpoint address for the specified port name.
156 public void setEndpointAddress(java.lang.String portName,
157 java.lang.String address)
158 throws javax.xml.rpc.ServiceException
160 if ("RegistryService".equals(portName))
162 setRegistryServiceEndpointAddress(address);
165 { // Unknown Port Name
166 throw new javax.xml.rpc.ServiceException(
167 " Cannot set Endpoint Address for Unknown Port" + portName);
172 * Set the endpoint address for the specified port name.
174 public void setEndpointAddress(javax.xml.namespace.QName portName,
175 java.lang.String address)
176 throws javax.xml.rpc.ServiceException
178 setEndpointAddress(portName.getLocalPart(), address);