2 * ScanPSServiceServiceLocator.java
\r
4 * This file was auto-generated from WSDL
\r
5 * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
\r
10 public class SeqSearchServiceLocator extends org.apache.axis.client.Service implements ext.vamsas.SeqSearchServiceService {
\r
12 public SeqSearchServiceLocator() {
\r
16 public SeqSearchServiceLocator(org.apache.axis.EngineConfiguration config) {
\r
20 // Use to get a proxy class for ScanPSService
\r
21 private java.lang.String ScanPSService_address = "http://localhost:8080/TestJWS/services/ScanPSService";
\r
23 public java.lang.String getSeqSeachServiceAddress() {
\r
24 return ScanPSService_address;
\r
27 // The WSDD service name defaults to the port name.
\r
28 private java.lang.String ScanPSServiceWSDDServiceName = "ScanPSService";
\r
30 public java.lang.String getScanPSServiceWSDDServiceName() {
\r
31 return ScanPSServiceWSDDServiceName;
\r
34 public void setScanPSServiceWSDDServiceName(java.lang.String name) {
\r
35 ScanPSServiceWSDDServiceName = name;
\r
38 public ext.vamsas.SeqSearchI getSeqSearchService() throws javax.xml.rpc.ServiceException {
\r
39 java.net.URL endpoint;
\r
41 endpoint = new java.net.URL(ScanPSService_address);
\r
43 catch (java.net.MalformedURLException e) {
\r
44 throw new javax.xml.rpc.ServiceException(e);
\r
46 return getSeqSearchService(endpoint);
\r
49 public ext.vamsas.SeqSearchI getSeqSearchService(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
\r
51 ext.vamsas.SeqSearchServiceSoapBindingStub _stub = new ext.vamsas.SeqSearchServiceSoapBindingStub(portAddress, this);
\r
52 _stub.setPortName(getScanPSServiceWSDDServiceName());
\r
55 catch (org.apache.axis.AxisFault e) {
\r
60 public void setScanPSServiceEndpointAddress(java.lang.String address) {
\r
61 ScanPSService_address = address;
\r
65 * For the given interface, get the stub implementation.
\r
66 * If this service has no port for the given interface,
\r
67 * then ServiceException is thrown.
\r
69 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
\r
71 if (ext.vamsas.SeqSearchI.class.isAssignableFrom(serviceEndpointInterface)) {
\r
72 ext.vamsas.SeqSearchServiceSoapBindingStub _stub = new ext.vamsas.SeqSearchServiceSoapBindingStub(new java.net.URL(ScanPSService_address), this);
\r
73 _stub.setPortName(getScanPSServiceWSDDServiceName());
\r
77 catch (java.lang.Throwable t) {
\r
78 throw new javax.xml.rpc.ServiceException(t);
\r
80 throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
\r
84 * For the given interface, get the stub implementation.
\r
85 * If this service has no port for the given interface,
\r
86 * then ServiceException is thrown.
\r
88 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
\r
89 if (portName == null) {
\r
90 return getPort(serviceEndpointInterface);
\r
92 java.lang.String inputPortName = portName.getLocalPart();
\r
93 if ("ScanPSService".equals(inputPortName)) {
\r
94 return getSeqSearchService();
\r
97 java.rmi.Remote _stub = getPort(serviceEndpointInterface);
\r
98 ((org.apache.axis.client.Stub) _stub).setPortName(portName);
\r
103 public javax.xml.namespace.QName getServiceName() {
\r
104 return new javax.xml.namespace.QName("vamsas", "ScanPSServiceService");
\r
107 private java.util.HashSet ports = null;
\r
109 public java.util.Iterator getPorts() {
\r
110 if (ports == null) {
\r
111 ports = new java.util.HashSet();
\r
112 ports.add(new javax.xml.namespace.QName("vamsas", "ScanPSService"));
\r
114 return ports.iterator();
\r
118 * Set the endpoint address for the specified port name.
\r
120 public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
\r
121 if ("ScanPSService".equals(portName)) {
\r
122 setScanPSServiceEndpointAddress(address);
\r
124 else { // Unknown Port Name
\r
125 throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
\r
130 * Set the endpoint address for the specified port name.
\r
132 public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
\r
133 setEndpointAddress(portName.getLocalPart(), address);
\r