1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
package ext.vamsas; |
22 |
|
|
|
|
| 0% |
Uncovered Elements: 119 (119) |
Complexity: 21 |
Complexity Density: 0.24 |
|
23 |
|
public class RegistryServiceSoapBindingStub |
24 |
|
extends org.apache.axis.client.Stub implements ext.vamsas.IRegistry |
25 |
|
{ |
26 |
|
private java.util.Vector cachedSerClasses = new java.util.Vector(); |
27 |
|
|
28 |
|
private java.util.Vector cachedSerQNames = new java.util.Vector(); |
29 |
|
|
30 |
|
private java.util.Vector cachedSerFactories = new java.util.Vector(); |
31 |
|
|
32 |
|
private java.util.Vector cachedDeserFactories = new java.util.Vector(); |
33 |
|
|
34 |
|
static org.apache.axis.description.OperationDesc[] _operations; |
35 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
36 |
0 |
static... |
37 |
|
{ |
38 |
0 |
_operations = new org.apache.axis.description.OperationDesc[1]; |
39 |
0 |
_initOperationDesc1(); |
40 |
|
} |
41 |
|
|
|
|
| 0% |
Uncovered Elements: 9 (9) |
Complexity: 1 |
Complexity Density: 0.11 |
|
42 |
0 |
private static void _initOperationDesc1()... |
43 |
|
{ |
44 |
0 |
org.apache.axis.description.OperationDesc oper; |
45 |
0 |
oper = new org.apache.axis.description.OperationDesc(); |
46 |
0 |
oper.setName("getServices"); |
47 |
0 |
oper.setReturnType(new javax.xml.namespace.QName( |
48 |
|
"registry.objects.vamsas", "ServiceHandles")); |
49 |
0 |
oper.setReturnClass(ext.vamsas.ServiceHandles.class); |
50 |
0 |
oper.setReturnQName( |
51 |
|
new javax.xml.namespace.QName("", "getServicesReturn")); |
52 |
0 |
oper.setStyle(org.apache.axis.constants.Style.RPC); |
53 |
0 |
oper.setUse(org.apache.axis.constants.Use.ENCODED); |
54 |
0 |
_operations[0] = oper; |
55 |
|
|
56 |
|
} |
57 |
|
|
|
|
| 0% |
Uncovered Elements: 1 (1) |
Complexity: 1 |
Complexity Density: 1 |
|
58 |
0 |
public RegistryServiceSoapBindingStub() throws org.apache.axis.AxisFault... |
59 |
|
{ |
60 |
0 |
this(null); |
61 |
|
} |
62 |
|
|
|
|
| 0% |
Uncovered Elements: 2 (2) |
Complexity: 1 |
Complexity Density: 0.5 |
|
63 |
0 |
public RegistryServiceSoapBindingStub(java.net.URL endpointURL,... |
64 |
|
javax.xml.rpc.Service service) throws org.apache.axis.AxisFault |
65 |
|
{ |
66 |
0 |
this(service); |
67 |
0 |
super.cachedEndpoint = endpointURL; |
68 |
|
} |
69 |
|
|
|
|
| 0% |
Uncovered Elements: 29 (29) |
Complexity: 2 |
Complexity Density: 0.07 |
|
70 |
0 |
public RegistryServiceSoapBindingStub(javax.xml.rpc.Service service)... |
71 |
|
throws org.apache.axis.AxisFault |
72 |
|
{ |
73 |
0 |
if (service == null) |
74 |
|
{ |
75 |
0 |
super.service = new org.apache.axis.client.Service(); |
76 |
|
} |
77 |
|
else |
78 |
|
{ |
79 |
0 |
super.service = service; |
80 |
|
} |
81 |
0 |
java.lang.Class cls; |
82 |
0 |
javax.xml.namespace.QName qName; |
83 |
0 |
java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class; |
84 |
0 |
java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class; |
85 |
|
|
86 |
|
|
87 |
|
|
88 |
|
|
89 |
0 |
java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class; |
90 |
0 |
java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class; |
91 |
|
|
92 |
|
|
93 |
|
|
94 |
|
|
95 |
|
|
96 |
|
|
97 |
|
|
98 |
|
|
99 |
0 |
qName = new javax.xml.namespace.QName("vamsas", |
100 |
|
"ArrayOf_tns1_ServiceHandle"); |
101 |
0 |
cachedSerQNames.add(qName); |
102 |
0 |
cls = ext.vamsas.ServiceHandle[].class; |
103 |
0 |
cachedSerClasses.add(cls); |
104 |
0 |
cachedSerFactories.add(arraysf); |
105 |
0 |
cachedDeserFactories.add(arraydf); |
106 |
|
|
107 |
0 |
qName = new javax.xml.namespace.QName("registry.objects.vamsas", |
108 |
|
"ServiceHandles"); |
109 |
0 |
cachedSerQNames.add(qName); |
110 |
0 |
cls = ext.vamsas.ServiceHandles.class; |
111 |
0 |
cachedSerClasses.add(cls); |
112 |
0 |
cachedSerFactories.add(beansf); |
113 |
0 |
cachedDeserFactories.add(beandf); |
114 |
|
|
115 |
0 |
qName = new javax.xml.namespace.QName("registry.objects.vamsas", |
116 |
|
"ServiceHandle"); |
117 |
0 |
cachedSerQNames.add(qName); |
118 |
0 |
cls = ext.vamsas.ServiceHandle.class; |
119 |
0 |
cachedSerClasses.add(cls); |
120 |
0 |
cachedSerFactories.add(beansf); |
121 |
0 |
cachedDeserFactories.add(beandf); |
122 |
|
|
123 |
|
} |
124 |
|
|
|
|
| 0% |
Uncovered Elements: 48 (48) |
Complexity: 11 |
Complexity Density: 0.37 |
|
125 |
0 |
protected org.apache.axis.client.Call createCall()... |
126 |
|
throws java.rmi.RemoteException |
127 |
|
{ |
128 |
0 |
try |
129 |
|
{ |
130 |
0 |
org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super.service |
131 |
|
.createCall(); |
132 |
0 |
if (super.maintainSessionSet) |
133 |
|
{ |
134 |
0 |
_call.setMaintainSession(super.maintainSession); |
135 |
|
} |
136 |
0 |
if (super.cachedUsername != null) |
137 |
|
{ |
138 |
0 |
_call.setUsername(super.cachedUsername); |
139 |
|
} |
140 |
0 |
if (super.cachedPassword != null) |
141 |
|
{ |
142 |
0 |
_call.setPassword(super.cachedPassword); |
143 |
|
} |
144 |
0 |
if (super.cachedEndpoint != null) |
145 |
|
{ |
146 |
0 |
_call.setTargetEndpointAddress(super.cachedEndpoint); |
147 |
|
} |
148 |
0 |
if (super.cachedTimeout != null) |
149 |
|
{ |
150 |
0 |
_call.setTimeout(super.cachedTimeout); |
151 |
|
} |
152 |
0 |
if (super.cachedPortName != null) |
153 |
|
{ |
154 |
0 |
_call.setPortName(super.cachedPortName); |
155 |
|
} |
156 |
0 |
java.util.Enumeration keys = super.cachedProperties.keys(); |
157 |
0 |
while (keys.hasMoreElements()) |
158 |
|
{ |
159 |
0 |
java.lang.String key = (java.lang.String) keys.nextElement(); |
160 |
0 |
_call.setProperty(key, super.cachedProperties.get(key)); |
161 |
|
} |
162 |
|
|
163 |
|
|
164 |
|
|
165 |
|
|
166 |
|
|
167 |
0 |
synchronized (this) |
168 |
|
{ |
169 |
0 |
if (firstCall()) |
170 |
|
{ |
171 |
|
|
172 |
0 |
_call.setSOAPVersion( |
173 |
|
org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
174 |
0 |
_call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC); |
175 |
0 |
for (int i = 0; i < cachedSerFactories.size(); ++i) |
176 |
|
{ |
177 |
0 |
java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i); |
178 |
0 |
javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames |
179 |
|
.get(i); |
180 |
0 |
java.lang.Class sf = (java.lang.Class) cachedSerFactories |
181 |
|
.get(i); |
182 |
0 |
java.lang.Class df = (java.lang.Class) cachedDeserFactories |
183 |
|
.get(i); |
184 |
0 |
_call.registerTypeMapping(cls, qName, sf, df, false); |
185 |
|
} |
186 |
|
} |
187 |
|
} |
188 |
0 |
return _call; |
189 |
|
} catch (java.lang.Throwable _t) |
190 |
|
{ |
191 |
0 |
throw new org.apache.axis.AxisFault( |
192 |
|
"Failure trying to get the Call object", _t); |
193 |
|
} |
194 |
|
} |
195 |
|
|
|
|
| 0% |
Uncovered Elements: 21 (21) |
Complexity: 4 |
Complexity Density: 0.24 |
|
196 |
0 |
public ext.vamsas.ServiceHandles getServices()... |
197 |
|
throws java.rmi.RemoteException |
198 |
|
{ |
199 |
0 |
if (super.cachedEndpoint == null) |
200 |
|
{ |
201 |
0 |
throw new org.apache.axis.NoEndPointException(); |
202 |
|
} |
203 |
0 |
org.apache.axis.client.Call _call = createCall(); |
204 |
0 |
_call.setOperation(_operations[0]); |
205 |
0 |
_call.setUseSOAPAction(true); |
206 |
0 |
_call.setSOAPActionURI(""); |
207 |
0 |
_call.setSOAPVersion( |
208 |
|
org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS); |
209 |
0 |
_call.setOperationName( |
210 |
|
new javax.xml.namespace.QName("vamsas", "getServices")); |
211 |
|
|
212 |
0 |
setRequestHeaders(_call); |
213 |
0 |
setAttachments(_call); |
214 |
0 |
java.lang.Object _resp = _call.invoke(new java.lang.Object[] {}); |
215 |
|
|
216 |
0 |
if (_resp instanceof java.rmi.RemoteException) |
217 |
|
{ |
218 |
0 |
throw (java.rmi.RemoteException) _resp; |
219 |
|
} |
220 |
|
else |
221 |
|
{ |
222 |
0 |
extractAttachments(_call); |
223 |
0 |
try |
224 |
|
{ |
225 |
0 |
return (ext.vamsas.ServiceHandles) _resp; |
226 |
|
} catch (java.lang.Exception _exception) |
227 |
|
{ |
228 |
0 |
return (ext.vamsas.ServiceHandles) org.apache.axis.utils.JavaUtils |
229 |
|
.convert(_resp, ext.vamsas.ServiceHandles.class); |
230 |
|
} |
231 |
|
} |
232 |
|
} |
233 |
|
|
234 |
|
} |