Apache Muse - Project Artifacts for Mini SOAP Engine
Overview
When Muse applications are deployed on top of its "mini" SOAP engine, they are much smaller than when they are deployed on Apache Axis2. The mini SOAP engine is a simple J2EE servlet the parses HTTP POST data and turns it into a SOAP envelope that can be passed along to the Muse runtime. When using the mini SOAP engine, you can run Muse-based applications in any servlet container and within J2ME environments.
Application Layout
The "mini" version of the sample project is a J2EE web application with the following directory structure:
Application Layout - J2EE WAR
/wsn-producer
/WEB-INF
/classes
/router-entries
...
/wsdl
WsResource.wsdl
...
muse.xml
muse-descriptor.xsd
/lib
...
web.xml
The nature of these files and directories is as follows:
- /WEB-INF/classes/router-entries - This directory holds XML files that contain the endpoint references (EPRs) for resources
that are to be created upon application startup. WSDL2Java creates one such resource during code generation.
- /WEB-INF/classes/wsdl - This directory holds the WSDL and related schema files for the resource type implemented in the sample.
The WsResource.wsdl file is the WSDL for the sample resource type. The schema files define standard data types that are used in the resource
interface; all schemas in the Muse sample projects were authored by OASIS or W3C and represent the latest versions of their respective standards.
- /WEB-INF/classes/muse.xml - This is the Muse deployment descriptor. It is read by Muse at initialization in order to load, configure, and support the resource types that you have implemented.
- /WEB-INF/classes/muse-descriptor.xsd - This is the schema for the Muse deployment descriptor. It is provided here for educational purposes, and so you can validate any changes you might make to it.
- /WEB-INF/lib - This is the standard WAR directory for Java classes that are part of a JAR file. The
JAR files include all of the API and implementation classes for the Muse framework (these files are identified
by the muse- prefix).
- /WEB-INF/web.xml - This is the standard WAR configuration file. It will be static for Muse users.
Towards the end of the tutorial, you will learn how to build, deploy, and test this application with the help of Apache Tomcat.