1 7 8 package tableappclient.business.axis; 9 10 public class WelcomePresentationServiceLocator 11 extends org.apache.axis.client.Service 12 implements tableappclient.business.axis.WelcomePresentationService { 13 14 public WelcomePresentationServiceLocator() { 15 } 16 17 public WelcomePresentationServiceLocator(org.apache.axis.EngineConfiguration 18 config) { 19 super(config); 20 } 21 22 private java.lang.String tableApp_address = 24 "http://localhost:8080/tableApp/tableApp"; 25 26 public java.lang.String gettableAppAddress() { 27 return tableApp_address; 28 } 29 30 private java.lang.String tableAppWSDDServiceName = "tableApp"; 32 33 public java.lang.String gettableAppWSDDServiceName() { 34 return tableAppWSDDServiceName; 35 } 36 37 public void settableAppWSDDServiceName(java.lang.String name) { 38 tableAppWSDDServiceName = name; 39 } 40 41 public tableappclient.business.axis.WelcomePresentation gettableApp() throws 42 javax.xml.rpc.ServiceException { 43 java.net.URL endpoint; 44 try { 45 endpoint = new java.net.URL (tableApp_address); 46 } 47 catch (java.net.MalformedURLException e) { 48 throw new javax.xml.rpc.ServiceException (e); 49 } 50 return gettableApp(endpoint); 51 } 52 53 public tableappclient.business.axis.WelcomePresentation gettableApp(java.net. 54 URL portAddress) throws javax.xml.rpc.ServiceException { 55 try { 56 tableappclient.business.axis.TableAppSoapBindingStub _stub = new 57 tableappclient.business.axis.TableAppSoapBindingStub(portAddress, this); 58 _stub.setPortName(gettableAppWSDDServiceName()); 59 return _stub; 60 } 61 catch (org.apache.axis.AxisFault e) { 62 return null; 63 } 64 } 65 66 public void settableAppEndpointAddress(java.lang.String address) { 67 tableApp_address = address; 68 } 69 70 75 public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax. 76 xml.rpc.ServiceException { 77 try { 78 if (tableappclient.business.axis.WelcomePresentation.class. 79 isAssignableFrom(serviceEndpointInterface)) { 80 tableappclient.business.axis.TableAppSoapBindingStub _stub = new 81 tableappclient.business.axis.TableAppSoapBindingStub(new java.net. 82 URL(tableApp_address), this); 83 _stub.setPortName(gettableAppWSDDServiceName()); 84 return _stub; 85 } 86 } 87 catch (java.lang.Throwable t) { 88 throw new javax.xml.rpc.ServiceException (t); 89 } 90 throw new javax.xml.rpc.ServiceException ( 91 "There is no stub implementation for the interface: " + 92 (serviceEndpointInterface == null ? "null" : 93 serviceEndpointInterface.getName())); 94 } 95 96 101 public java.rmi.Remote getPort(javax.xml.namespace.QName portName, 102 Class serviceEndpointInterface) throws javax. 103 xml.rpc.ServiceException { 104 if (portName == null) { 105 return getPort(serviceEndpointInterface); 106 } 107 java.lang.String inputPortName = portName.getLocalPart(); 108 if ("tableApp".equals(inputPortName)) { 109 return gettableApp(); 110 } 111 else { 112 java.rmi.Remote _stub = getPort(serviceEndpointInterface); 113 ( (org.apache.axis.client.Stub) _stub).setPortName(portName); 114 return _stub; 115 } 116 } 117 118 public javax.xml.namespace.QName getServiceName() { 119 return new javax.xml.namespace.QName ("urn:tableApp", 120 "WelcomePresentationService"); 121 } 122 123 private java.util.HashSet ports = null; 124 125 public java.util.Iterator getPorts() { 126 if (ports == null) { 127 ports = new java.util.HashSet (); 128 ports.add(new javax.xml.namespace.QName ("urn:tableApp", "tableApp")); 129 } 130 return ports.iterator(); 131 } 132 133 136 public void setEndpointAddress(java.lang.String portName, 137 java.lang.String address) throws javax.xml.rpc. 138 ServiceException { 139 if ("tableApp".equals(portName)) { 140 settableAppEndpointAddress(address); 141 } 142 else { throw new javax.xml.rpc.ServiceException ( 144 " Cannot set Endpoint Address for Unknown Port" + portName); 145 } 146 } 147 148 151 public void setEndpointAddress(javax.xml.namespace.QName portName, 152 java.lang.String address) throws javax.xml.rpc. 153 ServiceException { 154 setEndpointAddress(portName.getLocalPart(), address); 155 } 156 157 } 158 | Popular Tags |