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