001: /**
002: * SSOSessionManagerSoapBindingStub.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2.1 Jul 21, 2005 (10:26:06 GMT-03:00) WSDL2Java emitter.
006: */package org.josso.gateway.session.service.ws.impl;
007:
008: public class SSOSessionManagerSoapBindingStub extends
009: org.apache.axis.client.Stub implements
010: org.josso.gateway.session.service.ws.impl.SSOSessionManager {
011: private java.util.Vector cachedSerClasses = new java.util.Vector();
012: private java.util.Vector cachedSerQNames = new java.util.Vector();
013: private java.util.Vector cachedSerFactories = new java.util.Vector();
014: private java.util.Vector cachedDeserFactories = new java.util.Vector();
015:
016: static org.apache.axis.description.OperationDesc[] _operations;
017:
018: static {
019: _operations = new org.apache.axis.description.OperationDesc[10];
020: _initOperationDesc1();
021: }
022:
023: private static void _initOperationDesc1() {
024: org.apache.axis.description.OperationDesc oper;
025: org.apache.axis.description.ParameterDesc param;
026: oper = new org.apache.axis.description.OperationDesc();
027: oper.setName("initiateSession");
028: param = new org.apache.axis.description.ParameterDesc(
029: new javax.xml.namespace.QName("", "in0"),
030: org.apache.axis.description.ParameterDesc.IN,
031: new javax.xml.namespace.QName(
032: "http://www.w3.org/2001/XMLSchema", "string"),
033: java.lang.String.class, false, false);
034: oper.addParameter(param);
035: oper.setReturnType(new javax.xml.namespace.QName(
036: "http://www.w3.org/2001/XMLSchema", "string"));
037: oper.setReturnClass(java.lang.String.class);
038: oper.setReturnQName(new javax.xml.namespace.QName("",
039: "initiateSessionReturn"));
040: oper.setStyle(org.apache.axis.constants.Style.RPC);
041: oper.setUse(org.apache.axis.constants.Use.ENCODED);
042: oper
043: .addFault(new org.apache.axis.description.FaultDesc(
044: new javax.xml.namespace.QName(
045: "http://josso.org/gateway/session/service/ws/impl",
046: "fault"),
047: "org.josso.gateway.session.service.ws.impl.TooManyOpenSessionsException",
048: new javax.xml.namespace.QName(
049: "http://josso.org/gateway/session/service/ws/impl",
050: "TooManyOpenSessionsException"), true));
051: oper
052: .addFault(new org.apache.axis.description.FaultDesc(
053: new javax.xml.namespace.QName(
054: "http://josso.org/gateway/session/service/ws/impl",
055: "fault"),
056: "org.josso.gateway.session.service.ws.impl.SSOSessionException",
057: new javax.xml.namespace.QName(
058: "http://josso.org/gateway/session/service/ws/impl",
059: "SSOSessionException"), true));
060: _operations[0] = oper;
061:
062: oper = new org.apache.axis.description.OperationDesc();
063: oper.setName("accessSession");
064: param = new org.apache.axis.description.ParameterDesc(
065: new javax.xml.namespace.QName("", "in0"),
066: org.apache.axis.description.ParameterDesc.IN,
067: new javax.xml.namespace.QName(
068: "http://www.w3.org/2001/XMLSchema", "string"),
069: java.lang.String.class, false, false);
070: oper.addParameter(param);
071: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
072: oper.setStyle(org.apache.axis.constants.Style.RPC);
073: oper.setUse(org.apache.axis.constants.Use.ENCODED);
074: oper
075: .addFault(new org.apache.axis.description.FaultDesc(
076: new javax.xml.namespace.QName(
077: "http://josso.org/gateway/session/service/ws/impl",
078: "fault"),
079: "org.josso.gateway.session.service.ws.impl.NoSuchSessionException",
080: new javax.xml.namespace.QName(
081: "http://josso.org/gateway/session/service/ws/impl",
082: "NoSuchSessionException"), true));
083: oper
084: .addFault(new org.apache.axis.description.FaultDesc(
085: new javax.xml.namespace.QName(
086: "http://josso.org/gateway/session/service/ws/impl",
087: "fault"),
088: "org.josso.gateway.session.service.ws.impl.SSOSessionException",
089: new javax.xml.namespace.QName(
090: "http://josso.org/gateway/session/service/ws/impl",
091: "SSOSessionException"), true));
092: _operations[1] = oper;
093:
094: oper = new org.apache.axis.description.OperationDesc();
095: oper.setName("getSession");
096: param = new org.apache.axis.description.ParameterDesc(
097: new javax.xml.namespace.QName("", "in0"),
098: org.apache.axis.description.ParameterDesc.IN,
099: new javax.xml.namespace.QName(
100: "http://www.w3.org/2001/XMLSchema", "string"),
101: java.lang.String.class, false, false);
102: oper.addParameter(param);
103: oper.setReturnType(new javax.xml.namespace.QName(
104: "http://josso.org/gateway/session/service/ws/impl",
105: "SSOSession"));
106: oper
107: .setReturnClass(org.josso.gateway.session.service.ws.impl.SSOSession.class);
108: oper.setReturnQName(new javax.xml.namespace.QName("",
109: "getSessionReturn"));
110: oper.setStyle(org.apache.axis.constants.Style.RPC);
111: oper.setUse(org.apache.axis.constants.Use.ENCODED);
112: oper
113: .addFault(new org.apache.axis.description.FaultDesc(
114: new javax.xml.namespace.QName(
115: "http://josso.org/gateway/session/service/ws/impl",
116: "fault"),
117: "org.josso.gateway.session.service.ws.impl.NoSuchSessionException",
118: new javax.xml.namespace.QName(
119: "http://josso.org/gateway/session/service/ws/impl",
120: "NoSuchSessionException"), true));
121: oper
122: .addFault(new org.apache.axis.description.FaultDesc(
123: new javax.xml.namespace.QName(
124: "http://josso.org/gateway/session/service/ws/impl",
125: "fault"),
126: "org.josso.gateway.session.service.ws.impl.SSOSessionException",
127: new javax.xml.namespace.QName(
128: "http://josso.org/gateway/session/service/ws/impl",
129: "SSOSessionException"), true));
130: _operations[2] = oper;
131:
132: oper = new org.apache.axis.description.OperationDesc();
133: oper.setName("getSessions");
134: oper.setReturnType(new javax.xml.namespace.QName(
135: "http://josso.org/gateway/session/service/ws/impl",
136: "ArrayOf_xsd_anyType"));
137: oper.setReturnClass(java.lang.Object[].class);
138: oper.setReturnQName(new javax.xml.namespace.QName("",
139: "getSessionsReturn"));
140: oper.setStyle(org.apache.axis.constants.Style.RPC);
141: oper.setUse(org.apache.axis.constants.Use.ENCODED);
142: oper
143: .addFault(new org.apache.axis.description.FaultDesc(
144: new javax.xml.namespace.QName(
145: "http://josso.org/gateway/session/service/ws/impl",
146: "fault"),
147: "org.josso.gateway.session.service.ws.impl.SSOSessionException",
148: new javax.xml.namespace.QName(
149: "http://josso.org/gateway/session/service/ws/impl",
150: "SSOSessionException"), true));
151: _operations[3] = oper;
152:
153: oper = new org.apache.axis.description.OperationDesc();
154: oper.setName("getUserSessions");
155: param = new org.apache.axis.description.ParameterDesc(
156: new javax.xml.namespace.QName("", "in0"),
157: org.apache.axis.description.ParameterDesc.IN,
158: new javax.xml.namespace.QName(
159: "http://www.w3.org/2001/XMLSchema", "string"),
160: java.lang.String.class, false, false);
161: oper.addParameter(param);
162: oper.setReturnType(new javax.xml.namespace.QName(
163: "http://josso.org/gateway/session/service/ws/impl",
164: "ArrayOf_xsd_anyType"));
165: oper.setReturnClass(java.lang.Object[].class);
166: oper.setReturnQName(new javax.xml.namespace.QName("",
167: "getUserSessionsReturn"));
168: oper.setStyle(org.apache.axis.constants.Style.RPC);
169: oper.setUse(org.apache.axis.constants.Use.ENCODED);
170: oper
171: .addFault(new org.apache.axis.description.FaultDesc(
172: new javax.xml.namespace.QName(
173: "http://josso.org/gateway/session/service/ws/impl",
174: "fault"),
175: "org.josso.gateway.session.service.ws.impl.NoSuchSessionException",
176: new javax.xml.namespace.QName(
177: "http://josso.org/gateway/session/service/ws/impl",
178: "NoSuchSessionException"), true));
179: oper
180: .addFault(new org.apache.axis.description.FaultDesc(
181: new javax.xml.namespace.QName(
182: "http://josso.org/gateway/session/service/ws/impl",
183: "fault"),
184: "org.josso.gateway.session.service.ws.impl.SSOSessionException",
185: new javax.xml.namespace.QName(
186: "http://josso.org/gateway/session/service/ws/impl",
187: "SSOSessionException"), true));
188: _operations[4] = oper;
189:
190: oper = new org.apache.axis.description.OperationDesc();
191: oper.setName("invalidateAll");
192: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
193: oper.setStyle(org.apache.axis.constants.Style.RPC);
194: oper.setUse(org.apache.axis.constants.Use.ENCODED);
195: oper
196: .addFault(new org.apache.axis.description.FaultDesc(
197: new javax.xml.namespace.QName(
198: "http://josso.org/gateway/session/service/ws/impl",
199: "fault"),
200: "org.josso.gateway.session.service.ws.impl.SSOSessionException",
201: new javax.xml.namespace.QName(
202: "http://josso.org/gateway/session/service/ws/impl",
203: "SSOSessionException"), true));
204: _operations[5] = oper;
205:
206: oper = new org.apache.axis.description.OperationDesc();
207: oper.setName("checkValidSessions");
208: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
209: oper.setStyle(org.apache.axis.constants.Style.RPC);
210: oper.setUse(org.apache.axis.constants.Use.ENCODED);
211: _operations[6] = oper;
212:
213: oper = new org.apache.axis.description.OperationDesc();
214: oper.setName("getSessionCount");
215: oper.setReturnType(new javax.xml.namespace.QName(
216: "http://www.w3.org/2001/XMLSchema", "int"));
217: oper.setReturnClass(int.class);
218: oper.setReturnQName(new javax.xml.namespace.QName("",
219: "getSessionCountReturn"));
220: oper.setStyle(org.apache.axis.constants.Style.RPC);
221: oper.setUse(org.apache.axis.constants.Use.ENCODED);
222: oper
223: .addFault(new org.apache.axis.description.FaultDesc(
224: new javax.xml.namespace.QName(
225: "http://josso.org/gateway/session/service/ws/impl",
226: "fault"),
227: "org.josso.gateway.session.service.ws.impl.SSOSessionException",
228: new javax.xml.namespace.QName(
229: "http://josso.org/gateway/session/service/ws/impl",
230: "SSOSessionException"), true));
231: _operations[7] = oper;
232:
233: oper = new org.apache.axis.description.OperationDesc();
234: oper.setName("initialize");
235: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
236: oper.setStyle(org.apache.axis.constants.Style.RPC);
237: oper.setUse(org.apache.axis.constants.Use.ENCODED);
238: _operations[8] = oper;
239:
240: oper = new org.apache.axis.description.OperationDesc();
241: oper.setName("invalidate");
242: param = new org.apache.axis.description.ParameterDesc(
243: new javax.xml.namespace.QName("", "in0"),
244: org.apache.axis.description.ParameterDesc.IN,
245: new javax.xml.namespace.QName(
246: "http://www.w3.org/2001/XMLSchema", "string"),
247: java.lang.String.class, false, false);
248: oper.addParameter(param);
249: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
250: oper.setStyle(org.apache.axis.constants.Style.RPC);
251: oper.setUse(org.apache.axis.constants.Use.ENCODED);
252: oper
253: .addFault(new org.apache.axis.description.FaultDesc(
254: new javax.xml.namespace.QName(
255: "http://josso.org/gateway/session/service/ws/impl",
256: "fault"),
257: "org.josso.gateway.session.service.ws.impl.NoSuchSessionException",
258: new javax.xml.namespace.QName(
259: "http://josso.org/gateway/session/service/ws/impl",
260: "NoSuchSessionException"), true));
261: oper
262: .addFault(new org.apache.axis.description.FaultDesc(
263: new javax.xml.namespace.QName(
264: "http://josso.org/gateway/session/service/ws/impl",
265: "fault"),
266: "org.josso.gateway.session.service.ws.impl.SSOSessionException",
267: new javax.xml.namespace.QName(
268: "http://josso.org/gateway/session/service/ws/impl",
269: "SSOSessionException"), true));
270: _operations[9] = oper;
271:
272: }
273:
274: public SSOSessionManagerSoapBindingStub()
275: throws org.apache.axis.AxisFault {
276: this (null);
277: }
278:
279: public SSOSessionManagerSoapBindingStub(java.net.URL endpointURL,
280: javax.xml.rpc.Service service)
281: throws org.apache.axis.AxisFault {
282: this (service);
283: super .cachedEndpoint = endpointURL;
284: }
285:
286: public SSOSessionManagerSoapBindingStub(
287: javax.xml.rpc.Service service)
288: throws org.apache.axis.AxisFault {
289: if (service == null) {
290: super .service = new org.apache.axis.client.Service();
291: } else {
292: super .service = service;
293: }
294: ((org.apache.axis.client.Service) super .service)
295: .setTypeMappingVersion("1.2");
296: java.lang.Class cls;
297: javax.xml.namespace.QName qName;
298: javax.xml.namespace.QName qName2;
299: java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
300: java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
301: java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
302: java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
303: java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
304: java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
305: java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
306: java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
307: java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
308: java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
309: qName = new javax.xml.namespace.QName(
310: "http://josso.org/gateway/session/service/ws/impl",
311: "ArrayOf_xsd_anyType");
312: cachedSerQNames.add(qName);
313: cls = java.lang.Object[].class;
314: cachedSerClasses.add(cls);
315: qName = new javax.xml.namespace.QName(
316: "http://www.w3.org/2001/XMLSchema", "anyType");
317: qName2 = null;
318: cachedSerFactories
319: .add(new org.apache.axis.encoding.ser.ArraySerializerFactory(
320: qName, qName2));
321: cachedDeserFactories
322: .add(new org.apache.axis.encoding.ser.ArrayDeserializerFactory());
323:
324: qName = new javax.xml.namespace.QName(
325: "http://josso.org/gateway/session/service/ws/impl",
326: "NoSuchSessionException");
327: cachedSerQNames.add(qName);
328: cls = org.josso.gateway.session.service.ws.impl.NoSuchSessionException.class;
329: cachedSerClasses.add(cls);
330: cachedSerFactories.add(beansf);
331: cachedDeserFactories.add(beandf);
332:
333: qName = new javax.xml.namespace.QName(
334: "http://josso.org/gateway/session/service/ws/impl",
335: "SSOSession");
336: cachedSerQNames.add(qName);
337: cls = org.josso.gateway.session.service.ws.impl.SSOSession.class;
338: cachedSerClasses.add(cls);
339: cachedSerFactories.add(beansf);
340: cachedDeserFactories.add(beandf);
341:
342: qName = new javax.xml.namespace.QName(
343: "http://josso.org/gateway/session/service/ws/impl",
344: "SSOSessionException");
345: cachedSerQNames.add(qName);
346: cls = org.josso.gateway.session.service.ws.impl.SSOSessionException.class;
347: cachedSerClasses.add(cls);
348: cachedSerFactories.add(beansf);
349: cachedDeserFactories.add(beandf);
350:
351: qName = new javax.xml.namespace.QName(
352: "http://josso.org/gateway/session/service/ws/impl",
353: "TooManyOpenSessionsException");
354: cachedSerQNames.add(qName);
355: cls = org.josso.gateway.session.service.ws.impl.TooManyOpenSessionsException.class;
356: cachedSerClasses.add(cls);
357: cachedSerFactories.add(beansf);
358: cachedDeserFactories.add(beandf);
359:
360: }
361:
362: protected org.apache.axis.client.Call createCall()
363: throws java.rmi.RemoteException {
364: try {
365: org.apache.axis.client.Call _call = super ._createCall();
366: if (super .maintainSessionSet) {
367: _call.setMaintainSession(super .maintainSession);
368: }
369: if (super .cachedUsername != null) {
370: _call.setUsername(super .cachedUsername);
371: }
372: if (super .cachedPassword != null) {
373: _call.setPassword(super .cachedPassword);
374: }
375: if (super .cachedEndpoint != null) {
376: _call.setTargetEndpointAddress(super .cachedEndpoint);
377: }
378: if (super .cachedTimeout != null) {
379: _call.setTimeout(super .cachedTimeout);
380: }
381: if (super .cachedPortName != null) {
382: _call.setPortName(super .cachedPortName);
383: }
384: java.util.Enumeration keys = super .cachedProperties.keys();
385: while (keys.hasMoreElements()) {
386: java.lang.String key = (java.lang.String) keys
387: .nextElement();
388: _call.setProperty(key, super .cachedProperties.get(key));
389: }
390: // All the type mapping information is registered
391: // when the first call is made.
392: // The type mapping information is actually registered in
393: // the TypeMappingRegistry of the service, which
394: // is the reason why registration is only needed for the first call.
395: synchronized (this ) {
396: if (firstCall()) {
397: // must set encoding style before registering serializers
398: _call
399: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
400: _call
401: .setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
402: for (int i = 0; i < cachedSerFactories.size(); ++i) {
403: java.lang.Class cls = (java.lang.Class) cachedSerClasses
404: .get(i);
405: javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
406: .get(i);
407: java.lang.Object x = cachedSerFactories.get(i);
408: if (x instanceof Class) {
409: java.lang.Class sf = (java.lang.Class) cachedSerFactories
410: .get(i);
411: java.lang.Class df = (java.lang.Class) cachedDeserFactories
412: .get(i);
413: _call.registerTypeMapping(cls, qName, sf,
414: df, false);
415: } else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
416: org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) cachedSerFactories
417: .get(i);
418: org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) cachedDeserFactories
419: .get(i);
420: _call.registerTypeMapping(cls, qName, sf,
421: df, false);
422: }
423: }
424: }
425: }
426: return _call;
427: } catch (java.lang.Throwable _t) {
428: throw new org.apache.axis.AxisFault(
429: "Failure trying to get the Call object", _t);
430: }
431: }
432:
433: public java.lang.String initiateSession(java.lang.String in0)
434: throws java.rmi.RemoteException,
435: org.josso.gateway.session.service.ws.impl.TooManyOpenSessionsException,
436: org.josso.gateway.session.service.ws.impl.SSOSessionException {
437: if (super .cachedEndpoint == null) {
438: throw new org.apache.axis.NoEndPointException();
439: }
440: org.apache.axis.client.Call _call = createCall();
441: _call.setOperation(_operations[0]);
442: _call.setUseSOAPAction(true);
443: _call.setSOAPActionURI("");
444: _call
445: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
446: _call.setOperationName(new javax.xml.namespace.QName(
447: "http://josso.org/gateway/session/service/ws/impl",
448: "initiateSession"));
449:
450: setRequestHeaders(_call);
451: setAttachments(_call);
452: try {
453: java.lang.Object _resp = _call
454: .invoke(new java.lang.Object[] { in0 });
455:
456: if (_resp instanceof java.rmi.RemoteException) {
457: throw (java.rmi.RemoteException) _resp;
458: } else {
459: extractAttachments(_call);
460: try {
461: return (java.lang.String) _resp;
462: } catch (java.lang.Exception _exception) {
463: return (java.lang.String) org.apache.axis.utils.JavaUtils
464: .convert(_resp, java.lang.String.class);
465: }
466: }
467: } catch (org.apache.axis.AxisFault axisFaultException) {
468: if (axisFaultException.detail != null) {
469: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
470: throw (java.rmi.RemoteException) axisFaultException.detail;
471: }
472: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.TooManyOpenSessionsException) {
473: throw (org.josso.gateway.session.service.ws.impl.TooManyOpenSessionsException) axisFaultException.detail;
474: }
475: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.SSOSessionException) {
476: throw (org.josso.gateway.session.service.ws.impl.SSOSessionException) axisFaultException.detail;
477: }
478: }
479: throw axisFaultException;
480: }
481: }
482:
483: public void accessSession(java.lang.String in0)
484: throws java.rmi.RemoteException,
485: org.josso.gateway.session.service.ws.impl.NoSuchSessionException,
486: org.josso.gateway.session.service.ws.impl.SSOSessionException {
487: if (super .cachedEndpoint == null) {
488: throw new org.apache.axis.NoEndPointException();
489: }
490: org.apache.axis.client.Call _call = createCall();
491: _call.setOperation(_operations[1]);
492: _call.setUseSOAPAction(true);
493: _call.setSOAPActionURI("");
494: _call
495: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
496: _call.setOperationName(new javax.xml.namespace.QName(
497: "http://josso.org/gateway/session/service/ws/impl",
498: "accessSession"));
499:
500: setRequestHeaders(_call);
501: setAttachments(_call);
502: try {
503: java.lang.Object _resp = _call
504: .invoke(new java.lang.Object[] { in0 });
505:
506: if (_resp instanceof java.rmi.RemoteException) {
507: throw (java.rmi.RemoteException) _resp;
508: }
509: extractAttachments(_call);
510: } catch (org.apache.axis.AxisFault axisFaultException) {
511: if (axisFaultException.detail != null) {
512: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
513: throw (java.rmi.RemoteException) axisFaultException.detail;
514: }
515: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.NoSuchSessionException) {
516: throw (org.josso.gateway.session.service.ws.impl.NoSuchSessionException) axisFaultException.detail;
517: }
518: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.SSOSessionException) {
519: throw (org.josso.gateway.session.service.ws.impl.SSOSessionException) axisFaultException.detail;
520: }
521: }
522: throw axisFaultException;
523: }
524: }
525:
526: public org.josso.gateway.session.service.ws.impl.SSOSession getSession(
527: java.lang.String in0)
528: throws java.rmi.RemoteException,
529: org.josso.gateway.session.service.ws.impl.NoSuchSessionException,
530: org.josso.gateway.session.service.ws.impl.SSOSessionException {
531: if (super .cachedEndpoint == null) {
532: throw new org.apache.axis.NoEndPointException();
533: }
534: org.apache.axis.client.Call _call = createCall();
535: _call.setOperation(_operations[2]);
536: _call.setUseSOAPAction(true);
537: _call.setSOAPActionURI("");
538: _call
539: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
540: _call.setOperationName(new javax.xml.namespace.QName(
541: "http://josso.org/gateway/session/service/ws/impl",
542: "getSession"));
543:
544: setRequestHeaders(_call);
545: setAttachments(_call);
546: try {
547: java.lang.Object _resp = _call
548: .invoke(new java.lang.Object[] { in0 });
549:
550: if (_resp instanceof java.rmi.RemoteException) {
551: throw (java.rmi.RemoteException) _resp;
552: } else {
553: extractAttachments(_call);
554: try {
555: return (org.josso.gateway.session.service.ws.impl.SSOSession) _resp;
556: } catch (java.lang.Exception _exception) {
557: return (org.josso.gateway.session.service.ws.impl.SSOSession) org.apache.axis.utils.JavaUtils
558: .convert(
559: _resp,
560: org.josso.gateway.session.service.ws.impl.SSOSession.class);
561: }
562: }
563: } catch (org.apache.axis.AxisFault axisFaultException) {
564: if (axisFaultException.detail != null) {
565: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
566: throw (java.rmi.RemoteException) axisFaultException.detail;
567: }
568: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.NoSuchSessionException) {
569: throw (org.josso.gateway.session.service.ws.impl.NoSuchSessionException) axisFaultException.detail;
570: }
571: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.SSOSessionException) {
572: throw (org.josso.gateway.session.service.ws.impl.SSOSessionException) axisFaultException.detail;
573: }
574: }
575: throw axisFaultException;
576: }
577: }
578:
579: public java.lang.Object[] getSessions()
580: throws java.rmi.RemoteException,
581: org.josso.gateway.session.service.ws.impl.SSOSessionException {
582: if (super .cachedEndpoint == null) {
583: throw new org.apache.axis.NoEndPointException();
584: }
585: org.apache.axis.client.Call _call = createCall();
586: _call.setOperation(_operations[3]);
587: _call.setUseSOAPAction(true);
588: _call.setSOAPActionURI("");
589: _call
590: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
591: _call.setOperationName(new javax.xml.namespace.QName(
592: "http://josso.org/gateway/session/service/ws/impl",
593: "getSessions"));
594:
595: setRequestHeaders(_call);
596: setAttachments(_call);
597: try {
598: java.lang.Object _resp = _call
599: .invoke(new java.lang.Object[] {});
600:
601: if (_resp instanceof java.rmi.RemoteException) {
602: throw (java.rmi.RemoteException) _resp;
603: } else {
604: extractAttachments(_call);
605: try {
606: return (java.lang.Object[]) _resp;
607: } catch (java.lang.Exception _exception) {
608: return (java.lang.Object[]) org.apache.axis.utils.JavaUtils
609: .convert(_resp, java.lang.Object[].class);
610: }
611: }
612: } catch (org.apache.axis.AxisFault axisFaultException) {
613: if (axisFaultException.detail != null) {
614: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
615: throw (java.rmi.RemoteException) axisFaultException.detail;
616: }
617: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.SSOSessionException) {
618: throw (org.josso.gateway.session.service.ws.impl.SSOSessionException) axisFaultException.detail;
619: }
620: }
621: throw axisFaultException;
622: }
623: }
624:
625: public java.lang.Object[] getUserSessions(java.lang.String in0)
626: throws java.rmi.RemoteException,
627: org.josso.gateway.session.service.ws.impl.NoSuchSessionException,
628: org.josso.gateway.session.service.ws.impl.SSOSessionException {
629: if (super .cachedEndpoint == null) {
630: throw new org.apache.axis.NoEndPointException();
631: }
632: org.apache.axis.client.Call _call = createCall();
633: _call.setOperation(_operations[4]);
634: _call.setUseSOAPAction(true);
635: _call.setSOAPActionURI("");
636: _call
637: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
638: _call.setOperationName(new javax.xml.namespace.QName(
639: "http://josso.org/gateway/session/service/ws/impl",
640: "getUserSessions"));
641:
642: setRequestHeaders(_call);
643: setAttachments(_call);
644: try {
645: java.lang.Object _resp = _call
646: .invoke(new java.lang.Object[] { in0 });
647:
648: if (_resp instanceof java.rmi.RemoteException) {
649: throw (java.rmi.RemoteException) _resp;
650: } else {
651: extractAttachments(_call);
652: try {
653: return (java.lang.Object[]) _resp;
654: } catch (java.lang.Exception _exception) {
655: return (java.lang.Object[]) org.apache.axis.utils.JavaUtils
656: .convert(_resp, java.lang.Object[].class);
657: }
658: }
659: } catch (org.apache.axis.AxisFault axisFaultException) {
660: if (axisFaultException.detail != null) {
661: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
662: throw (java.rmi.RemoteException) axisFaultException.detail;
663: }
664: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.NoSuchSessionException) {
665: throw (org.josso.gateway.session.service.ws.impl.NoSuchSessionException) axisFaultException.detail;
666: }
667: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.SSOSessionException) {
668: throw (org.josso.gateway.session.service.ws.impl.SSOSessionException) axisFaultException.detail;
669: }
670: }
671: throw axisFaultException;
672: }
673: }
674:
675: public void invalidateAll()
676: throws java.rmi.RemoteException,
677: org.josso.gateway.session.service.ws.impl.SSOSessionException {
678: if (super .cachedEndpoint == null) {
679: throw new org.apache.axis.NoEndPointException();
680: }
681: org.apache.axis.client.Call _call = createCall();
682: _call.setOperation(_operations[5]);
683: _call.setUseSOAPAction(true);
684: _call.setSOAPActionURI("");
685: _call
686: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
687: _call.setOperationName(new javax.xml.namespace.QName(
688: "http://josso.org/gateway/session/service/ws/impl",
689: "invalidateAll"));
690:
691: setRequestHeaders(_call);
692: setAttachments(_call);
693: try {
694: java.lang.Object _resp = _call
695: .invoke(new java.lang.Object[] {});
696:
697: if (_resp instanceof java.rmi.RemoteException) {
698: throw (java.rmi.RemoteException) _resp;
699: }
700: extractAttachments(_call);
701: } catch (org.apache.axis.AxisFault axisFaultException) {
702: if (axisFaultException.detail != null) {
703: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
704: throw (java.rmi.RemoteException) axisFaultException.detail;
705: }
706: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.SSOSessionException) {
707: throw (org.josso.gateway.session.service.ws.impl.SSOSessionException) axisFaultException.detail;
708: }
709: }
710: throw axisFaultException;
711: }
712: }
713:
714: public void checkValidSessions() throws java.rmi.RemoteException {
715: if (super .cachedEndpoint == null) {
716: throw new org.apache.axis.NoEndPointException();
717: }
718: org.apache.axis.client.Call _call = createCall();
719: _call.setOperation(_operations[6]);
720: _call.setUseSOAPAction(true);
721: _call.setSOAPActionURI("");
722: _call
723: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
724: _call.setOperationName(new javax.xml.namespace.QName(
725: "http://josso.org/gateway/session/service/ws/impl",
726: "checkValidSessions"));
727:
728: setRequestHeaders(_call);
729: setAttachments(_call);
730: try {
731: java.lang.Object _resp = _call
732: .invoke(new java.lang.Object[] {});
733:
734: if (_resp instanceof java.rmi.RemoteException) {
735: throw (java.rmi.RemoteException) _resp;
736: }
737: extractAttachments(_call);
738: } catch (org.apache.axis.AxisFault axisFaultException) {
739: throw axisFaultException;
740: }
741: }
742:
743: public int getSessionCount()
744: throws java.rmi.RemoteException,
745: org.josso.gateway.session.service.ws.impl.SSOSessionException {
746: if (super .cachedEndpoint == null) {
747: throw new org.apache.axis.NoEndPointException();
748: }
749: org.apache.axis.client.Call _call = createCall();
750: _call.setOperation(_operations[7]);
751: _call.setUseSOAPAction(true);
752: _call.setSOAPActionURI("");
753: _call
754: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
755: _call.setOperationName(new javax.xml.namespace.QName(
756: "http://josso.org/gateway/session/service/ws/impl",
757: "getSessionCount"));
758:
759: setRequestHeaders(_call);
760: setAttachments(_call);
761: try {
762: java.lang.Object _resp = _call
763: .invoke(new java.lang.Object[] {});
764:
765: if (_resp instanceof java.rmi.RemoteException) {
766: throw (java.rmi.RemoteException) _resp;
767: } else {
768: extractAttachments(_call);
769: try {
770: return ((java.lang.Integer) _resp).intValue();
771: } catch (java.lang.Exception _exception) {
772: return ((java.lang.Integer) org.apache.axis.utils.JavaUtils
773: .convert(_resp, int.class)).intValue();
774: }
775: }
776: } catch (org.apache.axis.AxisFault axisFaultException) {
777: if (axisFaultException.detail != null) {
778: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
779: throw (java.rmi.RemoteException) axisFaultException.detail;
780: }
781: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.SSOSessionException) {
782: throw (org.josso.gateway.session.service.ws.impl.SSOSessionException) axisFaultException.detail;
783: }
784: }
785: throw axisFaultException;
786: }
787: }
788:
789: public void initialize() throws java.rmi.RemoteException {
790: if (super .cachedEndpoint == null) {
791: throw new org.apache.axis.NoEndPointException();
792: }
793: org.apache.axis.client.Call _call = createCall();
794: _call.setOperation(_operations[8]);
795: _call.setUseSOAPAction(true);
796: _call.setSOAPActionURI("");
797: _call
798: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
799: _call.setOperationName(new javax.xml.namespace.QName(
800: "http://josso.org/gateway/session/service/ws/impl",
801: "initialize"));
802:
803: setRequestHeaders(_call);
804: setAttachments(_call);
805: try {
806: java.lang.Object _resp = _call
807: .invoke(new java.lang.Object[] {});
808:
809: if (_resp instanceof java.rmi.RemoteException) {
810: throw (java.rmi.RemoteException) _resp;
811: }
812: extractAttachments(_call);
813: } catch (org.apache.axis.AxisFault axisFaultException) {
814: throw axisFaultException;
815: }
816: }
817:
818: public void invalidate(java.lang.String in0)
819: throws java.rmi.RemoteException,
820: org.josso.gateway.session.service.ws.impl.NoSuchSessionException,
821: org.josso.gateway.session.service.ws.impl.SSOSessionException {
822: if (super .cachedEndpoint == null) {
823: throw new org.apache.axis.NoEndPointException();
824: }
825: org.apache.axis.client.Call _call = createCall();
826: _call.setOperation(_operations[9]);
827: _call.setUseSOAPAction(true);
828: _call.setSOAPActionURI("");
829: _call
830: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
831: _call.setOperationName(new javax.xml.namespace.QName(
832: "http://josso.org/gateway/session/service/ws/impl",
833: "invalidate"));
834:
835: setRequestHeaders(_call);
836: setAttachments(_call);
837: try {
838: java.lang.Object _resp = _call
839: .invoke(new java.lang.Object[] { in0 });
840:
841: if (_resp instanceof java.rmi.RemoteException) {
842: throw (java.rmi.RemoteException) _resp;
843: }
844: extractAttachments(_call);
845: } catch (org.apache.axis.AxisFault axisFaultException) {
846: if (axisFaultException.detail != null) {
847: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
848: throw (java.rmi.RemoteException) axisFaultException.detail;
849: }
850: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.NoSuchSessionException) {
851: throw (org.josso.gateway.session.service.ws.impl.NoSuchSessionException) axisFaultException.detail;
852: }
853: if (axisFaultException.detail instanceof org.josso.gateway.session.service.ws.impl.SSOSessionException) {
854: throw (org.josso.gateway.session.service.ws.impl.SSOSessionException) axisFaultException.detail;
855: }
856: }
857: throw axisFaultException;
858: }
859: }
860:
861: }
|