001: /**
002: * SSOEventManagerClientSoapBindingStub.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.event.client.ws.impl;
007:
008: public class SSOEventManagerClientSoapBindingStub extends
009: org.apache.axis.client.Stub implements
010: org.josso.gateway.event.client.ws.impl.SSOEventManagerClient {
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[2];
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("fireSessionEvent");
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: param = new org.apache.axis.description.ParameterDesc(
036: new javax.xml.namespace.QName("", "in1"),
037: org.apache.axis.description.ParameterDesc.IN,
038: new javax.xml.namespace.QName(
039: "http://www.w3.org/2001/XMLSchema", "string"),
040: java.lang.String.class, false, false);
041: oper.addParameter(param);
042: param = new org.apache.axis.description.ParameterDesc(
043: new javax.xml.namespace.QName("", "in2"),
044: org.apache.axis.description.ParameterDesc.IN,
045: new javax.xml.namespace.QName(
046: "http://www.w3.org/2001/XMLSchema", "string"),
047: java.lang.String.class, false, false);
048: oper.addParameter(param);
049: param = new org.apache.axis.description.ParameterDesc(
050: new javax.xml.namespace.QName("", "in3"),
051: org.apache.axis.description.ParameterDesc.IN,
052: new javax.xml.namespace.QName(
053: "http://www.w3.org/2001/XMLSchema", "anyType"),
054: java.lang.Object.class, false, false);
055: oper.addParameter(param);
056: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
057: oper.setStyle(org.apache.axis.constants.Style.RPC);
058: oper.setUse(org.apache.axis.constants.Use.ENCODED);
059: oper
060: .addFault(new org.apache.axis.description.FaultDesc(
061: new javax.xml.namespace.QName(
062: "http://josso.org/gateway/event/client/ws/impl",
063: "fault"),
064: "org.josso.gateway.event.client.ws.impl.SSOEventException",
065: new javax.xml.namespace.QName(
066: "http://josso.org/gateway/event/client/ws/impl",
067: "SSOEventException"), true));
068: _operations[0] = oper;
069:
070: oper = new org.apache.axis.description.OperationDesc();
071: oper.setName("fireSSOEvent");
072: param = new org.apache.axis.description.ParameterDesc(
073: new javax.xml.namespace.QName("", "in0"),
074: org.apache.axis.description.ParameterDesc.IN,
075: new javax.xml.namespace.QName(
076: "http://josso.org/gateway/event/client/ws/impl",
077: "SSOEvent"),
078: org.josso.gateway.event.client.ws.impl.SSOEvent.class,
079: false, false);
080: oper.addParameter(param);
081: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
082: oper.setStyle(org.apache.axis.constants.Style.RPC);
083: oper.setUse(org.apache.axis.constants.Use.ENCODED);
084: oper
085: .addFault(new org.apache.axis.description.FaultDesc(
086: new javax.xml.namespace.QName(
087: "http://josso.org/gateway/event/client/ws/impl",
088: "fault"),
089: "org.josso.gateway.event.client.ws.impl.SSOEventException",
090: new javax.xml.namespace.QName(
091: "http://josso.org/gateway/event/client/ws/impl",
092: "SSOEventException"), true));
093: _operations[1] = oper;
094:
095: }
096:
097: public SSOEventManagerClientSoapBindingStub()
098: throws org.apache.axis.AxisFault {
099: this (null);
100: }
101:
102: public SSOEventManagerClientSoapBindingStub(
103: java.net.URL endpointURL, javax.xml.rpc.Service service)
104: throws org.apache.axis.AxisFault {
105: this (service);
106: super .cachedEndpoint = endpointURL;
107: }
108:
109: public SSOEventManagerClientSoapBindingStub(
110: javax.xml.rpc.Service service)
111: throws org.apache.axis.AxisFault {
112: if (service == null) {
113: super .service = new org.apache.axis.client.Service();
114: } else {
115: super .service = service;
116: }
117: ((org.apache.axis.client.Service) super .service)
118: .setTypeMappingVersion("1.2");
119: java.lang.Class cls;
120: javax.xml.namespace.QName qName;
121: javax.xml.namespace.QName qName2;
122: java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
123: java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
124: java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
125: java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
126: java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
127: java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
128: java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
129: java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
130: java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
131: java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
132: qName = new javax.xml.namespace.QName(
133: "http://josso.org/gateway/event/client/ws/impl",
134: "SSOEvent");
135: cachedSerQNames.add(qName);
136: cls = org.josso.gateway.event.client.ws.impl.SSOEvent.class;
137: cachedSerClasses.add(cls);
138: cachedSerFactories.add(beansf);
139: cachedDeserFactories.add(beandf);
140:
141: qName = new javax.xml.namespace.QName(
142: "http://josso.org/gateway/event/client/ws/impl",
143: "SSOEventException");
144: cachedSerQNames.add(qName);
145: cls = org.josso.gateway.event.client.ws.impl.SSOEventException.class;
146: cachedSerClasses.add(cls);
147: cachedSerFactories.add(beansf);
148: cachedDeserFactories.add(beandf);
149:
150: }
151:
152: protected org.apache.axis.client.Call createCall()
153: throws java.rmi.RemoteException {
154: try {
155: org.apache.axis.client.Call _call = super ._createCall();
156: if (super .maintainSessionSet) {
157: _call.setMaintainSession(super .maintainSession);
158: }
159: if (super .cachedUsername != null) {
160: _call.setUsername(super .cachedUsername);
161: }
162: if (super .cachedPassword != null) {
163: _call.setPassword(super .cachedPassword);
164: }
165: if (super .cachedEndpoint != null) {
166: _call.setTargetEndpointAddress(super .cachedEndpoint);
167: }
168: if (super .cachedTimeout != null) {
169: _call.setTimeout(super .cachedTimeout);
170: }
171: if (super .cachedPortName != null) {
172: _call.setPortName(super .cachedPortName);
173: }
174: java.util.Enumeration keys = super .cachedProperties.keys();
175: while (keys.hasMoreElements()) {
176: java.lang.String key = (java.lang.String) keys
177: .nextElement();
178: _call.setProperty(key, super .cachedProperties.get(key));
179: }
180: // All the type mapping information is registered
181: // when the first call is made.
182: // The type mapping information is actually registered in
183: // the TypeMappingRegistry of the service, which
184: // is the reason why registration is only needed for the first call.
185: synchronized (this ) {
186: if (firstCall()) {
187: // must set encoding style before registering serializers
188: _call
189: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
190: _call
191: .setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
192: for (int i = 0; i < cachedSerFactories.size(); ++i) {
193: java.lang.Class cls = (java.lang.Class) cachedSerClasses
194: .get(i);
195: javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
196: .get(i);
197: java.lang.Object x = cachedSerFactories.get(i);
198: if (x instanceof Class) {
199: java.lang.Class sf = (java.lang.Class) cachedSerFactories
200: .get(i);
201: java.lang.Class df = (java.lang.Class) cachedDeserFactories
202: .get(i);
203: _call.registerTypeMapping(cls, qName, sf,
204: df, false);
205: } else if (x instanceof javax.xml.rpc.encoding.SerializerFactory) {
206: org.apache.axis.encoding.SerializerFactory sf = (org.apache.axis.encoding.SerializerFactory) cachedSerFactories
207: .get(i);
208: org.apache.axis.encoding.DeserializerFactory df = (org.apache.axis.encoding.DeserializerFactory) cachedDeserFactories
209: .get(i);
210: _call.registerTypeMapping(cls, qName, sf,
211: df, false);
212: }
213: }
214: }
215: }
216: return _call;
217: } catch (java.lang.Throwable _t) {
218: throw new org.apache.axis.AxisFault(
219: "Failure trying to get the Call object", _t);
220: }
221: }
222:
223: public void fireSessionEvent(java.lang.String in0,
224: java.lang.String in1, java.lang.String in2,
225: java.lang.Object in3) throws java.rmi.RemoteException,
226: org.josso.gateway.event.client.ws.impl.SSOEventException {
227: if (super .cachedEndpoint == null) {
228: throw new org.apache.axis.NoEndPointException();
229: }
230: org.apache.axis.client.Call _call = createCall();
231: _call.setOperation(_operations[0]);
232: _call.setUseSOAPAction(true);
233: _call.setSOAPActionURI("");
234: _call
235: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
236: _call.setOperationName(new javax.xml.namespace.QName(
237: "http://josso.org/gateway/event/client/ws/impl",
238: "fireSessionEvent"));
239:
240: setRequestHeaders(_call);
241: setAttachments(_call);
242: try {
243: java.lang.Object _resp = _call
244: .invoke(new java.lang.Object[] { in0, in1, in2, in3 });
245:
246: if (_resp instanceof java.rmi.RemoteException) {
247: throw (java.rmi.RemoteException) _resp;
248: }
249: extractAttachments(_call);
250: } catch (org.apache.axis.AxisFault axisFaultException) {
251: if (axisFaultException.detail != null) {
252: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
253: throw (java.rmi.RemoteException) axisFaultException.detail;
254: }
255: if (axisFaultException.detail instanceof org.josso.gateway.event.client.ws.impl.SSOEventException) {
256: throw (org.josso.gateway.event.client.ws.impl.SSOEventException) axisFaultException.detail;
257: }
258: }
259: throw axisFaultException;
260: }
261: }
262:
263: public void fireSSOEvent(
264: org.josso.gateway.event.client.ws.impl.SSOEvent in0)
265: throws java.rmi.RemoteException,
266: org.josso.gateway.event.client.ws.impl.SSOEventException {
267: if (super .cachedEndpoint == null) {
268: throw new org.apache.axis.NoEndPointException();
269: }
270: org.apache.axis.client.Call _call = createCall();
271: _call.setOperation(_operations[1]);
272: _call.setUseSOAPAction(true);
273: _call.setSOAPActionURI("");
274: _call
275: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
276: _call.setOperationName(new javax.xml.namespace.QName(
277: "http://josso.org/gateway/event/client/ws/impl",
278: "fireSSOEvent"));
279:
280: setRequestHeaders(_call);
281: setAttachments(_call);
282: try {
283: java.lang.Object _resp = _call
284: .invoke(new java.lang.Object[] { in0 });
285:
286: if (_resp instanceof java.rmi.RemoteException) {
287: throw (java.rmi.RemoteException) _resp;
288: }
289: extractAttachments(_call);
290: } catch (org.apache.axis.AxisFault axisFaultException) {
291: if (axisFaultException.detail != null) {
292: if (axisFaultException.detail instanceof java.rmi.RemoteException) {
293: throw (java.rmi.RemoteException) axisFaultException.detail;
294: }
295: if (axisFaultException.detail instanceof org.josso.gateway.event.client.ws.impl.SSOEventException) {
296: throw (org.josso.gateway.event.client.ws.impl.SSOEventException) axisFaultException.detail;
297: }
298: }
299: throw axisFaultException;
300: }
301: }
302:
303: }
|