KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > alfresco > example > webservice > repository > RepositoryServiceSoapBindingStub


1 /**
2  * RepositoryServiceSoapBindingStub.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.repository;
9
10 public class RepositoryServiceSoapBindingStub extends org.apache.axis.client.Stub implements org.alfresco.example.webservice.repository.RepositoryServiceSoapPort {
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[8];
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("getStores");
28         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Store"));
29         oper.setReturnClass(org.alfresco.example.webservice.types.Store[].class);
30         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "getStoresReturn"));
31         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
32         oper.setUse(org.apache.axis.constants.Use.LITERAL);
33         oper.addFault(new org.apache.axis.description.FaultDesc(
34                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
35                       "org.alfresco.example.webservice.repository.RepositoryFault",
36                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
37                       true
38                      ));
39         _operations[0] = oper;
40
41         oper = new org.apache.axis.description.OperationDesc();
42         oper.setName("query");
43         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "store"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Store"), org.alfresco.example.webservice.types.Store.class, false, false);
44         oper.addParameter(param);
45         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "query"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Query"), org.alfresco.example.webservice.types.Query.class, false, false);
46         oper.addParameter(param);
47         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "includeMetaData"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.w3.org/2001/XMLSchema", "boolean"), boolean.class, false, false);
48         oper.addParameter(param);
49         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult"));
50         oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class);
51         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn"));
52         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
53         oper.setUse(org.apache.axis.constants.Use.LITERAL);
54         oper.addFault(new org.apache.axis.description.FaultDesc(
55                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
56                       "org.alfresco.example.webservice.repository.RepositoryFault",
57                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
58                       true
59                      ));
60         _operations[1] = oper;
61
62         oper = new org.apache.axis.description.OperationDesc();
63         oper.setName("queryChildren");
64         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/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);
65         oper.addParameter(param);
66         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult"));
67         oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class);
68         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn"));
69         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
70         oper.setUse(org.apache.axis.constants.Use.LITERAL);
71         oper.addFault(new org.apache.axis.description.FaultDesc(
72                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
73                       "org.alfresco.example.webservice.repository.RepositoryFault",
74                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
75                       true
76                      ));
77         _operations[2] = oper;
78
79         oper = new org.apache.axis.description.OperationDesc();
80         oper.setName("queryParents");
81         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/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);
82         oper.addParameter(param);
83         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult"));
84         oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class);
85         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn"));
86         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
87         oper.setUse(org.apache.axis.constants.Use.LITERAL);
88         oper.addFault(new org.apache.axis.description.FaultDesc(
89                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
90                       "org.alfresco.example.webservice.repository.RepositoryFault",
91                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
92                       true
93                      ));
94         _operations[3] = oper;
95
96         oper = new org.apache.axis.description.OperationDesc();
97         oper.setName("queryAssociated");
98         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/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);
99         oper.addParameter(param);
100         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "association"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "Association"), org.alfresco.example.webservice.repository.Association[].class, false, false);
101         oper.addParameter(param);
102         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult"));
103         oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class);
104         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn"));
105         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
106         oper.setUse(org.apache.axis.constants.Use.LITERAL);
107         oper.addFault(new org.apache.axis.description.FaultDesc(
108                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
109                       "org.alfresco.example.webservice.repository.RepositoryFault",
110                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
111                       true
112                      ));
113         _operations[4] = oper;
114
115         oper = new org.apache.axis.description.OperationDesc();
116         oper.setName("fetchMore");
117         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "querySession"), 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);
118         oper.addParameter(param);
119         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult"));
120         oper.setReturnClass(org.alfresco.example.webservice.repository.QueryResult.class);
121         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "queryReturn"));
122         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
123         oper.setUse(org.apache.axis.constants.Use.LITERAL);
124         oper.addFault(new org.apache.axis.description.FaultDesc(
125                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
126                       "org.alfresco.example.webservice.repository.RepositoryFault",
127                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
128                       true
129                      ));
130         _operations[5] = oper;
131
132         oper = new org.apache.axis.description.OperationDesc();
133         oper.setName("update");
134         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "statements"), org.apache.axis.description.ParameterDesc.IN, new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "CML"), org.alfresco.example.webservice.types.CML.class, false, false);
135         oper.addParameter(param);
136         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "UpdateResult"));
137         oper.setReturnClass(org.alfresco.example.webservice.repository.UpdateResult.class);
138         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "updateReturn"));
139         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
140         oper.setUse(org.apache.axis.constants.Use.LITERAL);
141         oper.addFault(new org.apache.axis.description.FaultDesc(
142                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
143                       "org.alfresco.example.webservice.repository.RepositoryFault",
144                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
145                       true
146                      ));
147         _operations[6] = oper;
148
149         oper = new org.apache.axis.description.OperationDesc();
150         oper.setName("describe");
151         param = new org.apache.axis.description.ParameterDesc(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/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);
152         oper.addParameter(param);
153         oper.setReturnType(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NodeDefinition"));
154         oper.setReturnClass(org.alfresco.example.webservice.types.NodeDefinition[].class);
155         oper.setReturnQName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "describeReturn"));
156         oper.setStyle(org.apache.axis.constants.Style.WRAPPED);
157         oper.setUse(org.apache.axis.constants.Use.LITERAL);
158         oper.addFault(new org.apache.axis.description.FaultDesc(
159                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
160                       "org.alfresco.example.webservice.repository.RepositoryFault",
161                       new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault"),
162                       true
163                      ));
164         _operations[7] = oper;
165
166     }
167
168     public RepositoryServiceSoapBindingStub() throws org.apache.axis.AxisFault {
169          this(null);
170     }
171
172     public RepositoryServiceSoapBindingStub(java.net.URL JavaDoc endpointURL, javax.xml.rpc.Service JavaDoc service) throws org.apache.axis.AxisFault {
173          this(service);
174          super.cachedEndpoint = endpointURL;
175     }
176
177     public RepositoryServiceSoapBindingStub(javax.xml.rpc.Service JavaDoc service) throws org.apache.axis.AxisFault {
178         if (service == null) {
179             super.service = new org.apache.axis.client.Service();
180         } else {
181             super.service = service;
182         }
183         ((org.apache.axis.client.Service)super.service).setTypeMappingVersion("1.2");
184             java.lang.Class JavaDoc cls;
185             javax.xml.namespace.QName JavaDoc qName;
186             javax.xml.namespace.QName JavaDoc qName2;
187             java.lang.Class JavaDoc beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
188             java.lang.Class JavaDoc beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
189             java.lang.Class JavaDoc enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
190             java.lang.Class JavaDoc enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
191             java.lang.Class JavaDoc arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
192             java.lang.Class JavaDoc arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
193             java.lang.Class JavaDoc simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
194             java.lang.Class JavaDoc simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
195             java.lang.Class JavaDoc simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
196             java.lang.Class JavaDoc simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
197             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>addAspect");
198             cachedSerQNames.add(qName);
199             cls = org.alfresco.example.webservice.types.CMLAddAspect.class;
200             cachedSerClasses.add(cls);
201             cachedSerFactories.add(beansf);
202             cachedDeserFactories.add(beandf);
203
204             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>addChild");
205             cachedSerQNames.add(qName);
206             cls = org.alfresco.example.webservice.types.CMLAddChild.class;
207             cachedSerClasses.add(cls);
208             cachedSerFactories.add(beansf);
209             cachedDeserFactories.add(beandf);
210
211             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>copy");
212             cachedSerQNames.add(qName);
213             cls = org.alfresco.example.webservice.types.CMLCopy.class;
214             cachedSerClasses.add(cls);
215             cachedSerFactories.add(beansf);
216             cachedDeserFactories.add(beandf);
217
218             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>create");
219             cachedSerQNames.add(qName);
220             cls = org.alfresco.example.webservice.types.CMLCreate.class;
221             cachedSerClasses.add(cls);
222             cachedSerFactories.add(beansf);
223             cachedDeserFactories.add(beandf);
224
225             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>createAssociation");
226             cachedSerQNames.add(qName);
227             cls = org.alfresco.example.webservice.types.CMLCreateAssociation.class;
228             cachedSerClasses.add(cls);
229             cachedSerFactories.add(beansf);
230             cachedDeserFactories.add(beandf);
231
232             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>delete");
233             cachedSerQNames.add(qName);
234             cls = org.alfresco.example.webservice.types.CMLDelete.class;
235             cachedSerClasses.add(cls);
236             cachedSerFactories.add(beansf);
237             cachedDeserFactories.add(beandf);
238
239             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>move");
240             cachedSerQNames.add(qName);
241             cls = org.alfresco.example.webservice.types.CMLMove.class;
242             cachedSerClasses.add(cls);
243             cachedSerFactories.add(beansf);
244             cachedDeserFactories.add(beandf);
245
246             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>removeAssociation");
247             cachedSerQNames.add(qName);
248             cls = org.alfresco.example.webservice.types.CMLRemoveAssociation.class;
249             cachedSerClasses.add(cls);
250             cachedSerFactories.add(beansf);
251             cachedDeserFactories.add(beandf);
252
253             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>removeChild");
254             cachedSerQNames.add(qName);
255             cls = org.alfresco.example.webservice.types.CMLRemoveChild.class;
256             cachedSerClasses.add(cls);
257             cachedSerFactories.add(beansf);
258             cachedDeserFactories.add(beandf);
259
260             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", ">CML>update");
261             cachedSerQNames.add(qName);
262             cls = org.alfresco.example.webservice.types.CMLUpdate.class;
263             cachedSerClasses.add(cls);
264             cachedSerFactories.add(beansf);
265             cachedDeserFactories.add(beandf);
266
267             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/cml/1.0", "CML");
268             cachedSerQNames.add(qName);
269             cls = org.alfresco.example.webservice.types.CML.class;
270             cachedSerClasses.add(cls);
271             cachedSerFactories.add(beansf);
272             cachedDeserFactories.add(beandf);
273
274             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", ">NamespaceConfiguration>mapping");
275             cachedSerQNames.add(qName);
276             cls = org.alfresco.example.webservice.types.NamespaceConfigurationMapping.class;
277             cachedSerClasses.add(cls);
278             cachedSerFactories.add(beansf);
279             cachedDeserFactories.add(beandf);
280
281             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", "LocaleConfiguration");
282             cachedSerQNames.add(qName);
283             cls = org.alfresco.example.webservice.types.LocaleConfiguration.class;
284             cachedSerClasses.add(cls);
285             cachedSerFactories.add(beansf);
286             cachedDeserFactories.add(beandf);
287
288             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", "NamespaceConfiguration");
289             cachedSerQNames.add(qName);
290             cls = org.alfresco.example.webservice.types.NamespaceConfigurationMapping[].class;
291             cachedSerClasses.add(cls);
292             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", ">NamespaceConfiguration>mapping");
293             qName2 = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", "mapping");
294             cachedSerFactories.add(new org.apache.axis.encoding.ser.ArraySerializerFactory(qName, qName2));
295             cachedDeserFactories.add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
296
297             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/headers/1.0", "QueryConfiguration");
298             cachedSerQNames.add(qName);
299             cls = org.alfresco.example.webservice.types.QueryConfiguration.class;
300             cachedSerClasses.add(cls);
301             cachedSerFactories.add(beansf);
302             cachedDeserFactories.add(beandf);
303
304             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ContentFormat>encoding");
305             cachedSerQNames.add(qName);
306             cls = java.lang.String JavaDoc.class;
307             cachedSerClasses.add(cls);
308             cachedSerFactories.add(simplesf);
309             cachedDeserFactories.add(simpledf);
310
311             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ContentFormat>mimetype");
312             cachedSerQNames.add(qName);
313             cls = java.lang.String JavaDoc.class;
314             cachedSerClasses.add(cls);
315             cachedSerFactories.add(simplesf);
316             cachedDeserFactories.add(simpledf);
317
318             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">ResultSetRow>node");
319             cachedSerQNames.add(qName);
320             cls = org.alfresco.example.webservice.types.ResultSetRowNode.class;
321             cachedSerClasses.add(cls);
322             cachedSerFactories.add(beansf);
323             cachedDeserFactories.add(beandf);
324
325             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", ">Store>address");
326             cachedSerQNames.add(qName);
327             cls = java.lang.String JavaDoc.class;
328             cachedSerClasses.add(cls);
329             cachedSerFactories.add(simplesf);
330             cachedDeserFactories.add(simpledf);
331
332             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "AssociationDefinition");
333             cachedSerQNames.add(qName);
334             cls = org.alfresco.example.webservice.types.AssociationDefinition.class;
335             cachedSerClasses.add(cls);
336             cachedSerFactories.add(beansf);
337             cachedDeserFactories.add(beandf);
338
339             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Cardinality");
340             cachedSerQNames.add(qName);
341             cls = org.alfresco.example.webservice.types.Cardinality.class;
342             cachedSerClasses.add(cls);
343             cachedSerFactories.add(enumsf);
344             cachedDeserFactories.add(enumdf);
345
346             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Category");
347             cachedSerQNames.add(qName);
348             cls = org.alfresco.example.webservice.types.Category.class;
349             cachedSerClasses.add(cls);
350             cachedSerFactories.add(beansf);
351             cachedDeserFactories.add(beandf);
352
353             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ClassDefinition");
354             cachedSerQNames.add(qName);
355             cls = org.alfresco.example.webservice.types.ClassDefinition.class;
356             cachedSerClasses.add(cls);
357             cachedSerFactories.add(beansf);
358             cachedDeserFactories.add(beandf);
359
360             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Classification");
361             cachedSerQNames.add(qName);
362             cls = org.alfresco.example.webservice.types.Classification.class;
363             cachedSerClasses.add(cls);
364             cachedSerFactories.add(beansf);
365             cachedDeserFactories.add(beandf);
366
367             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Content");
368             cachedSerQNames.add(qName);
369             cls = org.alfresco.example.webservice.types.Content.class;
370             cachedSerClasses.add(cls);
371             cachedSerFactories.add(beansf);
372             cachedDeserFactories.add(beandf);
373
374             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ContentFormat");
375             cachedSerQNames.add(qName);
376             cls = org.alfresco.example.webservice.types.ContentFormat.class;
377             cachedSerClasses.add(cls);
378             cachedSerFactories.add(beansf);
379             cachedDeserFactories.add(beandf);
380
381             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Name");
382             cachedSerQNames.add(qName);
383             cls = java.lang.String JavaDoc.class;
384             cachedSerClasses.add(cls);
385             cachedSerFactories.add(simplesf);
386             cachedDeserFactories.add(simpledf);
387
388             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NamedValue");
389             cachedSerQNames.add(qName);
390             cls = org.alfresco.example.webservice.types.NamedValue.class;
391             cachedSerClasses.add(cls);
392             cachedSerFactories.add(beansf);
393             cachedDeserFactories.add(beandf);
394
395             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Node");
396             cachedSerQNames.add(qName);
397             cls = org.alfresco.example.webservice.types.Node.class;
398             cachedSerClasses.add(cls);
399             cachedSerFactories.add(beansf);
400             cachedDeserFactories.add(beandf);
401
402             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "NodeDefinition");
403             cachedSerQNames.add(qName);
404             cls = org.alfresco.example.webservice.types.NodeDefinition.class;
405             cachedSerClasses.add(cls);
406             cachedSerFactories.add(beansf);
407             cachedDeserFactories.add(beandf);
408
409             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ParentReference");
410             cachedSerQNames.add(qName);
411             cls = org.alfresco.example.webservice.types.ParentReference.class;
412             cachedSerClasses.add(cls);
413             cachedSerFactories.add(beansf);
414             cachedDeserFactories.add(beandf);
415
416             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Path");
417             cachedSerQNames.add(qName);
418             cls = java.lang.String JavaDoc.class;
419             cachedSerClasses.add(cls);
420             cachedSerFactories.add(simplesf);
421             cachedDeserFactories.add(simpledf);
422
423             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Predicate");
424             cachedSerQNames.add(qName);
425             cls = org.alfresco.example.webservice.types.Predicate.class;
426             cachedSerClasses.add(cls);
427             cachedSerFactories.add(beansf);
428             cachedDeserFactories.add(beandf);
429
430             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "PropertyDefinition");
431             cachedSerQNames.add(qName);
432             cls = org.alfresco.example.webservice.types.PropertyDefinition.class;
433             cachedSerClasses.add(cls);
434             cachedSerFactories.add(beansf);
435             cachedDeserFactories.add(beandf);
436
437             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Query");
438             cachedSerQNames.add(qName);
439             cls = org.alfresco.example.webservice.types.Query.class;
440             cachedSerClasses.add(cls);
441             cachedSerFactories.add(beansf);
442             cachedDeserFactories.add(beandf);
443
444             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "QueryLanguageEnum");
445             cachedSerQNames.add(qName);
446             cls = org.alfresco.example.webservice.types.QueryLanguageEnum.class;
447             cachedSerClasses.add(cls);
448             cachedSerFactories.add(enumsf);
449             cachedDeserFactories.add(enumdf);
450
451             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Reference");
452             cachedSerQNames.add(qName);
453             cls = org.alfresco.example.webservice.types.Reference.class;
454             cachedSerClasses.add(cls);
455             cachedSerFactories.add(beansf);
456             cachedDeserFactories.add(beandf);
457
458             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSet");
459             cachedSerQNames.add(qName);
460             cls = org.alfresco.example.webservice.types.ResultSet.class;
461             cachedSerClasses.add(cls);
462             cachedSerFactories.add(beansf);
463             cachedDeserFactories.add(beandf);
464
465             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSetMetaData");
466             cachedSerQNames.add(qName);
467             cls = org.alfresco.example.webservice.types.ResultSetMetaData.class;
468             cachedSerClasses.add(cls);
469             cachedSerFactories.add(beansf);
470             cachedDeserFactories.add(beandf);
471
472             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ResultSetRow");
473             cachedSerQNames.add(qName);
474             cls = org.alfresco.example.webservice.types.ResultSetRow.class;
475             cachedSerClasses.add(cls);
476             cachedSerFactories.add(beansf);
477             cachedDeserFactories.add(beandf);
478
479             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "RoleDefinition");
480             cachedSerQNames.add(qName);
481             cls = org.alfresco.example.webservice.types.RoleDefinition.class;
482             cachedSerClasses.add(cls);
483             cachedSerFactories.add(beansf);
484             cachedDeserFactories.add(beandf);
485
486             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Store");
487             cachedSerQNames.add(qName);
488             cls = org.alfresco.example.webservice.types.Store.class;
489             cachedSerClasses.add(cls);
490             cachedSerFactories.add(beansf);
491             cachedDeserFactories.add(beandf);
492
493             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "StoreEnum");
494             cachedSerQNames.add(qName);
495             cls = org.alfresco.example.webservice.types.StoreEnum.class;
496             cachedSerClasses.add(cls);
497             cachedSerFactories.add(enumsf);
498             cachedDeserFactories.add(enumdf);
499
500             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "UUID");
501             cachedSerQNames.add(qName);
502             cls = java.lang.String JavaDoc.class;
503             cachedSerClasses.add(cls);
504             cachedSerFactories.add(simplesf);
505             cachedDeserFactories.add(simpledf);
506
507             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "ValueDefinition");
508             cachedSerQNames.add(qName);
509             cls = org.alfresco.example.webservice.types.ValueDefinition.class;
510             cachedSerClasses.add(cls);
511             cachedSerFactories.add(beansf);
512             cachedDeserFactories.add(beandf);
513
514             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "Version");
515             cachedSerQNames.add(qName);
516             cls = org.alfresco.example.webservice.types.Version.class;
517             cachedSerClasses.add(cls);
518             cachedSerFactories.add(beansf);
519             cachedDeserFactories.add(beandf);
520
521             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/model/content/1.0", "VersionHistory");
522             cachedSerQNames.add(qName);
523             cls = org.alfresco.example.webservice.types.VersionHistory.class;
524             cachedSerClasses.add(cls);
525             cachedSerFactories.add(beansf);
526             cachedDeserFactories.add(beandf);
527
528             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "Association");
529             cachedSerQNames.add(qName);
530             cls = org.alfresco.example.webservice.repository.Association.class;
531             cachedSerClasses.add(cls);
532             cachedSerFactories.add(beansf);
533             cachedDeserFactories.add(beandf);
534
535             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "AssociationDirectionEnum");
536             cachedSerQNames.add(qName);
537             cls = org.alfresco.example.webservice.repository.AssociationDirectionEnum.class;
538             cachedSerClasses.add(cls);
539             cachedSerFactories.add(enumsf);
540             cachedDeserFactories.add(enumdf);
541
542             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "QueryResult");
543             cachedSerQNames.add(qName);
544             cls = org.alfresco.example.webservice.repository.QueryResult.class;
545             cachedSerClasses.add(cls);
546             cachedSerFactories.add(beansf);
547             cachedDeserFactories.add(beandf);
548
549             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "RepositoryFault");
550             cachedSerQNames.add(qName);
551             cls = org.alfresco.example.webservice.repository.RepositoryFault.class;
552             cachedSerClasses.add(cls);
553             cachedSerFactories.add(beansf);
554             cachedDeserFactories.add(beandf);
555
556             qName = new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "UpdateResult");
557             cachedSerQNames.add(qName);
558             cls = org.alfresco.example.webservice.repository.UpdateResult.class;
559             cachedSerClasses.add(cls);
560             cachedSerFactories.add(beansf);
561             cachedDeserFactories.add(beandf);
562
563     }
564
565     protected org.apache.axis.client.Call createCall() throws java.rmi.RemoteException JavaDoc {
566         try {
567             org.apache.axis.client.Call _call = super._createCall();
568             if (super.maintainSessionSet) {
569                 _call.setMaintainSession(super.maintainSession);
570             }
571             if (super.cachedUsername != null) {
572                 _call.setUsername(super.cachedUsername);
573             }
574             if (super.cachedPassword != null) {
575                 _call.setPassword(super.cachedPassword);
576             }
577             if (super.cachedEndpoint != null) {
578                 _call.setTargetEndpointAddress(super.cachedEndpoint);
579             }
580             if (super.cachedTimeout != null) {
581                 _call.setTimeout(super.cachedTimeout);
582             }
583             if (super.cachedPortName != null) {
584                 _call.setPortName(super.cachedPortName);
585             }
586             java.util.Enumeration JavaDoc keys = super.cachedProperties.keys();
587             while (keys.hasMoreElements()) {
588                 java.lang.String JavaDoc key = (java.lang.String JavaDoc) keys.nextElement();
589                 _call.setProperty(key, super.cachedProperties.get(key));
590             }
591             // All the type mapping information is registered
592
// when the first call is made.
593
// The type mapping information is actually registered in
594
// the TypeMappingRegistry of the service, which
595
// is the reason why registration is only needed for the first call.
596
synchronized (this) {
597                 if (firstCall()) {
598                     // must set encoding style before registering serializers
599
_call.setEncodingStyle(null);
600                     for (int i = 0; i < cachedSerFactories.size(); ++i) {
601                         java.lang.Class JavaDoc cls = (java.lang.Class JavaDoc) cachedSerClasses.get(i);
602                         javax.xml.namespace.QName JavaDoc qName =
603                                 (javax.xml.namespace.QName JavaDoc) cachedSerQNames.get(i);
604                         java.lang.Object JavaDoc x = cachedSerFactories.get(i);
605                         if (x instanceof Class JavaDoc) {
606                             java.lang.Class JavaDoc sf = (java.lang.Class JavaDoc)
607                                  cachedSerFactories.get(i);
608                             java.lang.Class JavaDoc df = (java.lang.Class JavaDoc)
609                                  cachedDeserFactories.get(i);
610                             _call.registerTypeMapping(cls, qName, sf, df, false);
611                         }
612                         else if (x instanceof javax.xml.rpc.encoding.SerializerFactory JavaDoc) {
613                             org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory)
614                                  cachedSerFactories.get(i);
615                             org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory)
616                                  cachedDeserFactories.get(i);
617                             _call.registerTypeMapping(cls, qName, sf, df, false);
618                         }
619                     }
620                 }
621             }
622             return _call;
623         }
624         catch (java.lang.Throwable JavaDoc _t) {
625             throw new org.apache.axis.AxisFault("Failure trying to get the Call object", _t);
626         }
627     }
628
629
630     /**
631      * Retrieves a list of stores where content resources are held.
632      */

633     public org.alfresco.example.webservice.types.Store[] getStores() throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.repository.RepositoryFault {
634         if (super.cachedEndpoint == null) {
635             throw new org.apache.axis.NoEndPointException();
636         }
637         org.apache.axis.client.Call _call = createCall();
638         _call.setOperation(_operations[0]);
639         _call.setUseSOAPAction(true);
640         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/getStores");
641         _call.setEncodingStyle(null);
642         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
643         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
644         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
645         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "getStores"));
646
647         setRequestHeaders(_call);
648         setAttachments(_call);
649  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {});
650
651         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
652             throw (java.rmi.RemoteException JavaDoc)_resp;
653         }
654         else {
655             extractAttachments(_call);
656             try {
657                 return (org.alfresco.example.webservice.types.Store[]) _resp;
658             } catch (java.lang.Exception JavaDoc _exception) {
659                 return (org.alfresco.example.webservice.types.Store[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.Store[].class);
660             }
661         }
662   } catch (org.apache.axis.AxisFault axisFaultException) {
663     if (axisFaultException.detail != null) {
664         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
665               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
666          }
667         if (axisFaultException.detail instanceof org.alfresco.example.webservice.repository.RepositoryFault) {
668               throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail;
669          }
670    }
671   throw axisFaultException;
672 }
673     }
674
675
676     /**
677      * Executes a query against a store
678      */

679     public org.alfresco.example.webservice.repository.QueryResult query(org.alfresco.example.webservice.types.Store store, org.alfresco.example.webservice.types.Query query, boolean includeMetaData) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.repository.RepositoryFault {
680         if (super.cachedEndpoint == null) {
681             throw new org.apache.axis.NoEndPointException();
682         }
683         org.apache.axis.client.Call _call = createCall();
684         _call.setOperation(_operations[1]);
685         _call.setUseSOAPAction(true);
686         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/query");
687         _call.setEncodingStyle(null);
688         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
689         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
690         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
691         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "query"));
692
693         setRequestHeaders(_call);
694         setAttachments(_call);
695  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {store, query, new java.lang.Boolean JavaDoc(includeMetaData)});
696
697         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
698             throw (java.rmi.RemoteException JavaDoc)_resp;
699         }
700         else {
701             extractAttachments(_call);
702             try {
703                 return (org.alfresco.example.webservice.repository.QueryResult) _resp;
704             } catch (java.lang.Exception JavaDoc _exception) {
705                 return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.class);
706             }
707         }
708   } catch (org.apache.axis.AxisFault axisFaultException) {
709     if (axisFaultException.detail != null) {
710         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
711               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
712          }
713         if (axisFaultException.detail instanceof org.alfresco.example.webservice.repository.RepositoryFault) {
714               throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail;
715          }
716    }
717   throw axisFaultException;
718 }
719     }
720
721
722     /**
723      * Executes a query to retrieve the children of the specified
724      * resource.
725      */

726     public org.alfresco.example.webservice.repository.QueryResult queryChildren(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.repository.RepositoryFault {
727         if (super.cachedEndpoint == null) {
728             throw new org.apache.axis.NoEndPointException();
729         }
730         org.apache.axis.client.Call _call = createCall();
731         _call.setOperation(_operations[2]);
732         _call.setUseSOAPAction(true);
733         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/queryChildren");
734         _call.setEncodingStyle(null);
735         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
736         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
737         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
738         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "queryChildren"));
739
740         setRequestHeaders(_call);
741         setAttachments(_call);
742  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {node});
743
744         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
745             throw (java.rmi.RemoteException JavaDoc)_resp;
746         }
747         else {
748             extractAttachments(_call);
749             try {
750                 return (org.alfresco.example.webservice.repository.QueryResult) _resp;
751             } catch (java.lang.Exception JavaDoc _exception) {
752                 return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.class);
753             }
754         }
755   } catch (org.apache.axis.AxisFault axisFaultException) {
756     if (axisFaultException.detail != null) {
757         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
758               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
759          }
760         if (axisFaultException.detail instanceof org.alfresco.example.webservice.repository.RepositoryFault) {
761               throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail;
762          }
763    }
764   throw axisFaultException;
765 }
766     }
767
768
769     /**
770      * Executes a query to retrieve the parents of the specified resource.
771      */

772     public org.alfresco.example.webservice.repository.QueryResult queryParents(org.alfresco.example.webservice.types.Reference node) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.repository.RepositoryFault {
773         if (super.cachedEndpoint == null) {
774             throw new org.apache.axis.NoEndPointException();
775         }
776         org.apache.axis.client.Call _call = createCall();
777         _call.setOperation(_operations[3]);
778         _call.setUseSOAPAction(true);
779         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/queryParents");
780         _call.setEncodingStyle(null);
781         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
782         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
783         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
784         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "queryParents"));
785
786         setRequestHeaders(_call);
787         setAttachments(_call);
788  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {node});
789
790         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
791             throw (java.rmi.RemoteException JavaDoc)_resp;
792         }
793         else {
794             extractAttachments(_call);
795             try {
796                 return (org.alfresco.example.webservice.repository.QueryResult) _resp;
797             } catch (java.lang.Exception JavaDoc _exception) {
798                 return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.class);
799             }
800         }
801   } catch (org.apache.axis.AxisFault axisFaultException) {
802     if (axisFaultException.detail != null) {
803         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
804               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
805          }
806         if (axisFaultException.detail instanceof org.alfresco.example.webservice.repository.RepositoryFault) {
807               throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail;
808          }
809    }
810   throw axisFaultException;
811 }
812     }
813
814
815     /**
816      * Executes a query to retrieve associated resources of the specified
817      * resource.
818      */

819     public org.alfresco.example.webservice.repository.QueryResult queryAssociated(org.alfresco.example.webservice.types.Reference node, org.alfresco.example.webservice.repository.Association[] association) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.repository.RepositoryFault {
820         if (super.cachedEndpoint == null) {
821             throw new org.apache.axis.NoEndPointException();
822         }
823         org.apache.axis.client.Call _call = createCall();
824         _call.setOperation(_operations[4]);
825         _call.setUseSOAPAction(true);
826         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/queryAssociated");
827         _call.setEncodingStyle(null);
828         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
829         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
830         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
831         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "queryAssociated"));
832
833         setRequestHeaders(_call);
834         setAttachments(_call);
835  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {node, association});
836
837         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
838             throw (java.rmi.RemoteException JavaDoc)_resp;
839         }
840         else {
841             extractAttachments(_call);
842             try {
843                 return (org.alfresco.example.webservice.repository.QueryResult) _resp;
844             } catch (java.lang.Exception JavaDoc _exception) {
845                 return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.class);
846             }
847         }
848   } catch (org.apache.axis.AxisFault axisFaultException) {
849     if (axisFaultException.detail != null) {
850         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
851               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
852          }
853         if (axisFaultException.detail instanceof org.alfresco.example.webservice.repository.RepositoryFault) {
854               throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail;
855          }
856    }
857   throw axisFaultException;
858 }
859     }
860
861
862     /**
863      * Fetches the next batch of query results.
864      */

865     public org.alfresco.example.webservice.repository.QueryResult fetchMore(java.lang.String JavaDoc querySession) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.repository.RepositoryFault {
866         if (super.cachedEndpoint == null) {
867             throw new org.apache.axis.NoEndPointException();
868         }
869         org.apache.axis.client.Call _call = createCall();
870         _call.setOperation(_operations[5]);
871         _call.setUseSOAPAction(true);
872         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/fetchMore");
873         _call.setEncodingStyle(null);
874         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
875         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
876         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
877         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "fetchMore"));
878
879         setRequestHeaders(_call);
880         setAttachments(_call);
881  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {querySession});
882
883         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
884             throw (java.rmi.RemoteException JavaDoc)_resp;
885         }
886         else {
887             extractAttachments(_call);
888             try {
889                 return (org.alfresco.example.webservice.repository.QueryResult) _resp;
890             } catch (java.lang.Exception JavaDoc _exception) {
891                 return (org.alfresco.example.webservice.repository.QueryResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.QueryResult.class);
892             }
893         }
894   } catch (org.apache.axis.AxisFault axisFaultException) {
895     if (axisFaultException.detail != null) {
896         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
897               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
898          }
899         if (axisFaultException.detail instanceof org.alfresco.example.webservice.repository.RepositoryFault) {
900               throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail;
901          }
902    }
903   throw axisFaultException;
904 }
905     }
906
907
908     /**
909      * Executes a CML script to manipulate the contents of a Repository
910      * store.
911      */

912     public org.alfresco.example.webservice.repository.UpdateResult update(org.alfresco.example.webservice.types.CML statements) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.repository.RepositoryFault {
913         if (super.cachedEndpoint == null) {
914             throw new org.apache.axis.NoEndPointException();
915         }
916         org.apache.axis.client.Call _call = createCall();
917         _call.setOperation(_operations[6]);
918         _call.setUseSOAPAction(true);
919         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/update");
920         _call.setEncodingStyle(null);
921         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
922         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
923         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
924         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "update"));
925
926         setRequestHeaders(_call);
927         setAttachments(_call);
928  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {statements});
929
930         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
931             throw (java.rmi.RemoteException JavaDoc)_resp;
932         }
933         else {
934             extractAttachments(_call);
935             try {
936                 return (org.alfresco.example.webservice.repository.UpdateResult) _resp;
937             } catch (java.lang.Exception JavaDoc _exception) {
938                 return (org.alfresco.example.webservice.repository.UpdateResult) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.repository.UpdateResult.class);
939             }
940         }
941   } catch (org.apache.axis.AxisFault axisFaultException) {
942     if (axisFaultException.detail != null) {
943         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
944               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
945          }
946         if (axisFaultException.detail instanceof org.alfresco.example.webservice.repository.RepositoryFault) {
947               throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail;
948          }
949    }
950   throw axisFaultException;
951 }
952     }
953
954
955     /**
956      * Describes a content resource.
957      */

958     public org.alfresco.example.webservice.types.NodeDefinition[] describe(org.alfresco.example.webservice.types.Predicate items) throws java.rmi.RemoteException JavaDoc, org.alfresco.example.webservice.repository.RepositoryFault {
959         if (super.cachedEndpoint == null) {
960             throw new org.apache.axis.NoEndPointException();
961         }
962         org.apache.axis.client.Call _call = createCall();
963         _call.setOperation(_operations[7]);
964         _call.setUseSOAPAction(true);
965         _call.setSOAPActionURI("http://www.alfresco.org/ws/service/repository/1.0/describe");
966         _call.setEncodingStyle(null);
967         _call.setProperty(org.apache.axis.client.Call.SEND_TYPE_ATTR, Boolean.FALSE);
968         _call.setProperty(org.apache.axis.AxisEngine.PROP_DOMULTIREFS, Boolean.FALSE);
969         _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
970         _call.setOperationName(new javax.xml.namespace.QName JavaDoc("http://www.alfresco.org/ws/service/repository/1.0", "describe"));
971
972         setRequestHeaders(_call);
973         setAttachments(_call);
974  try { java.lang.Object JavaDoc _resp = _call.invoke(new java.lang.Object JavaDoc[] {items});
975
976         if (_resp instanceof java.rmi.RemoteException JavaDoc) {
977             throw (java.rmi.RemoteException JavaDoc)_resp;
978         }
979         else {
980             extractAttachments(_call);
981             try {
982                 return (org.alfresco.example.webservice.types.NodeDefinition[]) _resp;
983             } catch (java.lang.Exception JavaDoc _exception) {
984                 return (org.alfresco.example.webservice.types.NodeDefinition[]) org.apache.axis.utils.JavaUtils.convert(_resp, org.alfresco.example.webservice.types.NodeDefinition[].class);
985             }
986         }
987   } catch (org.apache.axis.AxisFault axisFaultException) {
988     if (axisFaultException.detail != null) {
989         if (axisFaultException.detail instanceof java.rmi.RemoteException JavaDoc) {
990               throw (java.rmi.RemoteException JavaDoc) axisFaultException.detail;
991          }
992         if (axisFaultException.detail instanceof org.alfresco.example.webservice.repository.RepositoryFault) {
993               throw (org.alfresco.example.webservice.repository.RepositoryFault) axisFaultException.detail;
994          }
995    }
996   throw axisFaultException;
997 }
998     }
999
1000}
1001
Popular Tags