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