KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > content > ContentServiceSoapBindingStub


1 /**
2  * ContentServiceSoapBindingStub.java
3  *
4  * This file was auto-generated from WSDL
5  * by the Apache Axis 1.2.1 Jun 14, 2005 (09:15:57 EDT) WSDL2Java emitter.
6  */

7
8 package org.alfresco.example.webservice.content;
9
10 public class ContentServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.alfresco.example.webservice.content.ContentServiceSoapPort {
11     private java.util.Vector JavaDoc cachedSerClasses = new java.util.Vector JavaDoc();
12     private java.util.Vector JavaDoc cachedSerQNames = new java.util.Vector JavaDoc();
13     private java.util.Vector JavaDoc cachedSerFactories = new java.util.Vector JavaDoc();
14     private java.util.Vector JavaDoc cachedDeserFactories = new java.util.Vector JavaDoc();
15
16     static org.apache.axis.description.OperationDesc [] _operations;
17
18     static {
19         _operations = new org.apache.axis.description.OperationDesc[6];
20         _initOperationDesc1();
21     }
22
23     private static void _initOperationDesc1(){
24         org.apache.axis.description.OperationDesc oper;
25         org.apache.axis.description.ParameterDesc param;
26         oper = new org.apache.axis.description.OperationDesc();
27         oper.setName("describe");
28         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
29         oper.addParameter(param);
30         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Content"));
31         oper.setReturnClass(org.alfresco.example.webservice.types.Content[].class);
32         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "describeReturn"));
33         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
34         oper.setUse(org.apache.axis.constants.Use.LITERAL);
35         oper.addFault(new org.apache.axis.description.FaultDesc(
36                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
37                       "org.alfresco.example.webservice.content.ContentFault",
38                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
39                       true
40                      ));
41         _operations[0] = oper;
42
43         oper = new org.apache.axis.description.OperationDesc();
44         oper.setName("read");
45         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "node"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"), org.alfresco.example.webservice.types.Reference.class, false, false);
46         oper.addParameter(param);
47         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ReadResult"));
48         oper.setReturnClass(org.alfresco.example.webservice.content.ReadResult.class);
49         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "readReturn"));
50         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
51         oper.setUse(org.apache.axis.constants.Use.LITERAL);
52         oper.addFault(new org.apache.axis.description.FaultDesc(
53                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
54                       "org.alfresco.example.webservice.content.ContentFault",
55                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
56                       true
57                      ));
58         _operations[1] = oper;
59
60         oper = new org.apache.axis.description.OperationDesc();
61         oper.setName("write");
62         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "node"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"), org.alfresco.example.webservice.types.Reference.class, false, false);
63         oper.addParameter(param);
64         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "content"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class, false, false);
65         oper.addParameter(param);
66         oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
67         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
68         oper.setUse(org.apache.axis.constants.Use.LITERAL);
69         oper.addFault(new org.apache.axis.description.FaultDesc(
70                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
71                       "org.alfresco.example.webservice.content.ContentFault",
72                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
73                       true
74                      ));
75         _operations[2] = oper;
76
77         oper = new org.apache.axis.description.OperationDesc();
78         oper.setName("create");
79         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "parent"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ParentReference"), org.alfresco.example.webservice.types.ParentReference.class, false, false);
80         oper.addParameter(param);
81         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "name"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String JavaDoc.class, false, false);
82         oper.addParameter(param);
83         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "format"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat"), org.alfresco.example.webservice.types.ContentFormat.class, false, false);
84         oper.addParameter(param);
85         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "content"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "base64Binary"), byte[].class, false, false);
86         oper.addParameter(param);
87         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Content"));
88         oper.setReturnClass(org.alfresco.example.webservice.types.Content.class);
89         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "createReturn"));
90         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
91         oper.setUse(org.apache.axis.constants.Use.LITERAL);
92         oper.addFault(new org.apache.axis.description.FaultDesc(
93                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
94                       "org.alfresco.example.webservice.content.ContentFault",
95                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
96                       true
97                      ));
98         _operations[3] = oper;
99
100         oper = new org.apache.axis.description.OperationDesc();
101         oper.setName("delete");
102         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
103         oper.addParameter(param);
104         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference"));
105         oper.setReturnClass(org.alfresco.example.webservice.types.Reference[].class);
106         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "deleteReturn"));
107         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
108         oper.setUse(org.apache.axis.constants.Use.LITERAL);
109         oper.addFault(new org.apache.axis.description.FaultDesc(
110                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
111                       "org.alfresco.example.webservice.content.ContentFault",
112                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
113                       true
114                      ));
115         _operations[4] = oper;
116
117         oper = new org.apache.axis.description.OperationDesc();
118         oper.setName("exists");
119         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "items"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate"), org.alfresco.example.webservice.types.Predicate.class, false, false);
120         oper.addParameter(param);
121         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ExistsResult"));
122         oper.setReturnClass(org.alfresco.example.webservice.content.ExistsResult[].class);
123         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "existsReturn"));
124         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
125         oper.setUse(org.apache.axis.constants.Use.LITERAL);
126         oper.addFault(new org.apache.axis.description.FaultDesc(
127                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
128                       "org.alfresco.example.webservice.content.ContentFault",
129                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault"),
130                       true
131                      ));
132         _operations[5] = oper;
133
134     }
135
136     public ContentServiceSoapBindingStub() throws org.apache.axis.AxisFault {
137          this(null);
138     }
139
140     public ContentServiceSoapBindingStub(java.net.URL JavaDoc endpointURL, javax.xml.rpc.Service JavaDoc service) throws org.apache.axis.AxisFault {
141          this(service);
142          super.cachedEndpoint = endpointURL;
143     }
144
145     public ContentServiceSoapBindingStub(javax.xml.rpc.Service JavaDoc service) throws org.apache.axis.AxisFault {
146         if (service == null) {
147             super.service = new org.apache.axis.client.Service();
148         } else {
149             super.service = service;
150         }
151         ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
152             java.lang.Class JavaDoc cls;
153             javax.xml.namespace.QName JavaDoc qName;
154             javax.xml.namespace.QName JavaDoc qName2;
155             java.lang.Class JavaDoc beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
156             java.lang.Class JavaDoc beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
157             java.lang.Class JavaDoc enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
158             java.lang.Class JavaDoc enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
159             java.lang.Class JavaDoc arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
160             java.lang.Class JavaDoc arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
161             java.lang.Class JavaDoc simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
162             java.lang.Class JavaDoc simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
163             java.lang.Class JavaDoc simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
164             java.lang.Class JavaDoc simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
165             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ContentFormat>encoding");
166             cachedSerQNames.add(qName);
167             cls = java.lang.String JavaDoc.class;
168             cachedSerClasses.add(cls);
169             cachedSerFactories.add(simplesf);
170             cachedDeserFactories.add(simpledf);
171
172             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ContentFormat>mimetype");
173             cachedSerQNames.add(qName);
174             cls = java.lang.String JavaDoc.class;
175             cachedSerClasses.add(cls);
176             cachedSerFactories.add(simplesf);
177             cachedDeserFactories.add(simpledf);
178
179             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node");
180             cachedSerQNames.add(qName);
181             cls = org.alfresco.example.webservice.types.ResultSetRowNode.class;
182             cachedSerClasses.add(cls);
183             cachedSerFactories.add(beansf);
184             cachedDeserFactories.add(beandf);
185
186             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">Store>address");
187             cachedSerQNames.add(qName);
188             cls = java.lang.String JavaDoc.class;
189             cachedSerClasses.add(cls);
190             cachedSerFactories.add(simplesf);
191             cachedDeserFactories.add(simpledf);
192
193             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition");
194             cachedSerQNames.add(qName);
195             cls = org.alfresco.example.webservice.types.AssociationDefinition.class;
196             cachedSerClasses.add(cls);
197             cachedSerFactories.add(beansf);
198             cachedDeserFactories.add(beandf);
199
200             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Cardinality");
201             cachedSerQNames.add(qName);
202             cls = org.alfresco.example.webservice.types.Cardinality.class;
203             cachedSerClasses.add(cls);
204             cachedSerFactories.add(enumsf);
205             cachedDeserFactories.add(enumdf);
206
207             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Category");
208             cachedSerQNames.add(qName);
209             cls = org.alfresco.example.webservice.types.Category.class;
210             cachedSerClasses.add(cls);
211             cachedSerFactories.add(beansf);
212             cachedDeserFactories.add(beandf);
213
214             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition");
215             cachedSerQNames.add(qName);
216             cls = org.alfresco.example.webservice.types.ClassDefinition.class;
217             cachedSerClasses.add(cls);
218             cachedSerFactories.add(beansf);
219             cachedDeserFactories.add(beandf);
220
221             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Classification");
222             cachedSerQNames.add(qName);
223             cls = org.alfresco.example.webservice.types.Classification.class;
224             cachedSerClasses.add(cls);
225             cachedSerFactories.add(beansf);
226             cachedDeserFactories.add(beandf);
227
228             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Content");
229             cachedSerQNames.add(qName);
230             cls = org.alfresco.example.webservice.types.Content.class;
231             cachedSerClasses.add(cls);
232             cachedSerFactories.add(beansf);
233             cachedDeserFactories.add(beandf);
234
235             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat");
236             cachedSerQNames.add(qName);
237             cls = org.alfresco.example.webservice.types.ContentFormat.class;
238             cachedSerClasses.add(cls);
239             cachedSerFactories.add(beansf);
240             cachedDeserFactories.add(beandf);
241
242             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name");
243             cachedSerQNames.add(qName);
244             cls = java.lang.String JavaDoc.class;
245             cachedSerClasses.add(cls);
246             cachedSerFactories.add(simplesf);
247             cachedDeserFactories.add(simpledf);
248
249             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue");
250             cachedSerQNames.add(qName);
251             cls = org.alfresco.example.webservice.types.NamedValue.class;
252             cachedSerClasses.add(cls);
253             cachedSerFactories.add(beansf);
254             cachedDeserFactories.add(beandf);
255
256             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Node");
257             cachedSerQNames.add(qName);
258             cls = org.alfresco.example.webservice.types.Node.class;
259             cachedSerClasses.add(cls);
260             cachedSerFactories.add(beansf);
261             cachedDeserFactories.add(beandf);
262
263             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NodeDefinition");
264             cachedSerQNames.add(qName);
265             cls = org.alfresco.example.webservice.types.NodeDefinition.class;
266             cachedSerClasses.add(cls);
267             cachedSerFactories.add(beansf);
268             cachedDeserFactories.add(beandf);
269
270             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ParentReference");
271             cachedSerQNames.add(qName);
272             cls = org.alfresco.example.webservice.types.ParentReference.class;
273             cachedSerClasses.add(cls);
274             cachedSerFactories.add(beansf);
275             cachedDeserFactories.add(beandf);
276
277             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Path");
278             cachedSerQNames.add(qName);
279             cls = java.lang.String JavaDoc.class;
280             cachedSerClasses.add(cls);
281             cachedSerFactories.add(simplesf);
282             cachedDeserFactories.add(simpledf);
283
284             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate");
285             cachedSerQNames.add(qName);
286             cls = org.alfresco.example.webservice.types.Predicate.class;
287             cachedSerClasses.add(cls);
288             cachedSerFactories.add(beansf);
289             cachedDeserFactories.add(beandf);
290
291             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "PropertyDefinition");
292             cachedSerQNames.add(qName);
293             cls = org.alfresco.example.webservice.types.PropertyDefinition.class;
294             cachedSerClasses.add(cls);
295             cachedSerFactories.add(beansf);
296             cachedDeserFactories.add(beandf);
297
298             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Query");
299             cachedSerQNames.add(qName);
300             cls = org.alfresco.example.webservice.types.Query.class;
301             cachedSerClasses.add(cls);
302             cachedSerFactories.add(beansf);
303             cachedDeserFactories.add(beandf);
304
305             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "QueryLanguageEnum");
306             cachedSerQNames.add(qName);
307             cls = org.alfresco.example.webservice.types.QueryLanguageEnum.class;
308             cachedSerClasses.add(cls);
309             cachedSerFactories.add(enumsf);
310             cachedDeserFactories.add(enumdf);
311
312             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference");
313             cachedSerQNames.add(qName);
314             cls = org.alfresco.example.webservice.types.Reference.class;
315             cachedSerClasses.add(cls);
316             cachedSerFactories.add(beansf);
317             cachedDeserFactories.add(beandf);
318
319             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSet");
320             cachedSerQNames.add(qName);
321             cls = org.alfresco.example.webservice.types.ResultSet.class;
322             cachedSerClasses.add(cls);
323             cachedSerFactories.add(beansf);
324             cachedDeserFactories.add(beandf);
325
326             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSetMetaData");
327             cachedSerQNames.add(qName);
328             cls = org.alfresco.example.webservice.types.ResultSetMetaData.class;
329             cachedSerClasses.add(cls);
330             cachedSerFactories.add(beansf);
331             cachedDeserFactories.add(beandf);
332
333             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSetRow");
334             cachedSerQNames.add(qName);
335             cls = org.alfresco.example.webservice.types.ResultSetRow.class;
336             cachedSerClasses.add(cls);
337             cachedSerFactories.add(beansf);
338             cachedDeserFactories.add(beandf);
339
340             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition");
341             cachedSerQNames.add(qName);
342             cls = org.alfresco.example.webservice.types.RoleDefinition.class;
343             cachedSerClasses.add(cls);
344             cachedSerFactories.add(beansf);
345             cachedDeserFactories.add(beandf);
346
347             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Store");
348             cachedSerQNames.add(qName);
349             cls = org.alfresco.example.webservice.types.Store.class;
350             cachedSerClasses.add(cls);
351             cachedSerFactories.add(beansf);
352             cachedDeserFactories.add(beandf);
353
354             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "StoreEnum");
355             cachedSerQNames.add(qName);
356             cls = org.alfresco.example.webservice.types.StoreEnum.class;
357             cachedSerClasses.add(cls);
358             cachedSerFactories.add(enumsf);
359             cachedDeserFactories.add(enumdf);
360
361             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "UUID");
362             cachedSerQNames.add(qName);
363             cls = java.lang.String JavaDoc.class;
364             cachedSerClasses.add(cls);
365             cachedSerFactories.add(simplesf);
366             cachedDeserFactories.add(simpledf);
367
368             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ValueDefinition");
369             cachedSerQNames.add(qName);
370             cls = org.alfresco.example.webservice.types.ValueDefinition.class;
371             cachedSerClasses.add(cls);
372             cachedSerFactories.add(beansf);
373             cachedDeserFactories.add(beandf);
374
375             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Version");
376             cachedSerQNames.add(qName);
377             cls = org.alfresco.example.webservice.types.Version.class;
378             cachedSerClasses.add(cls);
379             cachedSerFactories.add(beansf);
380             cachedDeserFactories.add(beandf);
381
382             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "VersionHistory");
383             cachedSerQNames.add(qName);
384             cls = org.alfresco.example.webservice.types.VersionHistory.class;
385             cachedSerClasses.add(cls);
386             cachedSerFactories.add(beansf);
387             cachedDeserFactories.add(beandf);
388
389             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentFault");
390             cachedSerQNames.add(qName);
391             cls = org.alfresco.example.webservice.content.ContentFault.class;
392             cachedSerClasses.add(cls);
393             cachedSerFactories.add(beansf);
394             cachedDeserFactories.add(beandf);
395
396             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ContentSegment");
397             cachedSerQNames.add(qName);
398             cls = org.alfresco.example.webservice.content.ContentSegment.class;
399             cachedSerClasses.add(cls);
400             cachedSerFactories.add(beansf);
401             cachedDeserFactories.add(beandf);
402
403             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ExistsResult");
404             cachedSerQNames.add(qName);
405             cls = org.alfresco.example.webservice.content.ExistsResult.class;
406             cachedSerClasses.add(cls);
407             cachedSerFactories.add(beansf);
408             cachedDeserFactories.add(beandf);
409
410             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "ReadResult");
411             cachedSerQNames.add(qName);
412             cls = org.alfresco.example.webservice.content.ReadResult.class;
413             cachedSerClasses.add(cls);
414             cachedSerFactories.add(beansf);
415             cachedDeserFactories.add(beandf);
416
417     }
418
419     protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException JavaDoc {
420         try {
421             org.apache.axis.client.Call _call = super._createCall();
422             if (super.maintainSessionSet) {
423                 _call.setMaintainSession(super.maintainSession);
424             }
425             if (super.cachedUsername != null) {
426                 _call.setUsername(super.cachedUsername);
427             }
428             if (super.cachedPassword != null) {
429                 _call.setPassword(super.cachedPassword);
430             }
431             if (super.cachedEndpoint != null) {
432                 _call.setTargetEndpointAddress(super.cachedEndpoint);
433             }
434             if (super.cachedTimeout != null) {
435                 _call.setTimeout(super.cachedTimeout);
436             }
437             if (super.cachedPortName != null) {
438                 _call.setPortName(super.cachedPortName);
439             }
440             java.util.Enumeration JavaDoc keys = super.cachedProperties.keys();
441             while (keys.hasMoreElements()) {
442                 java.lang.String JavaDoc key = (java.lang.String JavaDoc) keys.nextElement();
443                 _call.setProperty(key, super.cachedProperties.get(key));
444             }
445             // All the type mapping information is registered
446
// when the first call is made.
447
// The type mapping information is actually registered in
448
// the TypeMappingRegistry of the service, which
449
// is the reason why registration is only needed for the first call.
450
synchronized (this) {
451                 if (firstCall()) {
452                     // must set encoding style before registering serializers
453
_call.setEncodingStyle(null);
454                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
455                         java.lang.Class JavaDoc cls = (java.lang.Class JavaDoc) cachedSerClasses.get(i);
456                         javax.xml.namespace.QName JavaDoc qName =
457                                 (javax.xml.namespace.QName JavaDoc) cachedSerQNames.get(i);
458                         java.lang.Object JavaDoc x = cachedSerFactories.get(i);
459                         if (x instanceof Class JavaDoc) {
460                             java.lang.Class JavaDoc sf = (java.lang.Class JavaDoc)
461                                  cachedSerFactories.get(i);
462                             java.lang.Class JavaDoc df = (java.lang.Class JavaDoc)
463                                  cachedDeserFactories.get(i);
464                             _call.registerTypeMapping(cls, qName, sf, df, false);
465                         }
466                         else if (x instanceof javax.xml.rpc.encoding.SerializerFactory JavaDoc) {
467                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
468                                  cachedSerFactories.get(i);
469                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
470                                  cachedDeserFactories.get(i);
471                             _call.registerTypeMapping(cls, qName, sf, df, false);
472                         }
473                     }
474                 }
475             }
476             return _call;
477         }
478         catch (java.lang.Throwable JavaDoc _t) {
479             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
480         }
481     }
482
483
484     /**
485      * Describes one or more content streams.
486      */

487     public org.alfresco.example.webservice.types.Content[] describe(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.content.ContentFault {
488         if (super.cachedEndpoint == null) {
489             throw new org.apache.axis.NoEndPointException();
490         }
491         org.apache.axis.client.Call _call = createCall();
492         _call.setOperation(_operations[0]);
493         _call.setUseSOAPAction(true);
494         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/content/1.0/describe");
495         _call.setEncodingStyle(null);
496         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
497         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
498         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
499         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "describe"));
500
501         setRequestHeaders(_call);
502         setAttachments(_call);
503  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items});
504
505         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
506             throw (java.rmi.RemoteException JavaDoc)_resp;
507         }
508         else {
509             extractAttachments(_call);
510             try {
511                 return (org.alfresco.example.webservice.types.Content[]) _resp;
512             } catch (java.lang.Exception JavaDoc _exception) {
513                 return (org.alfresco.example.webservice.types.Content[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Content[].class);
514             }
515         }
516   } catch (org.apache.axis.AxisFault axisFaultException) {
517     if (axisFaultException.detail != null) {
518         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
519               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
520          }
521         if (axisFaultException.detail instanceof org.alfresco.example.webservice.content.ContentFault) {
522               throw (org.alfresco.example.webservice.content.ContentFault) axisFaultException.detail;
523          }
524    }
525   throw axisFaultException;
526 }
527     }
528
529
530     /**
531      * Retrieves content from the repository.
532      */

533     public org.alfresco.example.webservice.content.ReadResult read(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.content.ContentFault {
534         if (super.cachedEndpoint == null) {
535             throw new org.apache.axis.NoEndPointException();
536         }
537         org.apache.axis.client.Call _call = createCall();
538         _call.setOperation(_operations[1]);
539         _call.setUseSOAPAction(true);
540         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/content/1.0/read");
541         _call.setEncodingStyle(null);
542         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
543         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
544         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
545         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "read"));
546
547         setRequestHeaders(_call);
548         setAttachments(_call);
549  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {node});
550
551         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
552             throw (java.rmi.RemoteException JavaDoc)_resp;
553         }
554         else {
555             extractAttachments(_call);
556             try {
557                 return (org.alfresco.example.webservice.content.ReadResult) _resp;
558             } catch (java.lang.Exception JavaDoc _exception) {
559                 return (org.alfresco.example.webservice.content.ReadResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.content.ReadResult.class);
560             }
561         }
562   } catch (org.apache.axis.AxisFault axisFaultException) {
563     if (axisFaultException.detail != null) {
564         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
565               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
566          }
567         if (axisFaultException.detail instanceof org.alfresco.example.webservice.content.ContentFault) {
568               throw (org.alfresco.example.webservice.content.ContentFault) axisFaultException.detail;
569          }
570    }
571   throw axisFaultException;
572 }
573     }
574
575
576     /**
577      * Writes content to the repository.
578      */

579     public void write(org.alfresco.example.webservice.types.Reference node, byte[] content) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.content.ContentFault {
580         if (super.cachedEndpoint == null) {
581             throw new org.apache.axis.NoEndPointException();
582         }
583         org.apache.axis.client.Call _call = createCall();
584         _call.setOperation(_operations[2]);
585         _call.setUseSOAPAction(true);
586         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/content/1.0/write");
587         _call.setEncodingStyle(null);
588         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
589         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
590         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
591         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "write"));
592
593         setRequestHeaders(_call);
594         setAttachments(_call);
595  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {node, content});
596
597         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
598             throw (java.rmi.RemoteException JavaDoc)_resp;
599         }
600         extractAttachments(_call);
601   } catch (org.apache.axis.AxisFault axisFaultException) {
602     if (axisFaultException.detail != null) {
603         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
604               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
605          }
606         if (axisFaultException.detail instanceof org.alfresco.example.webservice.content.ContentFault) {
607               throw (org.alfresco.example.webservice.content.ContentFault) axisFaultException.detail;
608          }
609    }
610   throw axisFaultException;
611 }
612     }
613
614
615     /**
616      * Creates new content in the repository.
617      */

618     public org.alfresco.example.webservice.types.Content create(org.alfresco.example.webservice.types.ParentReference parent, java.lang.String JavaDoc name, org.alfresco.example.webservice.types.ContentFormat format, byte[] content) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.content.ContentFault {
619         if (super.cachedEndpoint == null) {
620             throw new org.apache.axis.NoEndPointException();
621         }
622         org.apache.axis.client.Call _call = createCall();
623         _call.setOperation(_operations[3]);
624         _call.setUseSOAPAction(true);
625         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/content/1.0/create");
626         _call.setEncodingStyle(null);
627         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
628         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
629         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
630         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "create"));
631
632         setRequestHeaders(_call);
633         setAttachments(_call);
634  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {parent, name, format, content});
635
636         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
637             throw (java.rmi.RemoteException JavaDoc)_resp;
638         }
639         else {
640             extractAttachments(_call);
641             try {
642                 return (org.alfresco.example.webservice.types.Content) _resp;
643             } catch (java.lang.Exception JavaDoc _exception) {
644                 return (org.alfresco.example.webservice.types.Content) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Content.class);
645             }
646         }
647   } catch (org.apache.axis.AxisFault axisFaultException) {
648     if (axisFaultException.detail != null) {
649         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
650               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
651          }
652         if (axisFaultException.detail instanceof org.alfresco.example.webservice.content.ContentFault) {
653               throw (org.alfresco.example.webservice.content.ContentFault) axisFaultException.detail;
654          }
655    }
656   throw axisFaultException;
657 }
658     }
659
660
661     /**
662      * Deletes content from the repository.
663      */

664     public org.alfresco.example.webservice.types.Reference[] delete(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.content.ContentFault {
665         if (super.cachedEndpoint == null) {
666             throw new org.apache.axis.NoEndPointException();
667         }
668         org.apache.axis.client.Call _call = createCall();
669         _call.setOperation(_operations[4]);
670         _call.setUseSOAPAction(true);
671         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/content/1.0/delete");
672         _call.setEncodingStyle(null);
673         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
674         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
675         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
676         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "delete"));
677
678         setRequestHeaders(_call);
679         setAttachments(_call);
680  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items});
681
682         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
683             throw (java.rmi.RemoteException JavaDoc)_resp;
684         }
685         else {
686             extractAttachments(_call);
687             try {
688                 return (org.alfresco.example.webservice.types.Reference[]) _resp;
689             } catch (java.lang.Exception JavaDoc _exception) {
690                 return (org.alfresco.example.webservice.types.Reference[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Reference[].class);
691             }
692         }
693   } catch (org.apache.axis.AxisFault axisFaultException) {
694     if (axisFaultException.detail != null) {
695         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
696               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
697          }
698         if (axisFaultException.detail instanceof org.alfresco.example.webservice.content.ContentFault) {
699               throw (org.alfresco.example.webservice.content.ContentFault) axisFaultException.detail;
700          }
701    }
702   throw axisFaultException;
703 }
704     }
705
706
707     /**
708      * Determines whether content exists in the repository.
709      */

710     public org.alfresco.example.webservice.content.ExistsResult[] exists(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.content.ContentFault {
711         if (super.cachedEndpoint == null) {
712             throw new org.apache.axis.NoEndPointException();
713         }
714         org.apache.axis.client.Call _call = createCall();
715         _call.setOperation(_operations[5]);
716         _call.setUseSOAPAction(true);
717         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/content/1.0/exists");
718         _call.setEncodingStyle(null);
719         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
720         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
721         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
722         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/content/1.0", "exists"));
723
724         setRequestHeaders(_call);
725         setAttachments(_call);
726  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items});
727
728         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
729             throw (java.rmi.RemoteException JavaDoc)_resp;
730         }
731         else {
732             extractAttachments(_call);
733             try {
734                 return (org.alfresco.example.webservice.content.ExistsResult[]) _resp;
735             } catch (java.lang.Exception JavaDoc _exception) {
736                 return (org.alfresco.example.webservice.content.ExistsResult[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.content.ExistsResult[].class);
737             }
738         }
739   } catch (org.apache.axis.AxisFault axisFaultException) {
740     if (axisFaultException.detail != null) {
741         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
742               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
743          }
744         if (axisFaultException.detail instanceof org.alfresco.example.webservice.content.ContentFault) {
745               throw (org.alfresco.example.webservice.content.ContentFault) axisFaultException.detail;
746          }
747    }
748   throw axisFaultException;
749 }
750     }
751
752 }
753
Popular Tags