001: /**
002: * XflowServiceSoapBindingStub.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package localhost;
007:
008: import XflowService.*;
009:
010: public class XflowServiceSoapBindingStub extends
011: org.apache.axis.client.Stub implements localhost.XflowService {
012: private java.util.Vector cachedSerClasses = new java.util.Vector();
013: private java.util.Vector cachedSerQNames = new java.util.Vector();
014: private java.util.Vector cachedSerFactories = new java.util.Vector();
015: private java.util.Vector cachedDeserFactories = new java.util.Vector();
016:
017: public XflowServiceSoapBindingStub()
018: throws org.apache.axis.AxisFault {
019: this (null);
020: }
021:
022: public XflowServiceSoapBindingStub(java.net.URL endpointURL,
023: javax.xml.rpc.Service service)
024: throws org.apache.axis.AxisFault {
025: this (service);
026: super .cachedEndpoint = endpointURL;
027: }
028:
029: public XflowServiceSoapBindingStub(javax.xml.rpc.Service service)
030: throws org.apache.axis.AxisFault {
031: if (service == null) {
032: super .service = new org.apache.axis.client.Service();
033: } else {
034: super .service = service;
035: }
036: java.lang.Class cls;
037: javax.xml.namespace.QName qName;
038: java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
039: java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
040: java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
041: java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
042: java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
043: java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
044: java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
045: java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
046: qName = new javax.xml.namespace.QName("urn:XflowService",
047: "WorkItemId");
048: cachedSerQNames.add(qName);
049: cls = WorkItemId.class;
050: cachedSerClasses.add(cls);
051: cachedSerFactories.add(beansf);
052: cachedDeserFactories.add(beandf);
053:
054: qName = new javax.xml.namespace.QName("urn:XflowService",
055: "WorkItem");
056: cachedSerQNames.add(qName);
057: cls = WorkItem.class;
058: cachedSerClasses.add(cls);
059: cachedSerFactories.add(beansf);
060: cachedDeserFactories.add(beandf);
061:
062: qName = new javax.xml.namespace.QName("urn:XflowService",
063: "User");
064: cachedSerQNames.add(qName);
065: cls = User.class;
066: cachedSerClasses.add(cls);
067: cachedSerFactories.add(beansf);
068: cachedDeserFactories.add(beandf);
069:
070: qName = new javax.xml.namespace.QName(
071: "http://xml.apache.org/xml-soap", "Map>item");
072: cachedSerQNames.add(qName);
073: cls = org.apache.xml.Item.class;
074: cachedSerClasses.add(cls);
075: cachedSerFactories.add(beansf);
076: cachedDeserFactories.add(beandf);
077:
078: qName = new javax.xml.namespace.QName("urn:XflowService",
079: "WorkflowId");
080: cachedSerQNames.add(qName);
081: cls = WorkflowId.class;
082: cachedSerClasses.add(cls);
083: cachedSerFactories.add(beansf);
084: cachedDeserFactories.add(beandf);
085:
086: qName = new javax.xml.namespace.QName("urn:XflowService",
087: "ProcessState");
088: cachedSerQNames.add(qName);
089: cls = ProcessState.class;
090: cachedSerClasses.add(cls);
091: cachedSerFactories.add(beansf);
092: cachedDeserFactories.add(beandf);
093:
094: qName = new javax.xml.namespace.QName("urn:XflowService",
095: "WorkflowState");
096: cachedSerQNames.add(qName);
097: cls = WorkflowState.class;
098: cachedSerClasses.add(cls);
099: cachedSerFactories.add(beansf);
100: cachedDeserFactories.add(beandf);
101:
102: }
103:
104: private org.apache.axis.client.Call createCall()
105: throws java.rmi.RemoteException {
106: try {
107: org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super .service
108: .createCall();
109: if (super .maintainSessionSet) {
110: _call.setMaintainSession(super .maintainSession);
111: }
112: if (super .cachedUsername != null) {
113: _call.setUsername(super .cachedUsername);
114: }
115: if (super .cachedPassword != null) {
116: _call.setPassword(super .cachedPassword);
117: }
118: if (super .cachedEndpoint != null) {
119: _call.setTargetEndpointAddress(super .cachedEndpoint);
120: }
121: if (super .cachedTimeout != null) {
122: _call.setTimeout(super .cachedTimeout);
123: }
124: if (super .cachedPortName != null) {
125: _call.setPortName(super .cachedPortName);
126: }
127: java.util.Enumeration keys = super .cachedProperties.keys();
128: while (keys.hasMoreElements()) {
129: java.lang.String key = (java.lang.String) keys
130: .nextElement();
131: if (_call.isPropertySupported(key))
132: _call.setProperty(key, super .cachedProperties
133: .get(key));
134: else
135: _call.setScopedProperty(key, super .cachedProperties
136: .get(key));
137: }
138: // All the type mapping information is registered
139: // when the first call is made.
140: // The type mapping information is actually registered in
141: // the TypeMappingRegistry of the service, which
142: // is the reason why registration is only needed for the first call.
143: synchronized (this ) {
144: if (firstCall()) {
145: // must set encoding style before registering serializers
146: _call
147: .setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
148: for (int i = 0; i < cachedSerFactories.size(); ++i) {
149: java.lang.Class cls = (java.lang.Class) cachedSerClasses
150: .get(i);
151: javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
152: .get(i);
153: java.lang.Class sf = (java.lang.Class) cachedSerFactories
154: .get(i);
155: java.lang.Class df = (java.lang.Class) cachedDeserFactories
156: .get(i);
157: _call.registerTypeMapping(cls, qName, sf, df,
158: false);
159: }
160: }
161: }
162: return _call;
163: } catch (java.lang.Throwable t) {
164: throw new org.apache.axis.AxisFault(
165: "Failure trying to get the Call object", t);
166: }
167: }
168:
169: public java.lang.Object getVariable(int workflowId,
170: java.lang.String variableName, User user)
171: throws java.rmi.RemoteException {
172: if (super .cachedEndpoint == null) {
173: throw new org.apache.axis.NoEndPointException();
174: }
175: org.apache.axis.client.Call _call = createCall();
176: _call.addParameter(new javax.xml.namespace.QName("",
177: "workflowId"), new javax.xml.namespace.QName(
178: "http://www.w3.org/2001/XMLSchema", "int"), int.class,
179: javax.xml.rpc.ParameterMode.IN);
180: _call.addParameter(new javax.xml.namespace.QName("",
181: "variableName"), new javax.xml.namespace.QName(
182: "http://www.w3.org/2001/XMLSchema", "string"),
183: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
184: _call.addParameter(new javax.xml.namespace.QName("", "user"),
185: new javax.xml.namespace.QName("urn:XflowService",
186: "User"), User.class,
187: javax.xml.rpc.ParameterMode.IN);
188: _call.setReturnType(new javax.xml.namespace.QName(
189: "http://www.w3.org/2001/XMLSchema", "anyType"),
190: java.lang.Object.class);
191: _call.setUseSOAPAction(true);
192: _call.setSOAPActionURI("");
193: _call.setOperationStyle("rpc");
194: _call.setOperationName(new javax.xml.namespace.QName(
195: "http://localhost:8080/axis/services/XflowService",
196: "getVariable"));
197:
198: java.lang.Object _resp = _call
199: .invoke(new java.lang.Object[] {
200: new java.lang.Integer(workflowId),
201: variableName, user });
202:
203: if (_resp instanceof java.rmi.RemoteException) {
204: throw (java.rmi.RemoteException) _resp;
205: } else {
206: try {
207: return (java.lang.Object) _resp;
208: } catch (java.lang.Exception _exception) {
209: return (java.lang.Object) org.apache.axis.utils.JavaUtils
210: .convert(_resp, java.lang.Object.class);
211: }
212: }
213: }
214:
215: public void setVariable(int workflowId,
216: java.lang.String variableName,
217: java.lang.Object variableValue, User user)
218: throws java.rmi.RemoteException {
219: if (super .cachedEndpoint == null) {
220: throw new org.apache.axis.NoEndPointException();
221: }
222: org.apache.axis.client.Call _call = createCall();
223: _call.addParameter(new javax.xml.namespace.QName("",
224: "workflowId"), new javax.xml.namespace.QName(
225: "http://www.w3.org/2001/XMLSchema", "int"), int.class,
226: javax.xml.rpc.ParameterMode.IN);
227: _call.addParameter(new javax.xml.namespace.QName("",
228: "variableName"), new javax.xml.namespace.QName(
229: "http://www.w3.org/2001/XMLSchema", "string"),
230: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
231: _call.addParameter(new javax.xml.namespace.QName("",
232: "variableValue"), new javax.xml.namespace.QName(
233: "http://www.w3.org/2001/XMLSchema", "anyType"),
234: java.lang.Object.class, javax.xml.rpc.ParameterMode.IN);
235: _call.addParameter(new javax.xml.namespace.QName("", "user"),
236: new javax.xml.namespace.QName("urn:XflowService",
237: "User"), User.class,
238: javax.xml.rpc.ParameterMode.IN);
239: _call.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
240: _call.setUseSOAPAction(true);
241: _call.setSOAPActionURI("");
242: _call.setOperationStyle("rpc");
243: _call.setOperationName(new javax.xml.namespace.QName(
244: "http://localhost:8080/axis/services/XflowService",
245: "setVariable"));
246:
247: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
248: new java.lang.Integer(workflowId), variableName,
249: variableValue, user });
250:
251: if (_resp instanceof java.rmi.RemoteException) {
252: throw (java.rmi.RemoteException) _resp;
253: }
254: }
255:
256: public void deployModel(java.lang.String xml,
257: java.lang.String type, User user)
258: throws java.rmi.RemoteException {
259: if (super .cachedEndpoint == null) {
260: throw new org.apache.axis.NoEndPointException();
261: }
262: org.apache.axis.client.Call _call = createCall();
263: _call.addParameter(new javax.xml.namespace.QName("", "xml"),
264: new javax.xml.namespace.QName(
265: "http://www.w3.org/2001/XMLSchema", "string"),
266: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
267: _call.addParameter(new javax.xml.namespace.QName("", "type"),
268: new javax.xml.namespace.QName(
269: "http://www.w3.org/2001/XMLSchema", "string"),
270: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
271: _call.addParameter(new javax.xml.namespace.QName("", "user"),
272: new javax.xml.namespace.QName("urn:XflowService",
273: "User"), User.class,
274: javax.xml.rpc.ParameterMode.IN);
275: _call.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
276: _call.setUseSOAPAction(true);
277: _call.setSOAPActionURI("");
278: _call.setOperationStyle("rpc");
279: _call.setOperationName(new javax.xml.namespace.QName(
280: "http://localhost:8080/axis/services/XflowService",
281: "deployModel"));
282:
283: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
284: xml, type, user });
285:
286: if (_resp instanceof java.rmi.RemoteException) {
287: throw (java.rmi.RemoteException) _resp;
288: }
289: }
290:
291: public WorkflowId startWorkflow(java.lang.String workflowName,
292: int version, WorkItem witem, User user)
293: throws java.rmi.RemoteException {
294: if (super .cachedEndpoint == null) {
295: throw new org.apache.axis.NoEndPointException();
296: }
297: org.apache.axis.client.Call _call = createCall();
298: _call.addParameter(new javax.xml.namespace.QName("",
299: "workflowName"), new javax.xml.namespace.QName(
300: "http://www.w3.org/2001/XMLSchema", "string"),
301: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
302: _call.addParameter(
303: new javax.xml.namespace.QName("", "version"),
304: new javax.xml.namespace.QName(
305: "http://www.w3.org/2001/XMLSchema", "int"),
306: int.class, javax.xml.rpc.ParameterMode.IN);
307: _call.addParameter(new javax.xml.namespace.QName("", "witem"),
308: new javax.xml.namespace.QName("urn:XflowService",
309: "WorkItem"), WorkItem.class,
310: javax.xml.rpc.ParameterMode.IN);
311: _call.addParameter(new javax.xml.namespace.QName("", "user"),
312: new javax.xml.namespace.QName("urn:XflowService",
313: "User"), User.class,
314: javax.xml.rpc.ParameterMode.IN);
315: _call.setReturnType(new javax.xml.namespace.QName(
316: "urn:XflowService", "WorkflowId"), WorkflowId.class);
317: _call.setUseSOAPAction(true);
318: _call.setSOAPActionURI("");
319: _call.setOperationStyle("rpc");
320: _call.setOperationName(new javax.xml.namespace.QName(
321: "http://localhost:8080/axis/services/XflowService",
322: "startWorkflow"));
323:
324: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
325: workflowName, new java.lang.Integer(version), witem,
326: user });
327:
328: if (_resp instanceof java.rmi.RemoteException) {
329: throw (java.rmi.RemoteException) _resp;
330: } else {
331: try {
332: return (WorkflowId) _resp;
333: } catch (java.lang.Exception _exception) {
334: return (WorkflowId) org.apache.axis.utils.JavaUtils
335: .convert(_resp, WorkflowId.class);
336: }
337: }
338: }
339:
340: public void abortWorkflow(int workflowId, User user)
341: throws java.rmi.RemoteException {
342: if (super .cachedEndpoint == null) {
343: throw new org.apache.axis.NoEndPointException();
344: }
345: org.apache.axis.client.Call _call = createCall();
346: _call.addParameter(new javax.xml.namespace.QName("",
347: "workflowId"), new javax.xml.namespace.QName(
348: "http://www.w3.org/2001/XMLSchema", "int"), int.class,
349: javax.xml.rpc.ParameterMode.IN);
350: _call.addParameter(new javax.xml.namespace.QName("", "user"),
351: new javax.xml.namespace.QName("urn:XflowService",
352: "User"), User.class,
353: javax.xml.rpc.ParameterMode.IN);
354: _call.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
355: _call.setUseSOAPAction(true);
356: _call.setSOAPActionURI("");
357: _call.setOperationStyle("rpc");
358: _call.setOperationName(new javax.xml.namespace.QName(
359: "http://localhost:8080/axis/services/XflowService",
360: "abortWorkflow"));
361:
362: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
363: new java.lang.Integer(workflowId), user });
364:
365: if (_resp instanceof java.rmi.RemoteException) {
366: throw (java.rmi.RemoteException) _resp;
367: }
368: }
369:
370: public WorkflowState getWorkflowState(int workflowId, User user)
371: throws java.rmi.RemoteException {
372: if (super .cachedEndpoint == null) {
373: throw new org.apache.axis.NoEndPointException();
374: }
375: org.apache.axis.client.Call _call = createCall();
376: _call.addParameter(new javax.xml.namespace.QName("",
377: "workflowId"), new javax.xml.namespace.QName(
378: "http://www.w3.org/2001/XMLSchema", "int"), int.class,
379: javax.xml.rpc.ParameterMode.IN);
380: _call.addParameter(new javax.xml.namespace.QName("", "user"),
381: new javax.xml.namespace.QName("urn:XflowService",
382: "User"), User.class,
383: javax.xml.rpc.ParameterMode.IN);
384: _call.setReturnType(new javax.xml.namespace.QName(
385: "urn:XflowService", "WorkflowState"),
386: WorkflowState.class);
387: _call.setUseSOAPAction(true);
388: _call.setSOAPActionURI("");
389: _call.setOperationStyle("rpc");
390: _call.setOperationName(new javax.xml.namespace.QName(
391: "http://localhost:8080/axis/services/XflowService",
392: "getWorkflowState"));
393:
394: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
395: new java.lang.Integer(workflowId), user });
396:
397: if (_resp instanceof java.rmi.RemoteException) {
398: throw (java.rmi.RemoteException) _resp;
399: } else {
400: try {
401: return (WorkflowState) _resp;
402: } catch (java.lang.Exception _exception) {
403: return (WorkflowState) org.apache.axis.utils.JavaUtils
404: .convert(_resp, WorkflowState.class);
405: }
406: }
407: }
408:
409: public java.util.Vector getActiveWorkflows(User user)
410: throws java.rmi.RemoteException {
411: if (super .cachedEndpoint == null) {
412: throw new org.apache.axis.NoEndPointException();
413: }
414: org.apache.axis.client.Call _call = createCall();
415: _call.addParameter(new javax.xml.namespace.QName("", "user"),
416: new javax.xml.namespace.QName("urn:XflowService",
417: "User"), User.class,
418: javax.xml.rpc.ParameterMode.IN);
419: _call.setReturnType(new javax.xml.namespace.QName(
420: "http://xml.apache.org/xml-soap", "Vector"),
421: java.util.Vector.class);
422: _call.setUseSOAPAction(true);
423: _call.setSOAPActionURI("");
424: _call.setOperationStyle("rpc");
425: _call.setOperationName(new javax.xml.namespace.QName(
426: "http://localhost:8080/axis/services/XflowService",
427: "getActiveWorkflows"));
428:
429: java.lang.Object _resp = _call
430: .invoke(new java.lang.Object[] { user });
431:
432: if (_resp instanceof java.rmi.RemoteException) {
433: throw (java.rmi.RemoteException) _resp;
434: } else {
435: try {
436: return (java.util.Vector) _resp;
437: } catch (java.lang.Exception _exception) {
438: return (java.util.Vector) org.apache.axis.utils.JavaUtils
439: .convert(_resp, java.util.Vector.class);
440: }
441: }
442: }
443:
444: public void completeWorkItem(java.lang.String wfName,
445: java.lang.String processName, WorkItem witem, User user)
446: throws java.rmi.RemoteException {
447: if (super .cachedEndpoint == null) {
448: throw new org.apache.axis.NoEndPointException();
449: }
450: org.apache.axis.client.Call _call = createCall();
451: _call.addParameter(new javax.xml.namespace.QName("", "wfName"),
452: new javax.xml.namespace.QName(
453: "http://www.w3.org/2001/XMLSchema", "string"),
454: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
455: _call.addParameter(new javax.xml.namespace.QName("",
456: "processName"), new javax.xml.namespace.QName(
457: "http://www.w3.org/2001/XMLSchema", "string"),
458: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
459: _call.addParameter(new javax.xml.namespace.QName("", "witem"),
460: new javax.xml.namespace.QName("urn:XflowService",
461: "WorkItem"), WorkItem.class,
462: javax.xml.rpc.ParameterMode.IN);
463: _call.addParameter(new javax.xml.namespace.QName("", "user"),
464: new javax.xml.namespace.QName("urn:XflowService",
465: "User"), User.class,
466: javax.xml.rpc.ParameterMode.IN);
467: _call.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
468: _call.setUseSOAPAction(true);
469: _call.setSOAPActionURI("");
470: _call.setOperationStyle("rpc");
471: _call.setOperationName(new javax.xml.namespace.QName(
472: "http://localhost:8080/axis/services/XflowService",
473: "completeWorkItem"));
474:
475: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
476: wfName, processName, witem, user });
477:
478: if (_resp instanceof java.rmi.RemoteException) {
479: throw (java.rmi.RemoteException) _resp;
480: }
481: }
482:
483: public java.util.Vector getWorkItems(java.lang.String wfName,
484: java.lang.String processName, User user)
485: throws java.rmi.RemoteException {
486: if (super .cachedEndpoint == null) {
487: throw new org.apache.axis.NoEndPointException();
488: }
489: org.apache.axis.client.Call _call = createCall();
490: _call.addParameter(new javax.xml.namespace.QName("", "wfName"),
491: new javax.xml.namespace.QName(
492: "http://www.w3.org/2001/XMLSchema", "string"),
493: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
494: _call.addParameter(new javax.xml.namespace.QName("",
495: "processName"), new javax.xml.namespace.QName(
496: "http://www.w3.org/2001/XMLSchema", "string"),
497: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
498: _call.addParameter(new javax.xml.namespace.QName("", "user"),
499: new javax.xml.namespace.QName("urn:XflowService",
500: "User"), User.class,
501: javax.xml.rpc.ParameterMode.IN);
502: _call.setReturnType(new javax.xml.namespace.QName(
503: "http://xml.apache.org/xml-soap", "Vector"),
504: java.util.Vector.class);
505: _call.setUseSOAPAction(true);
506: _call.setSOAPActionURI("");
507: _call.setOperationStyle("rpc");
508: _call.setOperationName(new javax.xml.namespace.QName(
509: "http://localhost:8080/axis/services/XflowService",
510: "getWorkItems"));
511:
512: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
513: wfName, processName, user });
514:
515: if (_resp instanceof java.rmi.RemoteException) {
516: throw (java.rmi.RemoteException) _resp;
517: } else {
518: try {
519: return (java.util.Vector) _resp;
520: } catch (java.lang.Exception _exception) {
521: return (java.util.Vector) org.apache.axis.utils.JavaUtils
522: .convert(_resp, java.util.Vector.class);
523: }
524: }
525: }
526:
527: public WorkItem getNextWorkItem(java.lang.String wfName,
528: java.lang.String processName, User user)
529: throws java.rmi.RemoteException {
530: if (super .cachedEndpoint == null) {
531: throw new org.apache.axis.NoEndPointException();
532: }
533: org.apache.axis.client.Call _call = createCall();
534: _call.addParameter(new javax.xml.namespace.QName("", "wfName"),
535: new javax.xml.namespace.QName(
536: "http://www.w3.org/2001/XMLSchema", "string"),
537: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
538: _call.addParameter(new javax.xml.namespace.QName("",
539: "processName"), new javax.xml.namespace.QName(
540: "http://www.w3.org/2001/XMLSchema", "string"),
541: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
542: _call.addParameter(new javax.xml.namespace.QName("", "user"),
543: new javax.xml.namespace.QName("urn:XflowService",
544: "User"), User.class,
545: javax.xml.rpc.ParameterMode.IN);
546: _call.setReturnType(new javax.xml.namespace.QName(
547: "urn:XflowService", "WorkItem"), WorkItem.class);
548: _call.setUseSOAPAction(true);
549: _call.setSOAPActionURI("");
550: _call.setOperationStyle("rpc");
551: _call.setOperationName(new javax.xml.namespace.QName(
552: "http://localhost:8080/axis/services/XflowService",
553: "getNextWorkItem"));
554:
555: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
556: wfName, processName, user });
557:
558: if (_resp instanceof java.rmi.RemoteException) {
559: throw (java.rmi.RemoteException) _resp;
560: } else {
561: try {
562: return (WorkItem) _resp;
563: } catch (java.lang.Exception _exception) {
564: return (WorkItem) org.apache.axis.utils.JavaUtils
565: .convert(_resp, WorkItem.class);
566: }
567: }
568: }
569:
570: public WorkItem getWorkItem(java.lang.String wfName,
571: java.lang.String processName, int id, User user)
572: throws java.rmi.RemoteException {
573: if (super .cachedEndpoint == null) {
574: throw new org.apache.axis.NoEndPointException();
575: }
576: org.apache.axis.client.Call _call = createCall();
577: _call.addParameter(new javax.xml.namespace.QName("", "wfName"),
578: new javax.xml.namespace.QName(
579: "http://www.w3.org/2001/XMLSchema", "string"),
580: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
581: _call.addParameter(new javax.xml.namespace.QName("",
582: "processName"), new javax.xml.namespace.QName(
583: "http://www.w3.org/2001/XMLSchema", "string"),
584: java.lang.String.class, javax.xml.rpc.ParameterMode.IN);
585: _call.addParameter(new javax.xml.namespace.QName("", "id"),
586: new javax.xml.namespace.QName(
587: "http://www.w3.org/2001/XMLSchema", "int"),
588: int.class, javax.xml.rpc.ParameterMode.IN);
589: _call.addParameter(new javax.xml.namespace.QName("", "user"),
590: new javax.xml.namespace.QName("urn:XflowService",
591: "User"), User.class,
592: javax.xml.rpc.ParameterMode.IN);
593: _call.setReturnType(new javax.xml.namespace.QName(
594: "urn:XflowService", "WorkItem"), WorkItem.class);
595: _call.setUseSOAPAction(true);
596: _call.setSOAPActionURI("");
597: _call.setOperationStyle("rpc");
598: _call.setOperationName(new javax.xml.namespace.QName(
599: "http://localhost:8080/axis/services/XflowService",
600: "getWorkItem"));
601:
602: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
603: wfName, processName, new java.lang.Integer(id), user });
604:
605: if (_resp instanceof java.rmi.RemoteException) {
606: throw (java.rmi.RemoteException) _resp;
607: } else {
608: try {
609: return (WorkItem) _resp;
610: } catch (java.lang.Exception _exception) {
611: return (WorkItem) org.apache.axis.utils.JavaUtils
612: .convert(_resp, WorkItem.class);
613: }
614: }
615: }
616:
617: public java.lang.String xxx() throws java.rmi.RemoteException {
618: if (super .cachedEndpoint == null) {
619: throw new org.apache.axis.NoEndPointException();
620: }
621: org.apache.axis.client.Call _call = createCall();
622: _call.setReturnType(new javax.xml.namespace.QName(
623: "http://www.w3.org/2001/XMLSchema", "string"),
624: java.lang.String.class);
625: _call.setUseSOAPAction(true);
626: _call.setSOAPActionURI("");
627: _call.setOperationStyle("rpc");
628: _call.setOperationName(new javax.xml.namespace.QName(
629: "http://localhost:8080/axis/services/XflowService",
630: "xxx"));
631:
632: java.lang.Object _resp = _call
633: .invoke(new java.lang.Object[] {});
634:
635: if (_resp instanceof java.rmi.RemoteException) {
636: throw (java.rmi.RemoteException) _resp;
637: } else {
638: try {
639: return (java.lang.String) _resp;
640: } catch (java.lang.Exception _exception) {
641: return (java.lang.String) org.apache.axis.utils.JavaUtils
642: .convert(_resp, java.lang.String.class);
643: }
644: }
645: }
646:
647: public java.util.Vector yyy() throws java.rmi.RemoteException {
648: if (super .cachedEndpoint == null) {
649: throw new org.apache.axis.NoEndPointException();
650: }
651: org.apache.axis.client.Call _call = createCall();
652: _call.setReturnType(new javax.xml.namespace.QName(
653: "http://xml.apache.org/xml-soap", "Vector"),
654: java.util.Vector.class);
655: _call.setUseSOAPAction(true);
656: _call.setSOAPActionURI("");
657: _call.setOperationStyle("rpc");
658: _call.setOperationName(new javax.xml.namespace.QName(
659: "http://localhost:8080/axis/services/XflowService",
660: "yyy"));
661:
662: java.lang.Object _resp = _call
663: .invoke(new java.lang.Object[] {});
664:
665: if (_resp instanceof java.rmi.RemoteException) {
666: throw (java.rmi.RemoteException) _resp;
667: } else {
668: try {
669: return (java.util.Vector) _resp;
670: } catch (java.lang.Exception _exception) {
671: return (java.util.Vector) org.apache.axis.utils.JavaUtils
672: .convert(_resp, java.util.Vector.class);
673: }
674: }
675: }
676:
677: }
|