Organizational Communications and Distributed Object TechnologiesApache Axis2 (1)Apache Axis2 (2)InstallationWeb Container DirectoryPowerPoint PresentationSlide 7Axis2 Directory Structure (3)Axis2 Directory Structure (4)Axis2 Directory Structure (5)Slide 11Axis2 Directory Structure (7)Axis2 Directory Structure (8)Axis2 Directory Structure (9)Slide 15Message Life CycleAxis2 ComponentsSOAP Processing (1)SOAP Processing (2)Processing ModelDefault Processing ModelIncoming Message PhasesOutgoing Message PhasesBlocking and Non-Blocking ClientsR/W The XML Through ObjectsSlide 26Example From The Axis2 User GuideWSDLSlide 29Slide 30Slide 31Slide 32Slide 33Slide 34Slide 35Slide 36Slide 37Slide 38Slide 39Slide 40Client Using ADBSlide 42Slide 43Slide 44Slide 45Slide 46Client Using XMLBeansSlide 48Slide 49Slide 50Slide 51Slide 52Writing A ServiceRequest Scope Service (1)Request Scope Service (2)Application Scope services.xmlApplication Scope (2)195-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Organizational Communications and Distributed Object TechnologiesLecture 7: Axis2295-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Apache Axis2 (1)•Since 2004 (a new Apache Axis).•A core engine for web services.•Compares with Microsoft Indigo.•Runs under any J2EE server.•Will include WS-Reliable Messaging (Sandesha2) WS-Coordination, WS-AtomicTransaction, WS-BusinessActivity (Kandula2), WS-Security (Rampart), WS-Addressing (out of the box).395-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Apache Axis2 (2)•Synchronous and Asynchronous web services.•MEP (Message Exchange Patterns).•Transport Independent core (SMTP, FTP, HTTP, MOM, etc.).•WSDL 1.0 and 2.0.•WSDL2Java and Java2WSDL.•Supports queries for WSDL (using ?wsdl) schema (using ?xsd) and policies (using ?policy).•Service Archive wizard for Eclipse.•Code generation wizard for Eclipse.495-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Installation•Main web site: http://ws.apache.org/axis2/•Use any J2EE web container.•Here, we will use Tomcat.595-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Web Container Directoryapache-tomcat-6.0.10conf bin lib webapps common logs workaxis2695-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.axis2-web WEB-INFclasses conf lib modules services web.xml• This directory structure is created by running the ant build script provided with Axis2. • The entire structure is compressed as a java archive and written to the file axis2.war. • The axis2.war file is copied into Tomcat’s webapp directory. • The file axis2.war is expanded under the directory named axis2. • Delete the axis2 directory before changing the war. In that way the war will be expanded again into a new axis2 directory.• Normally, you leave this directory structure in place. Add and update new web services within this existing directory structure.axis2 axis2.warwebappsAxis2 Directory Structure (1)This is arelativelyfixed areato workin.795-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.axis2-web WEB-INFclasses conf lib modules services web.xmlAxis2 administrationpages. Use admin to temporarily add services or engage oror disengage modules. The configuration description found in conf/axis2.xmlis not changed so these changes are temporary. Default username is admin.Default password is axis2. Axis2 Directory Structure (2)axis2webapps895-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.axis2-web WEB-INFclasses conf lib modules services web.xmlClasses needed byAxis2 itself.Axis2 Directory Structure (3)axis2webapps995-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Axis2 Directory Structure (4)axis2-web WEB-INFclasses conf lib modules services web.xmlaxis2.xml is an important file Defines how received messages are handled. Defines transport senders and receivers. Determines which modules are active. Defines order of phases and how handlers are to be executed within each phase.axis2webapps1095-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Axis2 Directory Structure (5)axis2-web WEB-INFclasses conf lib modules services web.xml.jar (Java archive)files supportingAxis2 activitiesaxis2webapps1195-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.axis2-web WEB-INFclasses conf lib modules services web.xml.mar (module archive) filesare usedto extend axis2 - addinghandlers to the message stream.Axis2 Directory Structure (6)axis2webapps1295-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Axis2 Directory Structure (7)axis2-web WEB-INFclasses conf lib modules services web.xmlActual classes for the providing of business services..arr (axis archive) files reside here.axis2webapps1395-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Axis2 Directory Structure (8)axis2-web WEB-INFclasses conf lib modules services web.xmlMETA-INFservices.xmlPackage path to .classExplodeddirectoryformatMyCoolServiceaxis2webapps1495-702 OCTMaster of Information System ManagementQuickTime™ and aTIFF (Uncompressed) decompressorare needed to see this picture.Axis2 Directory Structure (9)axis2-web WEB-INFclasses conf lib modules services web.xmlMETA-INFservices.xmlPackage path to .classMyCoolServiceaxis2webappsDefines the service name.Defines scope,e.g., “application”.Associates MEPs with
View Full Document