001: /**
002: * ISQLExecutionTestResultServiceLocator.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.ISQLExecutionTestResult;
009:
010: public class ISQLExecutionTestResultServiceLocator extends
011: org.apache.axis.client.Service implements
012: ISQLExecutionTestResultService {
013:
014: public ISQLExecutionTestResultServiceLocator() {
015: }
016:
017: public ISQLExecutionTestResultServiceLocator(
018: org.apache.axis.EngineConfiguration config) {
019: super (config);
020: }
021:
022: public ISQLExecutionTestResultServiceLocator(
023: java.lang.String wsdlLoc, 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 SQLExecutionTestResult
029: private java.lang.String SQLExecutionTestResult_address = SOAPConstants
030: .getUrlWebService()
031: + "SQLExecutionTestResult";
032:
033: public java.lang.String getSQLExecutionTestResultAddress() {
034: return SQLExecutionTestResult_address;
035: }
036:
037: // The WSDD service name defaults to the port name.
038: private java.lang.String SQLExecutionTestResultWSDDServiceName = "SQLExecutionTestResult";
039:
040: public java.lang.String getSQLExecutionTestResultWSDDServiceName() {
041: return SQLExecutionTestResultWSDDServiceName;
042: }
043:
044: public void setSQLExecutionTestResultWSDDServiceName(
045: java.lang.String name) {
046: SQLExecutionTestResultWSDDServiceName = name;
047: }
048:
049: public ISQLExecutionTestResult getSQLExecutionTestResult()
050: throws javax.xml.rpc.ServiceException {
051: java.net.URL endpoint;
052: try {
053: endpoint = new java.net.URL(SQLExecutionTestResult_address);
054: } catch (java.net.MalformedURLException e) {
055: throw new javax.xml.rpc.ServiceException(e);
056: }
057: return getSQLExecutionTestResult(endpoint);
058: }
059:
060: public ISQLExecutionTestResult getSQLExecutionTestResult(
061: java.net.URL portAddress)
062: throws javax.xml.rpc.ServiceException {
063: try {
064: SQLExecutionTestResultSoapBindingStub _stub = new SQLExecutionTestResultSoapBindingStub(
065: portAddress, this );
066: _stub
067: .setPortName(getSQLExecutionTestResultWSDDServiceName());
068: return _stub;
069: } catch (org.apache.axis.AxisFault e) {
070: return null;
071: }
072: }
073:
074: public void setSQLExecutionTestResultEndpointAddress(
075: java.lang.String address) {
076: SQLExecutionTestResult_address = address;
077: }
078:
079: /**
080: * For the given interface, get the stub implementation.
081: * If this service has no port for the given interface,
082: * then ServiceException is thrown.
083: */
084: public java.rmi.Remote getPort(Class serviceEndpointInterface)
085: throws javax.xml.rpc.ServiceException {
086: try {
087: if (ISQLExecutionTestResult.class
088: .isAssignableFrom(serviceEndpointInterface)) {
089: SQLExecutionTestResultSoapBindingStub _stub = new SQLExecutionTestResultSoapBindingStub(
090: new java.net.URL(SQLExecutionTestResult_address),
091: this );
092: _stub
093: .setPortName(getSQLExecutionTestResultWSDDServiceName());
094: return _stub;
095: }
096: } catch (java.lang.Throwable t) {
097: throw new javax.xml.rpc.ServiceException(t);
098: }
099: throw new javax.xml.rpc.ServiceException(
100: "There is no stub implementation for the interface: "
101: + (serviceEndpointInterface == null ? "null"
102: : serviceEndpointInterface.getName()));
103: }
104:
105: /**
106: * For the given interface, get the stub implementation.
107: * If this service has no port for the given interface,
108: * then ServiceException is thrown.
109: */
110: public java.rmi.Remote getPort(javax.xml.namespace.QName portName,
111: Class serviceEndpointInterface)
112: throws javax.xml.rpc.ServiceException {
113: if (portName == null) {
114: return getPort(serviceEndpointInterface);
115: }
116: java.lang.String inputPortName = portName.getLocalPart();
117: if ("SQLExecutionTestResult".equals(inputPortName)) {
118: return getSQLExecutionTestResult();
119: } else {
120: java.rmi.Remote _stub = getPort(serviceEndpointInterface);
121: ((org.apache.axis.client.Stub) _stub).setPortName(portName);
122: return _stub;
123: }
124: }
125:
126: public javax.xml.namespace.QName getServiceName() {
127: return new javax.xml.namespace.QName(
128: "http://soap.salome_tmf.objectweb.org",
129: "ISQLExecutionTestResultService");
130: }
131:
132: private java.util.HashSet ports = null;
133:
134: public java.util.Iterator getPorts() {
135: if (ports == null) {
136: ports = new java.util.HashSet();
137: ports.add(new javax.xml.namespace.QName(
138: "http://soap.salome_tmf.objectweb.org",
139: "SQLExecutionTestResult"));
140: }
141: return ports.iterator();
142: }
143:
144: /**
145: * Set the endpoint address for the specified port name.
146: */
147: public void setEndpointAddress(java.lang.String portName,
148: java.lang.String address)
149: throws javax.xml.rpc.ServiceException {
150:
151: if ("SQLExecutionTestResult".equals(portName)) {
152: setSQLExecutionTestResultEndpointAddress(address);
153: } else { // Unknown Port Name
154: throw new javax.xml.rpc.ServiceException(
155: " Cannot set Endpoint Address for Unknown Port"
156: + portName);
157: }
158: }
159:
160: /**
161: * Set the endpoint address for the specified port name.
162: */
163: public void setEndpointAddress(javax.xml.namespace.QName portName,
164: java.lang.String address)
165: throws javax.xml.rpc.ServiceException {
166: setEndpointAddress(portName.getLocalPart(), address);
167: }
168:
169: }
|