001: /**
002: * AdminWebServiceSoapBindingStub.java
003: *
004: * This file was auto-generated from WSDL
005: * by the Apache Axis WSDL2Java emitter.
006: */package com.sun.j2ee.blueprints.admin.webservice;
007:
008:public class AdminWebServiceSoapBindingStub extends org.apache.axis.client.Stub implements com.sun.j2ee.blueprints.admin.webservice.AdminServiceImpl {
009: private java.util.Vector cachedSerClasses = new java.util.Vector();
010: private java.util.Vector cachedSerQNames = new java.util.Vector();
011: private java.util.Vector cachedSerFactories = new java.util.Vector();
012: private java.util.Vector cachedDeserFactories = new java.util.Vector();
013:
014: static org.apache.axis.description.OperationDesc [] _operations;
015:
016: static {
017: _operations = new org.apache.axis.description.OperationDesc[4];
018: org.apache.axis.description.OperationDesc oper;
019: oper = new org.apache.axis.description.OperationDesc();
020: oper.setName("update");
021: oper.addParameter(new javax.xml.namespace.QName("", "in0"), new javax.xml.namespace.QName("webservice.admin.blueprints.j2ee.sun.com", "AdminService_OrderApprovalTO"), com.sun.j2ee.blueprints.admin.webservice.AdminService_OrderApprovalTO.class, org.apache.axis.description.ParameterDesc.IN, false, false);
022: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
023: oper.setStyle(org.apache.axis.enum.Style.RPC);
024: oper.setUse(org.apache.axis.enum.Use.ENCODED);
025: _operations[0] = oper;
026:
027: oper = new org.apache.axis.description.OperationDesc();
028: oper.setName("update");
029: oper.addParameter(new javax.xml.namespace.QName("", "in0"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
030: oper.addParameter(new javax.xml.namespace.QName("", "in1"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
031: oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
032: oper.setStyle(org.apache.axis.enum.Style.RPC);
033: oper.setUse(org.apache.axis.enum.Use.ENCODED);
034: _operations[1] = oper;
035:
036: oper = new org.apache.axis.description.OperationDesc();
037: oper.setName("getOrdersByStatus");
038: oper.addParameter(new javax.xml.namespace.QName("", "in0"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
039: oper.setReturnType(new javax.xml.namespace.QName("webservice.admin.blueprints.j2ee.sun.com", "AdminService_OrdersTO"));
040: oper.setReturnClass(com.sun.j2ee.blueprints.admin.webservice.AdminService_OrdersTO.class);
041: oper.setReturnQName(new javax.xml.namespace.QName("", "getOrdersByStatusReturn"));
042: oper.setStyle(org.apache.axis.enum.Style.RPC);
043: oper.setUse(org.apache.axis.enum.Use.ENCODED);
044: _operations[2] = oper;
045:
046: oper = new org.apache.axis.description.OperationDesc();
047: oper.setName("getChartInfo");
048: oper.addParameter(new javax.xml.namespace.QName("", "in0"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
049: oper.addParameter(new javax.xml.namespace.QName("", "in1"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, org.apache.axis.description.ParameterDesc.IN, false, false);
050: oper.addParameter(new javax.xml.namespace.QName("", "in2"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "dateTime"), java.util.Calendar.class, org.apache.axis.description.ParameterDesc.IN, false, false);
051: oper.addParameter(new javax.xml.namespace.QName("", "in3"), new javax.xml.namespace.QName("http://www.w3.org/2001/XMLSchema", "string"), java.lang.String.class, org.apache.axis.description.ParameterDesc.IN, false, false);
052: oper.setReturnType(new javax.xml.namespace.QName("http://xml.apache.org/xml-soap", "Map"));
053: oper.setReturnClass(java.util.HashMap.class);
054: oper.setReturnQName(new javax.xml.namespace.QName("", "getChartInfoReturn"));
055: oper.setStyle(org.apache.axis.enum.Style.RPC);
056: oper.setUse(org.apache.axis.enum.Use.ENCODED);
057: _operations[3] = oper;
058:
059: }
060:
061: public AdminWebServiceSoapBindingStub() throws org.apache.axis.AxisFault {
062: this (null);
063: }
064:
065: public AdminWebServiceSoapBindingStub(java.net.URL endpointURL, javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
066: this (service);
067: super .cachedEndpoint = endpointURL;
068: }
069:
070: public AdminWebServiceSoapBindingStub(javax.xml.rpc.Service service) throws org.apache.axis.AxisFault {
071: if (service == null) {
072: super .service = new org.apache.axis.client.Service();
073: } else {
074: super .service = service;
075: }
076: java.lang.Class cls;
077: javax.xml.namespace.QName qName;
078: java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
079: java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
080: java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
081: java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
082: java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
083: java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
084: java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
085: java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
086: qName = new javax.xml.namespace.QName("webservice.admin.blueprints.j2ee.sun.com", "AdminService_OrderApprovalTO");
087: cachedSerQNames.add(qName);
088: cls = com.sun.j2ee.blueprints.admin.webservice.AdminService_OrderApprovalTO.class;
089: cachedSerClasses.add(cls);
090: cachedSerFactories.add(beansf);
091: cachedDeserFactories.add(beandf);
092:
093: qName = new javax.xml.namespace.QName("webservice.admin.blueprints.j2ee.sun.com", "AdminService_Order");
094: cachedSerQNames.add(qName);
095: cls = com.sun.j2ee.blueprints.admin.webservice.AdminService_Order.class;
096: cachedSerClasses.add(cls);
097: cachedSerFactories.add(beansf);
098: cachedDeserFactories.add(beandf);
099:
100: qName = new javax.xml.namespace.QName("webservice.admin.blueprints.j2ee.sun.com", "AdminService_OrdersTO");
101: cachedSerQNames.add(qName);
102: cls = com.sun.j2ee.blueprints.admin.webservice.AdminService_OrdersTO.class;
103: cachedSerClasses.add(cls);
104: cachedSerFactories.add(beansf);
105: cachedDeserFactories.add(beandf);
106:
107: qName = new javax.xml.namespace.QName("http://localhost:8080/admin/services/AdminWebService", "ArrayOf_xsd_string");
108: cachedSerQNames.add(qName);
109: cls = java.lang.String[].class;
110: cachedSerClasses.add(cls);
111: cachedSerFactories.add(arraysf);
112: cachedDeserFactories.add(arraydf);
113:
114: qName = new javax.xml.namespace.QName("http://localhost:8080/admin/services/AdminWebService", "ArrayOf_tns1_AdminService_Order");
115: cachedSerQNames.add(qName);
116: cls = com.sun.j2ee.blueprints.admin.webservice.AdminService_Order[].class;
117: cachedSerClasses.add(cls);
118: cachedSerFactories.add(arraysf);
119: cachedDeserFactories.add(arraydf);
120:
121: }
122:
123: private org.apache.axis.client.Call createCall() throws java.rmi.RemoteException {
124: try {
125: org.apache.axis.client.Call _call =
126: (org.apache.axis.client.Call) super .service.createCall();
127: if (super .maintainSessionSet) {
128: _call.setMaintainSession(super .maintainSession);
129: }
130: if (super .cachedUsername != null) {
131: _call.setUsername(super .cachedUsername);
132: }
133: if (super .cachedPassword != null) {
134: _call.setPassword(super .cachedPassword);
135: }
136: if (super .cachedEndpoint != null) {
137: _call.setTargetEndpointAddress(super .cachedEndpoint);
138: }
139: if (super .cachedTimeout != null) {
140: _call.setTimeout(super .cachedTimeout);
141: }
142: if (super .cachedPortName != null) {
143: _call.setPortName(super .cachedPortName);
144: }
145: java.util.Enumeration keys = super .cachedProperties.keys();
146: while (keys.hasMoreElements()) {
147: java.lang.String key = (java.lang.String) keys.nextElement();
148: _call.setProperty(key, super .cachedProperties.get(key));
149: }
150: // All the type mapping information is registered
151: // when the first call is made.
152: // The type mapping information is actually registered in
153: // the TypeMappingRegistry of the service, which
154: // is the reason why registration is only needed for the first call.
155: synchronized (this ) {
156: if (firstCall()) {
157: // must set encoding style before registering serializers
158: _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
159: _call.setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
160: for (int i = 0; i < cachedSerFactories.size(); ++i) {
161: java.lang.Class cls = (java.lang.Class) cachedSerClasses.get(i);
162: javax.xml.namespace.QName qName =
163: (javax.xml.namespace.QName) cachedSerQNames.get(i);
164: java.lang.Class sf = (java.lang.Class)
165: cachedSerFactories.get(i);
166: java.lang.Class df = (java.lang.Class)
167: cachedDeserFactories.get(i);
168: _call.registerTypeMapping(cls, qName, sf, df, false);
169: }
170: }
171: }
172: return _call;
173: }
174: catch (java.lang.Throwable t) {
175: throw new org.apache.axis.AxisFault("Failure trying to get the Call object", t);
176: }
177: }
178:
179: public void update(com.sun.j2ee.blueprints.admin.webservice.AdminService_OrderApprovalTO in0) throws java.rmi.RemoteException {
180: if (super .cachedEndpoint == null) {
181: throw new org.apache.axis.NoEndPointException();
182: }
183: org.apache.axis.client.Call _call = createCall();
184: _call.setOperation(_operations[0]);
185: _call.setUseSOAPAction(true);
186: _call.setSOAPActionURI("");
187: _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
188: _call.setOperationName(new javax.xml.namespace.QName("http://webservice.admin.blueprints.j2ee.sun.com", "update"));
189:
190: setRequestHeaders(_call);
191: setAttachments(_call);
192: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0});
193:
194: if (_resp instanceof java.rmi.RemoteException) {
195: throw (java.rmi.RemoteException)_resp;
196: }
197: extractAttachments(_call);
198: }
199:
200: public void update(java.lang.String in0, java.lang.String in1) throws java.rmi.RemoteException {
201: if (super .cachedEndpoint == null) {
202: throw new org.apache.axis.NoEndPointException();
203: }
204: org.apache.axis.client.Call _call = createCall();
205: _call.setOperation(_operations[1]);
206: _call.setUseSOAPAction(true);
207: _call.setSOAPActionURI("");
208: _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
209: _call.setOperationName(new javax.xml.namespace.QName("http://webservice.admin.blueprints.j2ee.sun.com", "update"));
210:
211: setRequestHeaders(_call);
212: setAttachments(_call);
213: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0, in1});
214:
215: if (_resp instanceof java.rmi.RemoteException) {
216: throw (java.rmi.RemoteException)_resp;
217: }
218: extractAttachments(_call);
219: }
220:
221: public com.sun.j2ee.blueprints.admin.webservice.AdminService_OrdersTO getOrdersByStatus(java.lang.String in0) throws java.rmi.RemoteException {
222: if (super .cachedEndpoint == null) {
223: throw new org.apache.axis.NoEndPointException();
224: }
225: org.apache.axis.client.Call _call = createCall();
226: _call.setOperation(_operations[2]);
227: _call.setUseSOAPAction(true);
228: _call.setSOAPActionURI("");
229: _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
230: _call.setOperationName(new javax.xml.namespace.QName("http://webservice.admin.blueprints.j2ee.sun.com", "getOrdersByStatus"));
231:
232: setRequestHeaders(_call);
233: setAttachments(_call);
234: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0});
235:
236: if (_resp instanceof java.rmi.RemoteException) {
237: throw (java.rmi.RemoteException)_resp;
238: }
239: else {
240: extractAttachments(_call);
241: try {
242: return (com.sun.j2ee.blueprints.admin.webservice.AdminService_OrdersTO) _resp;
243: } catch (java.lang.Exception _exception) {
244: return (com.sun.j2ee.blueprints.admin.webservice.AdminService_OrdersTO) org.apache.axis.utils.JavaUtils.convert(_resp, com.sun.j2ee.blueprints.admin.webservice.AdminService_OrdersTO.class);
245: }
246: }
247: }
248:
249: public java.util.HashMap getChartInfo(java.lang.String in0, java.util.Calendar in1, java.util.Calendar in2, java.lang.String in3) throws java.rmi.RemoteException {
250: if (super .cachedEndpoint == null) {
251: throw new org.apache.axis.NoEndPointException();
252: }
253: org.apache.axis.client.Call _call = createCall();
254: _call.setOperation(_operations[3]);
255: _call.setUseSOAPAction(true);
256: _call.setSOAPActionURI("");
257: _call.setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
258: _call.setOperationName(new javax.xml.namespace.QName("http://webservice.admin.blueprints.j2ee.sun.com", "getChartInfo"));
259:
260: setRequestHeaders(_call);
261: setAttachments(_call);
262: java.lang.Object _resp = _call.invoke(new java.lang.Object[] {in0, in1, in2, in3});
263:
264: if (_resp instanceof java.rmi.RemoteException) {
265: throw (java.rmi.RemoteException)_resp;
266: }
267: else {
268: extractAttachments(_call);
269: try {
270: return (java.util.HashMap) _resp;
271: } catch (java.lang.Exception _exception) {
272: return (java.util.HashMap) org.apache.axis.utils.JavaUtils.convert(_resp, java.util.HashMap.class);
273: }
274: }
275: }
276:
277:}
|