Source Code Cross Referenced for PhoneBookSoapBindingStub.java in  » J2EE » Enhydra-Demos » phoneList » business » axis » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » J2EE » Enhydra Demos » phoneList.business.axis 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * PhoneBookSoapBindingStub.java
003:         *
004:         * This file was auto-generated from WSDL
005:         * by the Apache Axis 1.2beta Mar 31, 2004 (12:47:03 EST) WSDL2Java emitter.
006:         */package phoneList.business.axis;
007:
008:        public class PhoneBookSoapBindingStub extends
009:                org.apache.axis.client.Stub implements 
010:                phoneList.business.axis.PhoneList {
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[5];
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("getLists");
027:                oper.setReturnType(new javax.xml.namespace.QName(
028:                        "urn:phoneBook", "ArrayOf_apachesoap_Vector"));
029:                oper.setReturnClass(java.lang.Object[][].class);
030:                oper.setReturnQName(new javax.xml.namespace.QName("",
031:                        "getListsReturn"));
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("addPerson");
038:                oper.addParameter(
039:                        new javax.xml.namespace.QName("", "firstName"),
040:                        new javax.xml.namespace.QName(
041:                                "http://www.w3.org/2001/XMLSchema", "string"),
042:                        java.lang.String.class,
043:                        org.apache.axis.description.ParameterDesc.IN, false,
044:                        false);
045:                oper.addParameter(
046:                        new javax.xml.namespace.QName("", "lastName"),
047:                        new javax.xml.namespace.QName(
048:                                "http://www.w3.org/2001/XMLSchema", "string"),
049:                        java.lang.String.class,
050:                        org.apache.axis.description.ParameterDesc.IN, false,
051:                        false);
052:                oper.addParameter(new javax.xml.namespace.QName("",
053:                        "phoneNumber"), new javax.xml.namespace.QName(
054:                        "http://www.w3.org/2001/XMLSchema", "string"),
055:                        java.lang.String.class,
056:                        org.apache.axis.description.ParameterDesc.IN, false,
057:                        false);
058:                oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
059:                oper.setStyle(org.apache.axis.constants.Style.RPC);
060:                oper.setUse(org.apache.axis.constants.Use.ENCODED);
061:                _operations[1] = oper;
062:
063:                oper = new org.apache.axis.description.OperationDesc();
064:                oper.setName("deletePerson");
065:                oper.addParameter(new javax.xml.namespace.QName("", "id"),
066:                        new javax.xml.namespace.QName(
067:                                "http://www.w3.org/2001/XMLSchema", "string"),
068:                        java.lang.String.class,
069:                        org.apache.axis.description.ParameterDesc.IN, false,
070:                        false);
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:                _operations[2] = oper;
075:
076:                oper = new org.apache.axis.description.OperationDesc();
077:                oper.setName("modifyPerson");
078:                oper.addParameter(new javax.xml.namespace.QName("", "id"),
079:                        new javax.xml.namespace.QName(
080:                                "http://www.w3.org/2001/XMLSchema", "string"),
081:                        java.lang.String.class,
082:                        org.apache.axis.description.ParameterDesc.IN, false,
083:                        false);
084:                oper.addParameter(new javax.xml.namespace.QName("",
085:                        "newFirstName"), new javax.xml.namespace.QName(
086:                        "http://www.w3.org/2001/XMLSchema", "string"),
087:                        java.lang.String.class,
088:                        org.apache.axis.description.ParameterDesc.IN, false,
089:                        false);
090:                oper.addParameter(new javax.xml.namespace.QName("",
091:                        "newLastName"), new javax.xml.namespace.QName(
092:                        "http://www.w3.org/2001/XMLSchema", "string"),
093:                        java.lang.String.class,
094:                        org.apache.axis.description.ParameterDesc.IN, false,
095:                        false);
096:                oper.addParameter(new javax.xml.namespace.QName("",
097:                        "newPhoneNumber"), new javax.xml.namespace.QName(
098:                        "http://www.w3.org/2001/XMLSchema", "string"),
099:                        java.lang.String.class,
100:                        org.apache.axis.description.ParameterDesc.IN, false,
101:                        false);
102:                oper.setReturnType(org.apache.axis.encoding.XMLType.AXIS_VOID);
103:                oper.setStyle(org.apache.axis.constants.Style.RPC);
104:                oper.setUse(org.apache.axis.constants.Use.ENCODED);
105:                _operations[3] = oper;
106:
107:                oper = new org.apache.axis.description.OperationDesc();
108:                oper.setName("getPersonData");
109:                oper.addParameter(new javax.xml.namespace.QName("", "id"),
110:                        new javax.xml.namespace.QName(
111:                                "http://www.w3.org/2001/XMLSchema", "string"),
112:                        java.lang.String.class,
113:                        org.apache.axis.description.ParameterDesc.IN, false,
114:                        false);
115:                oper.setReturnType(new javax.xml.namespace.QName(
116:                        "urn:phoneBook", "ArrayOf_xsd_string"));
117:                oper.setReturnClass(java.lang.String[].class);
118:                oper.setReturnQName(new javax.xml.namespace.QName("",
119:                        "getPersonDataReturn"));
120:                oper.setStyle(org.apache.axis.constants.Style.RPC);
121:                oper.setUse(org.apache.axis.constants.Use.ENCODED);
122:                _operations[4] = oper;
123:
124:            }
125:
126:            public PhoneBookSoapBindingStub() throws org.apache.axis.AxisFault {
127:                this (null);
128:            }
129:
130:            public PhoneBookSoapBindingStub(java.net.URL endpointURL,
131:                    javax.xml.rpc.Service service)
132:                    throws org.apache.axis.AxisFault {
133:                this (service);
134:                super .cachedEndpoint = endpointURL;
135:            }
136:
137:            public PhoneBookSoapBindingStub(javax.xml.rpc.Service service)
138:                    throws org.apache.axis.AxisFault {
139:                if (service == null) {
140:                    super .service = new org.apache.axis.client.Service();
141:                } else {
142:                    super .service = service;
143:                }
144:                java.lang.Class cls;
145:                javax.xml.namespace.QName qName;
146:                java.lang.Class beansf = org.apache.axis.encoding.ser.BeanSerializerFactory.class;
147:                java.lang.Class beandf = org.apache.axis.encoding.ser.BeanDeserializerFactory.class;
148:                java.lang.Class enumsf = org.apache.axis.encoding.ser.EnumSerializerFactory.class;
149:                java.lang.Class enumdf = org.apache.axis.encoding.ser.EnumDeserializerFactory.class;
150:                java.lang.Class arraysf = org.apache.axis.encoding.ser.ArraySerializerFactory.class;
151:                java.lang.Class arraydf = org.apache.axis.encoding.ser.ArrayDeserializerFactory.class;
152:                java.lang.Class simplesf = org.apache.axis.encoding.ser.SimpleSerializerFactory.class;
153:                java.lang.Class simpledf = org.apache.axis.encoding.ser.SimpleDeserializerFactory.class;
154:                java.lang.Class simplelistsf = org.apache.axis.encoding.ser.SimpleListSerializerFactory.class;
155:                java.lang.Class simplelistdf = org.apache.axis.encoding.ser.SimpleListDeserializerFactory.class;
156:                qName = new javax.xml.namespace.QName("urn:phoneBook",
157:                        "ArrayOf_xsd_string");
158:                cachedSerQNames.add(qName);
159:                cls = java.lang.String[].class;
160:                cachedSerClasses.add(cls);
161:                cachedSerFactories.add(arraysf);
162:                cachedDeserFactories.add(arraydf);
163:
164:                qName = new javax.xml.namespace.QName("urn:phoneBook",
165:                        "ArrayOf_apachesoap_Vector");
166:                cachedSerQNames.add(qName);
167:                cls = java.lang.Object[][].class;
168:                cachedSerClasses.add(cls);
169:                cachedSerFactories.add(arraysf);
170:                cachedDeserFactories.add(arraydf);
171:
172:            }
173:
174:            private org.apache.axis.client.Call createCall()
175:                    throws java.rmi.RemoteException {
176:                try {
177:                    org.apache.axis.client.Call _call = (org.apache.axis.client.Call) super .service
178:                            .createCall();
179:                    if (super .maintainSessionSet) {
180:                        _call.setMaintainSession(super .maintainSession);
181:                    }
182:                    if (super .cachedUsername != null) {
183:                        _call.setUsername(super .cachedUsername);
184:                    }
185:                    if (super .cachedPassword != null) {
186:                        _call.setPassword(super .cachedPassword);
187:                    }
188:                    if (super .cachedEndpoint != null) {
189:                        _call.setTargetEndpointAddress(super .cachedEndpoint);
190:                    }
191:                    if (super .cachedTimeout != null) {
192:                        _call.setTimeout(super .cachedTimeout);
193:                    }
194:                    if (super .cachedPortName != null) {
195:                        _call.setPortName(super .cachedPortName);
196:                    }
197:                    java.util.Enumeration keys = super .cachedProperties.keys();
198:                    while (keys.hasMoreElements()) {
199:                        java.lang.String key = (java.lang.String) keys
200:                                .nextElement();
201:                        _call.setProperty(key, super .cachedProperties.get(key));
202:                    }
203:                    // All the type mapping information is registered
204:                    // when the first call is made.
205:                    // The type mapping information is actually registered in
206:                    // the TypeMappingRegistry of the service, which
207:                    // is the reason why registration is only needed for the first call.
208:                    synchronized (this ) {
209:                        if (firstCall()) {
210:                            // must set encoding style before registering serializers
211:                            _call
212:                                    .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
213:                            _call
214:                                    .setEncodingStyle(org.apache.axis.Constants.URI_SOAP11_ENC);
215:                            for (int i = 0; i < cachedSerFactories.size(); ++i) {
216:                                java.lang.Class cls = (java.lang.Class) cachedSerClasses
217:                                        .get(i);
218:                                javax.xml.namespace.QName qName = (javax.xml.namespace.QName) cachedSerQNames
219:                                        .get(i);
220:                                java.lang.Class sf = (java.lang.Class) cachedSerFactories
221:                                        .get(i);
222:                                java.lang.Class df = (java.lang.Class) cachedDeserFactories
223:                                        .get(i);
224:                                _call.registerTypeMapping(cls, qName, sf, df,
225:                                        false);
226:                            }
227:                        }
228:                    }
229:                    return _call;
230:                } catch (java.lang.Throwable _t) {
231:                    throw new org.apache.axis.AxisFault(
232:                            "Failure trying to get the Call object", _t);
233:                }
234:            }
235:
236:            public java.lang.Object[][] getLists()
237:                    throws java.rmi.RemoteException {
238:                if (super .cachedEndpoint == null) {
239:                    throw new org.apache.axis.NoEndPointException();
240:                }
241:                org.apache.axis.client.Call _call = createCall();
242:                _call.setOperation(_operations[0]);
243:                _call.setUseSOAPAction(true);
244:                _call.setSOAPActionURI("");
245:                _call
246:                        .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
247:                _call.setOperationName(new javax.xml.namespace.QName(
248:                        "urn:phoneBook", "getLists"));
249:
250:                setRequestHeaders(_call);
251:                setAttachments(_call);
252:                java.lang.Object _resp = _call
253:                        .invoke(new java.lang.Object[] {});
254:
255:                if (_resp instanceof  java.rmi.RemoteException) {
256:                    throw (java.rmi.RemoteException) _resp;
257:                } else {
258:                    extractAttachments(_call);
259:                    try {
260:                        return (java.lang.Object[][]) _resp;
261:                    } catch (java.lang.Exception _exception) {
262:                        return (java.lang.Object[][]) org.apache.axis.utils.JavaUtils
263:                                .convert(_resp, java.lang.Object[][].class);
264:                    }
265:                }
266:            }
267:
268:            public void addPerson(java.lang.String firstName,
269:                    java.lang.String lastName, java.lang.String phoneNumber)
270:                    throws java.rmi.RemoteException {
271:                if (super .cachedEndpoint == null) {
272:                    throw new org.apache.axis.NoEndPointException();
273:                }
274:                org.apache.axis.client.Call _call = createCall();
275:                _call.setOperation(_operations[1]);
276:                _call.setUseSOAPAction(true);
277:                _call.setSOAPActionURI("");
278:                _call
279:                        .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
280:                _call.setOperationName(new javax.xml.namespace.QName(
281:                        "urn:phoneBook", "addPerson"));
282:
283:                setRequestHeaders(_call);
284:                setAttachments(_call);
285:                java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
286:                        firstName, lastName, phoneNumber });
287:
288:                if (_resp instanceof  java.rmi.RemoteException) {
289:                    throw (java.rmi.RemoteException) _resp;
290:                }
291:                extractAttachments(_call);
292:            }
293:
294:            public void deletePerson(java.lang.String id)
295:                    throws java.rmi.RemoteException {
296:                if (super .cachedEndpoint == null) {
297:                    throw new org.apache.axis.NoEndPointException();
298:                }
299:                org.apache.axis.client.Call _call = createCall();
300:                _call.setOperation(_operations[2]);
301:                _call.setUseSOAPAction(true);
302:                _call.setSOAPActionURI("");
303:                _call
304:                        .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
305:                _call.setOperationName(new javax.xml.namespace.QName(
306:                        "urn:phoneBook", "deletePerson"));
307:
308:                setRequestHeaders(_call);
309:                setAttachments(_call);
310:                java.lang.Object _resp = _call
311:                        .invoke(new java.lang.Object[] { id });
312:
313:                if (_resp instanceof  java.rmi.RemoteException) {
314:                    throw (java.rmi.RemoteException) _resp;
315:                }
316:                extractAttachments(_call);
317:            }
318:
319:            public void modifyPerson(java.lang.String id,
320:                    java.lang.String newFirstName,
321:                    java.lang.String newLastName,
322:                    java.lang.String newPhoneNumber)
323:                    throws java.rmi.RemoteException {
324:                if (super .cachedEndpoint == null) {
325:                    throw new org.apache.axis.NoEndPointException();
326:                }
327:                org.apache.axis.client.Call _call = createCall();
328:                _call.setOperation(_operations[3]);
329:                _call.setUseSOAPAction(true);
330:                _call.setSOAPActionURI("");
331:                _call
332:                        .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
333:                _call.setOperationName(new javax.xml.namespace.QName(
334:                        "urn:phoneBook", "modifyPerson"));
335:
336:                setRequestHeaders(_call);
337:                setAttachments(_call);
338:                java.lang.Object _resp = _call.invoke(new java.lang.Object[] {
339:                        id, newFirstName, newLastName, newPhoneNumber });
340:
341:                if (_resp instanceof  java.rmi.RemoteException) {
342:                    throw (java.rmi.RemoteException) _resp;
343:                }
344:                extractAttachments(_call);
345:            }
346:
347:            public java.lang.String[] getPersonData(java.lang.String id)
348:                    throws java.rmi.RemoteException {
349:                if (super .cachedEndpoint == null) {
350:                    throw new org.apache.axis.NoEndPointException();
351:                }
352:                org.apache.axis.client.Call _call = createCall();
353:                _call.setOperation(_operations[4]);
354:                _call.setUseSOAPAction(true);
355:                _call.setSOAPActionURI("");
356:                _call
357:                        .setSOAPVersion(org.apache.axis.soap.SOAPConstants.SOAP11_CONSTANTS);
358:                _call.setOperationName(new javax.xml.namespace.QName(
359:                        "urn:phoneBook", "getPersonData"));
360:
361:                setRequestHeaders(_call);
362:                setAttachments(_call);
363:                java.lang.Object _resp = _call
364:                        .invoke(new java.lang.Object[] { id });
365:
366:                if (_resp instanceof  java.rmi.RemoteException) {
367:                    throw (java.rmi.RemoteException) _resp;
368:                } else {
369:                    extractAttachments(_call);
370:                    try {
371:                        return (java.lang.String[]) _resp;
372:                    } catch (java.lang.Exception _exception) {
373:                        return (java.lang.String[]) org.apache.axis.utils.JavaUtils
374:                                .convert(_resp, java.lang.String[].class);
375:                    }
376:                }
377:            }
378:
379:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.