001: /**
002: * ISQLRequirementServiceLocator.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 salomeTMF_plug.requirements.soap;
007:
008: import org.objectweb.salome_tmf.soap.SOAPConstants;
009:
010: import salomeTMF_plug.requirements.sqlWrapper.ISQLRequirement;
011:
012: public class ISQLRequirementServiceLocator extends
013: org.apache.axis.client.Service implements
014: ISQLRequirementService {
015:
016: public ISQLRequirementServiceLocator() {
017: }
018:
019: public ISQLRequirementServiceLocator(
020: org.apache.axis.EngineConfiguration config) {
021: super (config);
022: }
023:
024: public ISQLRequirementServiceLocator(java.lang.String wsdlLoc,
025: javax.xml.namespace.QName sName)
026: throws javax.xml.rpc.ServiceException {
027: super (wsdlLoc, sName);
028: }
029:
030: // Use to get a proxy class for SQLRequirement
031: private java.lang.String SQLRequirement_address = SOAPConstants
032: .getUrlWebService()
033: + "SQLRequirement";
034:
035: public java.lang.String getSQLRequirementAddress() {
036: return SQLRequirement_address;
037: }
038:
039: // The WSDD service name defaults to the port name.
040: private java.lang.String SQLRequirementWSDDServiceName = "SQLRequirement";
041:
042: public java.lang.String getSQLRequirementWSDDServiceName() {
043: return SQLRequirementWSDDServiceName;
044: }
045:
046: public void setSQLRequirementWSDDServiceName(java.lang.String name) {
047: SQLRequirementWSDDServiceName = name;
048: }
049:
050: public ISQLRequirement getSQLRequirement()
051: throws javax.xml.rpc.ServiceException {
052: java.net.URL endpoint;
053: try {
054: endpoint = new java.net.URL(SQLRequirement_address);
055: } catch (java.net.MalformedURLException e) {
056: throw new javax.xml.rpc.ServiceException(e);
057: }
058: return getSQLRequirement(endpoint);
059: }
060:
061: public ISQLRequirement getSQLRequirement(java.net.URL portAddress)
062: throws javax.xml.rpc.ServiceException {
063: try {
064: SQLRequirementSoapBindingStub _stub = new SQLRequirementSoapBindingStub(
065: portAddress, this );
066: _stub.setPortName(getSQLRequirementWSDDServiceName());
067: return _stub;
068: } catch (org.apache.axis.AxisFault e) {
069: return null;
070: }
071: }
072:
073: public void setSQLRequirementEndpointAddress(
074: java.lang.String address) {
075: SQLRequirement_address = address;
076: }
077:
078: /**
079: * For the given interface, get the stub implementation.
080: * If this service has no port for the given interface,
081: * then ServiceException is thrown.
082: */
083: public java.rmi.Remote getPort(Class serviceEndpointInterface)
084: throws javax.xml.rpc.ServiceException {
085: try {
086: if (ISQLRequirement.class
087: .isAssignableFrom(serviceEndpointInterface)) {
088: SQLRequirementSoapBindingStub _stub = new SQLRequirementSoapBindingStub(
089: new java.net.URL(SQLRequirement_address), this );
090: _stub.setPortName(getSQLRequirementWSDDServiceName());
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 ("SQLRequirement".equals(inputPortName)) {
115: return getSQLRequirement();
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: "ISQLRequirementService");
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: "SQLRequirement"));
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 ("SQLRequirement".equals(portName)) {
149: setSQLRequirementEndpointAddress(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: }
|