1 |
4970
|
daigle
|
/**
|
2 |
|
|
* KeplerWebServiceLocator.java
|
3 |
|
|
*
|
4 |
|
|
* This file was auto-generated from WSDL
|
5 |
|
|
* by the Apache Axis 1.3 Oct 05, 2005 (05:23:37 EDT) WSDL2Java emitter.
|
6 |
|
|
*/
|
7 |
|
|
|
8 |
|
|
package org.kepler.executionWS;
|
9 |
|
|
|
10 |
5030
|
daigle
|
import edu.ucsb.nceas.metacat.properties.PropertyService;
|
11 |
4970
|
daigle
|
import edu.ucsb.nceas.utilities.PropertyNotFoundException;
|
12 |
|
|
|
13 |
|
|
public class KeplerWebServiceLocator extends org.apache.axis.client.Service implements org.kepler.executionWS.KeplerWebService {
|
14 |
|
|
|
15 |
|
|
private static final long serialVersionUID = -6004917965491182326L;
|
16 |
|
|
|
17 |
|
|
private static String endpointAddress = null;
|
18 |
|
|
// Use to get a proxy class for KeplerWebServiceHttpSoap12Endpoint
|
19 |
|
|
private String KeplerWebServiceHttpSoap12Endpoint_address = null;
|
20 |
|
|
|
21 |
|
|
// Use to get a proxy class for KeplerWebServiceHttpSoap11Endpoint
|
22 |
|
|
private java.lang.String KeplerWebServiceHttpSoap11Endpoint_address = null;
|
23 |
|
|
|
24 |
|
|
public KeplerWebServiceLocator() throws javax.xml.rpc.ServiceException {
|
25 |
|
|
try {
|
26 |
|
|
endpointAddress = PropertyService.getProperty("executionEngine.endPointAddress");
|
27 |
|
|
KeplerWebServiceHttpSoap12Endpoint_address = endpointAddress;
|
28 |
|
|
KeplerWebServiceHttpSoap11Endpoint_address = endpointAddress;
|
29 |
|
|
} catch (PropertyNotFoundException pnfe) {
|
30 |
|
|
throw new javax.xml.rpc.ServiceException("KeplerWebServiceLocator() - Property Error while trying to intialize locator.");
|
31 |
|
|
}
|
32 |
|
|
}
|
33 |
|
|
|
34 |
|
|
|
35 |
|
|
public KeplerWebServiceLocator(org.apache.axis.EngineConfiguration config) {
|
36 |
|
|
super(config);
|
37 |
|
|
}
|
38 |
|
|
|
39 |
|
|
public KeplerWebServiceLocator(java.lang.String wsdlLoc, javax.xml.namespace.QName sName) throws javax.xml.rpc.ServiceException {
|
40 |
|
|
super(wsdlLoc, sName);
|
41 |
|
|
}
|
42 |
|
|
|
43 |
|
|
public java.lang.String getKeplerWebServiceHttpSoap12EndpointAddress() {
|
44 |
|
|
return KeplerWebServiceHttpSoap12Endpoint_address;
|
45 |
|
|
}
|
46 |
|
|
|
47 |
|
|
// The WSDD service name defaults to the port name.
|
48 |
|
|
private java.lang.String KeplerWebServiceHttpSoap12EndpointWSDDServiceName = "KeplerWebServiceHttpSoap12Endpoint";
|
49 |
|
|
|
50 |
|
|
public java.lang.String getKeplerWebServiceHttpSoap12EndpointWSDDServiceName() {
|
51 |
|
|
return KeplerWebServiceHttpSoap12EndpointWSDDServiceName;
|
52 |
|
|
}
|
53 |
|
|
|
54 |
|
|
public void setKeplerWebServiceHttpSoap12EndpointWSDDServiceName(java.lang.String name) {
|
55 |
|
|
KeplerWebServiceHttpSoap12EndpointWSDDServiceName = name;
|
56 |
|
|
}
|
57 |
|
|
|
58 |
|
|
public org.kepler.executionWS.KeplerWebServicePortType getKeplerWebServiceHttpSoap12Endpoint() throws javax.xml.rpc.ServiceException {
|
59 |
|
|
java.net.URL endpoint;
|
60 |
|
|
try {
|
61 |
|
|
endpoint = new java.net.URL(KeplerWebServiceHttpSoap12Endpoint_address);
|
62 |
|
|
}
|
63 |
|
|
catch (java.net.MalformedURLException e) {
|
64 |
|
|
throw new javax.xml.rpc.ServiceException(e);
|
65 |
|
|
}
|
66 |
|
|
return getKeplerWebServiceHttpSoap12Endpoint(endpoint);
|
67 |
|
|
}
|
68 |
|
|
|
69 |
|
|
public org.kepler.executionWS.KeplerWebServicePortType getKeplerWebServiceHttpSoap12Endpoint(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
70 |
|
|
try {
|
71 |
|
|
org.kepler.executionWS.KeplerWebServiceSoap12BindingStub _stub = new org.kepler.executionWS.KeplerWebServiceSoap12BindingStub(portAddress, this);
|
72 |
|
|
_stub.setPortName(getKeplerWebServiceHttpSoap12EndpointWSDDServiceName());
|
73 |
|
|
return _stub;
|
74 |
|
|
}
|
75 |
|
|
catch (org.apache.axis.AxisFault e) {
|
76 |
|
|
return null;
|
77 |
|
|
}
|
78 |
|
|
}
|
79 |
|
|
|
80 |
|
|
public void setKeplerWebServiceHttpSoap12EndpointEndpointAddress(java.lang.String address) {
|
81 |
|
|
KeplerWebServiceHttpSoap12Endpoint_address = address;
|
82 |
|
|
}
|
83 |
|
|
|
84 |
|
|
public java.lang.String getKeplerWebServiceHttpSoap11EndpointAddress() {
|
85 |
|
|
return KeplerWebServiceHttpSoap11Endpoint_address;
|
86 |
|
|
}
|
87 |
|
|
|
88 |
|
|
// The WSDD service name defaults to the port name.
|
89 |
|
|
private java.lang.String KeplerWebServiceHttpSoap11EndpointWSDDServiceName = "KeplerWebServiceHttpSoap11Endpoint";
|
90 |
|
|
|
91 |
|
|
public java.lang.String getKeplerWebServiceHttpSoap11EndpointWSDDServiceName() {
|
92 |
|
|
return KeplerWebServiceHttpSoap11EndpointWSDDServiceName;
|
93 |
|
|
}
|
94 |
|
|
|
95 |
|
|
public void setKeplerWebServiceHttpSoap11EndpointWSDDServiceName(java.lang.String name) {
|
96 |
|
|
KeplerWebServiceHttpSoap11EndpointWSDDServiceName = name;
|
97 |
|
|
}
|
98 |
|
|
|
99 |
|
|
public org.kepler.executionWS.KeplerWebServicePortType getKeplerWebServiceHttpSoap11Endpoint() throws javax.xml.rpc.ServiceException {
|
100 |
|
|
java.net.URL endpoint;
|
101 |
|
|
try {
|
102 |
|
|
endpoint = new java.net.URL(KeplerWebServiceHttpSoap11Endpoint_address);
|
103 |
|
|
}
|
104 |
|
|
catch (java.net.MalformedURLException e) {
|
105 |
|
|
throw new javax.xml.rpc.ServiceException(e);
|
106 |
|
|
}
|
107 |
|
|
return getKeplerWebServiceHttpSoap11Endpoint(endpoint);
|
108 |
|
|
}
|
109 |
|
|
|
110 |
|
|
public org.kepler.executionWS.KeplerWebServicePortType getKeplerWebServiceHttpSoap11Endpoint(java.net.URL portAddress) throws javax.xml.rpc.ServiceException {
|
111 |
|
|
try {
|
112 |
|
|
org.kepler.executionWS.KeplerWebServiceSoap11BindingStub _stub = new org.kepler.executionWS.KeplerWebServiceSoap11BindingStub(portAddress, this);
|
113 |
|
|
_stub.setPortName(getKeplerWebServiceHttpSoap11EndpointWSDDServiceName());
|
114 |
|
|
return _stub;
|
115 |
|
|
}
|
116 |
|
|
catch (org.apache.axis.AxisFault e) {
|
117 |
|
|
return null;
|
118 |
|
|
}
|
119 |
|
|
}
|
120 |
|
|
|
121 |
|
|
public void setKeplerWebServiceHttpSoap11EndpointEndpointAddress(java.lang.String address) {
|
122 |
|
|
KeplerWebServiceHttpSoap11Endpoint_address = address;
|
123 |
|
|
}
|
124 |
|
|
|
125 |
|
|
/**
|
126 |
|
|
* For the given interface, get the stub implementation.
|
127 |
|
|
* If this service has no port for the given interface,
|
128 |
|
|
* then ServiceException is thrown.
|
129 |
|
|
* This service has multiple ports for a given interface;
|
130 |
|
|
* the proxy implementation returned may be indeterminate.
|
131 |
|
|
*/
|
132 |
|
|
public java.rmi.Remote getPort(Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
133 |
|
|
try {
|
134 |
|
|
if (org.kepler.executionWS.KeplerWebServicePortType.class.isAssignableFrom(serviceEndpointInterface)) {
|
135 |
|
|
org.kepler.executionWS.KeplerWebServiceSoap12BindingStub _stub = new org.kepler.executionWS.KeplerWebServiceSoap12BindingStub(new java.net.URL(KeplerWebServiceHttpSoap12Endpoint_address), this);
|
136 |
|
|
_stub.setPortName(getKeplerWebServiceHttpSoap12EndpointWSDDServiceName());
|
137 |
|
|
return _stub;
|
138 |
|
|
}
|
139 |
|
|
if (org.kepler.executionWS.KeplerWebServicePortType.class.isAssignableFrom(serviceEndpointInterface)) {
|
140 |
|
|
org.kepler.executionWS.KeplerWebServiceSoap11BindingStub _stub = new org.kepler.executionWS.KeplerWebServiceSoap11BindingStub(new java.net.URL(KeplerWebServiceHttpSoap11Endpoint_address), this);
|
141 |
|
|
_stub.setPortName(getKeplerWebServiceHttpSoap11EndpointWSDDServiceName());
|
142 |
|
|
return _stub;
|
143 |
|
|
}
|
144 |
|
|
}
|
145 |
|
|
catch (java.lang.Throwable t) {
|
146 |
|
|
throw new javax.xml.rpc.ServiceException(t);
|
147 |
|
|
}
|
148 |
|
|
throw new javax.xml.rpc.ServiceException("There is no stub implementation for the interface: " + (serviceEndpointInterface == null ? "null" : serviceEndpointInterface.getName()));
|
149 |
|
|
}
|
150 |
|
|
|
151 |
|
|
/**
|
152 |
|
|
* For the given interface, get the stub implementation.
|
153 |
|
|
* If this service has no port for the given interface,
|
154 |
|
|
* then ServiceException is thrown.
|
155 |
|
|
*/
|
156 |
|
|
public java.rmi.Remote getPort(javax.xml.namespace.QName portName, Class serviceEndpointInterface) throws javax.xml.rpc.ServiceException {
|
157 |
|
|
if (portName == null) {
|
158 |
|
|
return getPort(serviceEndpointInterface);
|
159 |
|
|
}
|
160 |
|
|
java.lang.String inputPortName = portName.getLocalPart();
|
161 |
|
|
if ("KeplerWebServiceHttpSoap12Endpoint".equals(inputPortName)) {
|
162 |
|
|
return getKeplerWebServiceHttpSoap12Endpoint();
|
163 |
|
|
}
|
164 |
|
|
else if ("KeplerWebServiceHttpSoap11Endpoint".equals(inputPortName)) {
|
165 |
|
|
return getKeplerWebServiceHttpSoap11Endpoint();
|
166 |
|
|
}
|
167 |
|
|
else {
|
168 |
|
|
java.rmi.Remote _stub = getPort(serviceEndpointInterface);
|
169 |
|
|
((org.apache.axis.client.Stub) _stub).setPortName(portName);
|
170 |
|
|
return _stub;
|
171 |
|
|
}
|
172 |
|
|
}
|
173 |
|
|
|
174 |
|
|
public javax.xml.namespace.QName getServiceName() {
|
175 |
|
|
return new javax.xml.namespace.QName("http://executionWS.kepler.org/", "KeplerWebService");
|
176 |
|
|
}
|
177 |
|
|
|
178 |
|
|
private java.util.HashSet ports = null;
|
179 |
|
|
|
180 |
|
|
public java.util.Iterator getPorts() {
|
181 |
|
|
if (ports == null) {
|
182 |
|
|
ports = new java.util.HashSet();
|
183 |
|
|
ports.add(new javax.xml.namespace.QName("http://executionWS.kepler.org/", "KeplerWebServiceHttpSoap12Endpoint"));
|
184 |
|
|
ports.add(new javax.xml.namespace.QName("http://executionWS.kepler.org/", "KeplerWebServiceHttpSoap11Endpoint"));
|
185 |
|
|
}
|
186 |
|
|
return ports.iterator();
|
187 |
|
|
}
|
188 |
|
|
|
189 |
|
|
/**
|
190 |
|
|
* Set the endpoint address for the specified port name.
|
191 |
|
|
*/
|
192 |
|
|
public void setEndpointAddress(java.lang.String portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
193 |
|
|
|
194 |
|
|
if ("KeplerWebServiceHttpSoap12Endpoint".equals(portName)) {
|
195 |
|
|
setKeplerWebServiceHttpSoap12EndpointEndpointAddress(address);
|
196 |
|
|
}
|
197 |
|
|
else
|
198 |
|
|
if ("KeplerWebServiceHttpSoap11Endpoint".equals(portName)) {
|
199 |
|
|
setKeplerWebServiceHttpSoap11EndpointEndpointAddress(address);
|
200 |
|
|
}
|
201 |
|
|
else
|
202 |
|
|
{ // Unknown Port Name
|
203 |
|
|
throw new javax.xml.rpc.ServiceException(" Cannot set Endpoint Address for Unknown Port" + portName);
|
204 |
|
|
}
|
205 |
|
|
}
|
206 |
|
|
|
207 |
|
|
/**
|
208 |
|
|
* Set the endpoint address for the specified port name.
|
209 |
|
|
*/
|
210 |
|
|
public void setEndpointAddress(javax.xml.namespace.QName portName, java.lang.String address) throws javax.xml.rpc.ServiceException {
|
211 |
|
|
setEndpointAddress(portName.getLocalPart(), address);
|
212 |
|
|
}
|
213 |
|
|
|
214 |
|
|
}
|