Source Code Cross Referenced for CustomServiceFactoryImpl.java in  » Web-Services » wsif » customfactory » client » 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 » Web Services » wsif » customfactory.client 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        package customfactory.client;
002:
003:        import org.apache.wsif.WSIFServiceFactory;
004:        import org.apache.wsif.WSIFService;
005:        import org.apache.wsif.WSIFException;
006:        import javax.wsdl.*;
007:
008:        public class CustomServiceFactoryImpl extends WSIFServiceFactory {
009:            public CustomServiceFactoryImpl() {
010:                System.out.println("Using custom factory");
011:            }
012:
013:            /**
014:             * Create a WSIFService from WSDL document URL.
015:             * <br> If serviceName or serviceNS is null,
016:             *   then WSDL document must have exactly one service in it.
017:             * <br> If portTypeName or portTypeNS is null,
018:             *   then WSDL document must have exactly one portType in it
019:             *   and all ports of the selected service must
020:             *    implement the same portType.
021:             * @param wsdlLoc The URL for the wsdl's location
022:             * @param serviceNS The namespace of the service
023:             * @param serviceName The name of the service
024:             * @param portTypeNS The namespace of the port type
025:             * @param portTypeName The name of the port type
026:             * @return The service
027:             * @exception A WSIFException if an error occurs when creating the service
028:             */
029:            public WSIFService getService(String wsdlLoc, String serviceNS,
030:                    String serviceName, String portTypeNS, String portTypeName)
031:                    throws WSIFException {
032:                CustomServiceImpl wsi = new CustomServiceImpl(wsdlLoc,
033:                        serviceNS, serviceName, portTypeNS, portTypeName);
034:                return wsi;
035:            }
036:
037:            /**
038:             * Create a WSIF service instance from WSDL document URL
039:             * using a ClassLoader to find local resources.
040:             * <br> If serviceName or serviceNS is null,
041:             *   then WSDL document must have exactly one service in it.
042:             * <br> If portTypeName or portTypeNS is null,
043:             *   then WSDL document must have exactly one portType in it
044:             *   and all ports of the selected service must
045:             *    implement the same portType.
046:             * @param wsdlLoc The URL for the wsdl's location
047:             * @param cl A ClassLoader to use in locating the wsdl
048:             * @param serviceNS The namespace of the service
049:             * @param serviceName The name of the service
050:             * @param portTypeNS The namespace of the port type
051:             * @param portTypeName The name of the port type
052:             * @return The service
053:             * @exception A WSIFException if an error occurs when creating the service
054:             */
055:            public WSIFService getService(String wsdlLoc, ClassLoader cl,
056:                    String serviceNS, String serviceName, String portTypeNS,
057:                    String portTypeName) throws WSIFException {
058:                CustomServiceImpl wsi = new CustomServiceImpl(wsdlLoc, cl,
059:                        serviceNS, serviceName, portTypeNS, portTypeName);
060:                return wsi;
061:            }
062:
063:            /**
064:             * Returns a new WSIFService.
065:             * @param def The Definition object representing the wsdl
066:             * @return The service
067:             * @exception A WSIFException if an error occurs when creating the service
068:             */
069:            public WSIFService getService(Definition def) throws WSIFException {
070:                CustomServiceImpl wsi = new CustomServiceImpl(def);
071:                return wsi;
072:            }
073:
074:            /**
075:             * Returns a new WSIFService.
076:             * @param def The Definition object representing the wsdl
077:             * @param service The Service object representing the service to use
078:             * @return The service
079:             * @exception A WSIFException if an error occurs when creating the service
080:             */
081:            public WSIFService getService(Definition def, Service service)
082:                    throws WSIFException {
083:                CustomServiceImpl wsi = new CustomServiceImpl(def, service);
084:                return wsi;
085:            }
086:
087:            /**
088:             * Returns a new WSIFService.
089:             * @param def The Definition object representing the wsdl
090:             * @param service The Service object representing the service to use
091:             * @param portType The PortType object representing the port type to use
092:             * @return The service
093:             * @exception A WSIFException if an error occurs when creating the service
094:             */
095:            public WSIFService getService(Definition def, Service service,
096:                    PortType portType) throws WSIFException {
097:                CustomServiceImpl wsi = new CustomServiceImpl(def, service,
098:                        portType);
099:                return wsi;
100:            }
101:
102:            /**
103:             * Returns a new WSIFService.
104:             * @param def The Definition object representing the wsdl
105:             * @param serviceNS The namespace of the service
106:             * @param serviceName The name of the service
107:             * @param portTypeNS The namespace of the port type
108:             * @param portTypeName The name of the port type
109:             * @return The service
110:             * @exception A WSIFException if an error occurs when creating the service
111:             */
112:            public WSIFService getService(Definition def, String serviceNS,
113:                    String serviceName, String portTypeNS, String portTypeName)
114:                    throws WSIFException {
115:                CustomServiceImpl wsi = new CustomServiceImpl(def, serviceNS,
116:                        serviceName, portTypeNS, portTypeName);
117:                return wsi;
118:            }
119:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.