001: /**
002: * TableAppSoapBindingStub.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis 1.2RC2 Nov 16, 2004 (12:19:44 EST) WSDL2Java emitter.
006: */package tableappclient.business.axis;
007:
008: public class TableAppSoapBindingStub extends
009: org.apache.axis.client.Stub implements
010: tableappclient.business.axis.WelcomePresentation {
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: oper = new org.apache.axis.description.OperationDesc();
026: oper.setName("tableDoc");
027: oper.setReturnType(new javax.xml.namespace.QName(
028: "http://xml.apache.org/xml-soap", "Document"));
029: oper.setReturnClass(org.w3c.dom.Document.class);
030: oper.setReturnQName(new javax.xml.namespace.QName("",
031: "tableDocReturn"));
032: oper.setStyle(org.apache.axis.constants.Style.RPC);
033: oper.setUse(org.apache.axis.constants.Use.ENCODED);
034: _operations[0] = oper;
035:
036: oper = new org.apache.axis.description.OperationDesc();
037: oper.setName("returnAccess");
038: oper.setReturnType(new javax.xml.namespace.QName(
039: "urn:tableApp", "access"));
040: oper.setReturnClass(tableapp.spec.Access.class);
041: oper.setReturnQName(new javax.xml.namespace.QName("",
042: "returnAccessReturn"));
043: oper.setStyle(org.apache.axis.constants.Style.RPC);
044: oper.setUse(org.apache.axis.constants.Use.ENCODED);
045: _operations[1] = oper;
046:
047: }
048:
049: public TableAppSoapBindingStub() throws org.apache.axis.AxisFault {
050: this (null);
051: }
052:
053: public TableAppSoapBindingStub(java.net.URL endpointURL,
054: javax.xml.rpc.Service service)
055: throws org.apache.axis.AxisFault {
056: this (service);
057: super .cachedEndpoint = endpointURL;
058: }
059:
060: public TableAppSoapBindingStub(javax.xml.rpc.Service service)
061: throws org.apache.axis.AxisFault {
062: if (service == null) {
063: super .service = new org.apache.axis.client.Service();
064: } else {
065: super .service = service;
066: }
067: java.lang.Class cls;
068: javax.xml.namespace.QName qName;
069: java.lang.Class accsf = tableapp.business.axis.AccessSerFactory.class;
070: java.lang.Class accdf = tableapp.business.axis.AccessDeserFactory.class;
071: java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
072: java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
073: java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
074: java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
075: java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
076: java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
077: java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
078: java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
079: java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
080: java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
081: qName = new javax.xml.namespace.QName("urn:tableApp", "access");
082: cachedSerQNames.add(qName);
083: cls = tableapp.spec.Access.class;
084: cachedSerClasses.add(cls);
085: cachedSerFactories.add(accsf);
086: cachedDeserFactories.add(accdf);
087:
088: }
089:
090: protected org.apache.axis.client.Call createCall()
091: throws java.rmi.RemoteException {
092: try {
093: org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super .service
094: .createCall();
095: if (super .maintainSessionSet) {
096: _call.setMaintainSession(super .maintainSession);
097: }
098: if (super .cachedUsername != null) {
099: _call.setUsername(super .cachedUsername);
100: }
101: if (super .cachedPassword != null) {
102: _call.setPassword(super .cachedPassword);
103: }
104: if (super .cachedEndpoint != null) {
105: _call.setTargetEndpointAddress(super .cachedEndpoint);
106: }
107: if (super .cachedTimeout != null) {
108: _call.setTimeout(super .cachedTimeout);
109: }
110: if (super .cachedPortName != null) {
111: _call.setPortName(super .cachedPortName);
112: }
113: java.util.Enumeration keys = super .cachedProperties.keys();
114: while (keys.hasMoreElements()) {
115: java.lang.String key = (java.lang.String) keys
116: .nextElement();
117: _call.setProperty(key, super .cachedProperties.get(key));
118: }
119: // All the type mapping information is registered
120: // when the first call is made.
121: // The type mapping information is actually registered in
122: // the TypeMappingRegistry of the service, which
123: // is the reason why registration is only needed for the first call.
124: synchronized (this ) {
125: if (firstCall()) {
126: // must set encoding style before registering serializers
127: _call
128: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
129: _call
130: .setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
131: for (int i = 0; i < cachedSerFactories.size(); ++i) {
132: java.lang.Class cls = (java.lang.Class) cachedSerClasses
133: .get(i);
134: javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
135: .get(i);
136: java.lang.Class sf = (java.lang.Class) cachedSerFactories
137: .get(i);
138: java.lang.Class df = (java.lang.Class) cachedDeserFactories
139: .get(i);
140: _call.registerTypeMapping(cls, qName, sf, df,
141: false);
142: }
143: }
144: }
145: return _call;
146: } catch (java.lang.Throwable _t) {
147: throw new org.apache.axis.AxisFault(
148: "Failure trying to get the Call object", _t);
149: }
150: }
151:
152: public org.w3c.dom.Document tableDoc()
153: throws java.rmi.RemoteException {
154: if (super .cachedEndpoint == null) {
155: throw new org.apache.axis.NoEndPointException();
156: }
157: org.apache.axis.client.Call _call = createCall();
158: _call.setOperation(_operations[0]);
159: _call.setUseSOAPAction(true);
160: _call.setSOAPActionURI("");
161: _call
162: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
163: _call.setOperationName(new javax.xml.namespace.QName(
164: "urn:tableApp", "tableDoc"));
165:
166: setRequestHeaders(_call);
167: setAttachments(_call);
168: java.lang.Object _resp = _call
169: .invoke(new java.lang.Object[] {});
170:
171: if (_resp instanceof java.rmi.RemoteException) {
172: throw (java.rmi.RemoteException) _resp;
173: } else {
174: extractAttachments(_call);
175: try {
176: return (org.w3c.dom.Document) _resp;
177: } catch (java.lang.Exception _exception) {
178: return (org.w3c.dom.Document) org.apache.axis.utils.JavaUtils
179: .convert(_resp, org.w3c.dom.Document.class);
180: }
181: }
182: }
183:
184: public tableapp.spec.Access returnAccess()
185: throws java.rmi.RemoteException {
186: if (super .cachedEndpoint == null) {
187: throw new org.apache.axis.NoEndPointException();
188: }
189: org.apache.axis.client.Call _call = createCall();
190: _call.setOperation(_operations[1]);
191: _call.setUseSOAPAction(true);
192: _call.setSOAPActionURI("");
193: _call
194: .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
195: _call.setOperationName(new javax.xml.namespace.QName(
196: "urn:tableApp", "returnAccess"));
197:
198: setRequestHeaders(_call);
199: setAttachments(_call);
200: java.lang.Object _resp = _call
201: .invoke(new java.lang.Object[] {});
202:
203: if (_resp instanceof java.rmi.RemoteException) {
204: throw (java.rmi.RemoteException) _resp;
205: } else {
206: extractAttachments(_call);
207: try {
208: return (tableapp.spec.Access) _resp;
209: } catch (java.lang.Exception _exception) {
210: return (tableapp.spec.Access) org.apache.axis.utils.JavaUtils
211: .convert(_resp, tableapp.spec.Access.class);
212: }
213: }
214: }
215:
216: }
|