001: /**
002: * WelcomePresentationServiceLocator.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
006: */package tableappclient.business.axis;
007:
008: public class WelcomePresentationServiceLocator extends
009: org.apache.axis.client.Service implements
010: tableappclient.business.axis.WelcomePresentationService {
011:
012: public WelcomePresentationServiceLocator() {
013: }
014:
015: public WelcomePresentationServiceLocator(
016: org.apache.axis.EngineConfiguration config) {
017: super (config);
018: }
019:
020: // Use to get a proxy class for tableApp
021: private java.lang.String tableApp_address = "http://localhost:8080/tableApp/tableApp";
022:
023: public java.lang.String gettableAppAddress() {
024: return tableApp_address;
025: }
026:
027: // The WSDD service name defaults to the port name.
028: private java.lang.String tableAppWSDDServiceName = "tableApp";
029:
030: public java.lang.String gettableAppWSDDServiceName() {
031: return tableAppWSDDServiceName;
032: }
033:
034: public void settableAppWSDDServiceName(java.lang.String name) {
035: tableAppWSDDServiceName = name;
036: }
037:
038: public tableappclient.business.axis.WelcomePresentation gettableApp()
039: throws javax.xml.rpc.ServiceException {
040: java.net.URL endpoint;
041: try {
042: endpoint = new java.net.URL(tableApp_address);
043: } catch (java.net.MalformedURLException e) {
044: throw new javax.xml.rpc.ServiceException(e);
045: }
046: return gettableApp(endpoint);
047: }
048:
049: public tableappclient.business.axis.WelcomePresentation gettableApp(
050: java.net.URL portAddress)
051: throws javax.xml.rpc.ServiceException {
052: try {
053: tableappclient.business.axis.TableAppSoapBindingStub _stub = new tableappclient.business.axis.TableAppSoapBindingStub(
054: portAddress, this );
055: _stub.setPortName(gettableAppWSDDServiceName());
056: return _stub;
057: } catch (org.apache.axis.AxisFault e) {
058: return null;
059: }
060: }
061:
062: public void settableAppEndpointAddress(java.lang.String address) {
063: tableApp_address = address;
064: }
065:
066: /**
067: * For the given interface, get the stub implementation.
068: * If this service has no port for the given interface,
069: * then ServiceException is thrown.
070: */
071: public java.rmi.Remote getPort(Class serviceEndpointInterface)
072: throws javax.xml.rpc.ServiceException {
073: try {
074: if (tableappclient.business.axis.WelcomePresentation.class
075: .isAssignableFrom(serviceEndpointInterface)) {
076: tableappclient.business.axis.TableAppSoapBindingStub _stub = new tableappclient.business.axis.TableAppSoapBindingStub(
077: new java.net.URL(tableApp_address), this );
078: _stub.setPortName(gettableAppWSDDServiceName());
079: return _stub;
080: }
081: } catch (java.lang.Throwable t) {
082: throw new javax.xml.rpc.ServiceException(t);
083: }
084: throw new javax.xml.rpc.ServiceException(
085: "There is no stub implementation for the interface: "
086: + (serviceEndpointInterface == null ? "null"
087: : serviceEndpointInterface.getName()));
088: }
089:
090: /**
091: * For the given interface, get the stub implementation.
092: * If this service has no port for the given interface,
093: * then ServiceException is thrown.
094: */
095: public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
096: Class serviceEndpointInterface)
097: throws javax.xml.rpc.ServiceException {
098: if (portName == null) {
099: return getPort(serviceEndpointInterface);
100: }
101: java.lang.String inputPortName = portName.getLocalPart();
102: if ("tableApp".equals(inputPortName)) {
103: return gettableApp();
104: } else {
105: java.rmi.Remote _stub = getPort(serviceEndpointInterface);
106: ((org.apache.axis.client.Stub) _stub).setPortName(portName);
107: return _stub;
108: }
109: }
110:
111: public javax.xml.namespace.QName getServiceName() {
112: return new javax.xml.namespace.QName("urn:tableApp",
113: "WelcomePresentationService");
114: }
115:
116: private java.util.HashSet ports = null;
117:
118: public java.util.Iterator getPorts() {
119: if (ports == null) {
120: ports = new java.util.HashSet();
121: ports.add(new javax.xml.namespace.QName("urn:tableApp",
122: "tableApp"));
123: }
124: return ports.iterator();
125: }
126:
127: /**
128: * Set the endpoint address for the specified port name.
129: */
130: public void setEndpointAddress(java.lang.String portName,
131: java.lang.String address)
132: throws javax.xml.rpc.ServiceException {
133: if ("tableApp".equals(portName)) {
134: settableAppEndpointAddress(address);
135: } else { // Unknown Port Name
136: throw new javax.xml.rpc.ServiceException(
137: " Cannot set Endpoint Address for Unknown Port"
138: + portName);
139: }
140: }
141:
142: /**
143: * Set the endpoint address for the specified port name.
144: */
145: public void setEndpointAddress(javax.xml.namespace.QName portName,
146: java.lang.String address)
147: throws javax.xml.rpc.ServiceException {
148: setEndpointAddress(portName.getLocalPart(), address);
149: }
150:
151: }
|