/**
* SiteSearchServiceLocator.java
*
* This file was auto-generated from WSDL
* by the Apache Axis WSDL2Java emitter.
*/
package com.develop.ss.axis;
public class SiteSearchServiceLocator extends org.apache.axis.client.Service implements com.develop.ss.axis.SiteSearchService {
// Use to get a proxy class for SiteSearchSoap
private final java.lang.String SiteSearchSoap_address = "http://localhost:8080/axis/services/SiteSearchSoap";
public java.lang.String getSiteSearchSoapAddress() {
return SiteSearchSoap_address;
}
// The WSDD service name defaults to the port name.
private java.lang.String SiteSearchSoapWSDDServiceName = "SiteSearchSoap";
public java.lang.String getSiteSearchSoapWSDDServiceName() {
return SiteSearchSoapWSDDServiceName;
}
public void setSiteSearchSoapWSDDServiceName(java.lang.String name) {
SiteSearchSoapWSDDServiceName = name;
}
public com.develop.ss.axis.SiteSearch getSiteSearchSoap() throws javax.xml.rpc.ServiceException {
java.net.URL endpoint;
try {
endpoint = new java.net.URL(SiteSearchSoap_address);
}
catch (java.net.MalformedURLException e) {
throw new javax.xml.rpc.ServiceException(e);
}
return getSiteSearchSoap(endpoint);
}
public com.develop.ss.axis.SiteSearch getSiteSearchSoap(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
try {
com.develop.ss.axis.SiteSearchSoapHttpStub _stub = new com.develop.ss.axis.SiteSearchSoapHttpStub(portAddress, this);
_stub.setPortName(getSiteSearchSoapWSDDServiceName());
return _stub;
}
catch (org.apache.axis.AxisFault e) {
return null;
}
}
/**
* For the given interface, get the stub implementation.
* If this service has no port for the given interface,
* then ServiceException is thrown.
*/
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
try {
if (com.develop.ss.axis.SiteSearch.class.isAssignableFrom(serviceEndpointInterface)) {
com.develop.ss.axis.SiteSearchSoapHttpStub _stub = new com.develop.ss.axis.SiteSearchSoapHttpStub(new java.net.URL(SiteSearchSoap_address), this);
_stub.setPortName(getSiteSearchSoapWSDDServiceName());
return _stub;
}
}
catch (java.lang.Throwable t) {
throw new javax.xml.rpc.ServiceException(t);
}
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
}
/**
* For the given interface, get the stub implementation.
* If this service has no port for the given interface,
* then ServiceException is thrown.
*/
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
if (portName == null) {
return getPort(serviceEndpointInterface);
}
String inputPortName = portName.getLocalPart();
if ("SiteSearchSoap".equals(inputPortName)) {
return getSiteSearchSoap();
}
else {
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
((org.apache.axis.client.Stub) _stub).setPortName(portName);
return _stub;
}
}
public javax.xml.namespace.QName getServiceName() {
return new javax.xml.namespace.QName("http://www.halloway.net/SiteSearch", "SiteSearchService");
}
private java.util.HashSet ports = null;
public java.util.Iterator getPorts() {
if (ports == null) {
ports = new java.util.HashSet();
ports.add(new javax.xml.namespace.QName("SiteSearchSoap"));
}
return ports.iterator();
}
}
|