You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by mm...@apache.org on 2005/02/18 22:55:15 UTC

svn commit: r154357 - in incubator/beehive/trunk/samples/wsm-samples: ./ WEB-INF/ WEB-INF/src/ WEB-INF/src/web/ WEB-INF/src/web/common/ WEB-INF/src/web/soapmessagehandlers/

Author: mmerz
Date: Fri Feb 18 13:55:13 2005
New Revision: 154357

URL: http://svn.apache.org/viewcvs?view=rev&rev=154357
Log:
Created new webapp with one initial web service sample (illustrates use of @SOAPMessageHandlers). This webapp will be extended with additional, self-contained, minimalistic samples that illustrate the use of the JSR-181 annotations.
Eventually, we'll use this sample app for testing as well.

Added:
    incubator/beehive/trunk/samples/wsm-samples/
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-dist.xml
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-svn.xml
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/server-config.wsdd
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/log4j.properties
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/common/
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/common/MessageHandler.java
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/soapmessagehandlers/
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/soapmessagehandlers/SoapMessageHandlersSample.jws
    incubator/beehive/trunk/samples/wsm-samples/WEB-INF/web.xml
    incubator/beehive/trunk/samples/wsm-samples/index.html

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-dist.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-dist.xml?view=auto&rev=154357
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-dist.xml (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-dist.xml Fri Feb 18 13:55:13 2005
@@ -0,0 +1,135 @@
+<?xml version="1.0" ?>
+
+<!--
+   Copyright 2004 The Apache Software Foundation 
+ 
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+  
+      http://www.apache.org/licenses/LICENSE-2.0
+  
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ 
+   $Header:$
+ -->
+
+<project name="Blank Sample" default="build" basedir=".">
+
+  <import file="../../../beehive-imports.xml" />
+
+  <property name="service.name" value="blank" />
+
+  <property name="webapp.dir" location=".." />
+  <property name="web.inf.dir" location="${webapp.dir}/WEB-INF" />
+  <property name="attachments.dir" location="${web.inf.dir}/attachments" />
+  <property name="classes.dir" location="${web.inf.dir}/classes" />
+  <property name="gen.dir" location="${web.inf.dir}/gen" />
+  <property name="lib.dir" location="${web.inf.dir}/lib" />
+  <property name="src.dir" location="${web.inf.dir}/src" />
+  <property name="webservice.jar" value="${lib.dir}/${service.name}WS.jar" />
+  <property name="webservice.war" value="${service.name}WS.war" />
+
+  <path id="lib.path">
+    <fileset dir="${lib.dir}">
+      <include name="**/*.jar" />
+    </fileset>
+  </path>
+
+  <path id="build.classpath">
+    <path refid="lib.path"/>
+    <pathelement location="${classes.dir}"/>
+  </path>
+    
+  
+  <!-- ========================================= -->
+  <!-- deploy - build deployable artifact        -->
+  <!-- ========================================= -->
+  
+  <target name="deploy">
+    <antcall target="deploy.war" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- deploy.war - build deployable artifact    -->
+  <!-- ========================================= -->
+  
+  <target name="deploy.war">
+    <jar jarfile="${to.dir}/${webservice.war}">
+      <fileset dir="..">
+        <exclude name="${src.dir}/**" />
+        <exclude name="${gen.dir}/**" />
+      </fileset>
+    </jar>
+  </target>
+  
+
+  <!-- ========================================= -->
+  <!-- build - build all binaries                -->
+  <!-- ========================================= -->
+
+  <target name="build" depends="dirs">
+    <antcall target="deploy.beehive.webservice.runtime" />
+    <antcall target="build.beehive.webservice" />
+    <jar jarfile="${webservice.jar}">
+      <fileset dir="${classes.dir}" />
+    </jar>
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- clean - remove binary files               -->
+  <!-- ========================================= -->
+
+  <target name="clean">
+    <delete dir="${attachments.dir}" />
+    <delete dir="${classes.dir}" />
+    <delete dir="${gen.dir}" />
+    <delete dir="${lib.dir}" />
+    <delete file="velocity.log" />
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- dirs - create dirs required for compile   -->
+  <!-- ========================================= -->
+
+  <target name="dirs">
+    <mkdir dir="${attachments.dir}" />
+    <mkdir dir="${classes.dir}" />
+    <mkdir dir="${gen.dir}" />
+    <mkdir dir="${lib.dir}" />
+  </target>
+
+  <!-- copy all dependencies -->
+  <target name="deploy.beehive.webservice.runtime" depends="dirs">
+    <copy todir="${lib.dir}">
+      <fileset file="${beehive.home}/lib/common/*.jar" />
+      <fileset file="${beehive.home}/lib/controls/controls.jar" />
+      <fileset file="${beehive.home}/lib/wsm/*.jar" />
+    </copy>
+  </target>
+
+
+  <!-- build all beehive webservice binaries -->
+  <target name="build.beehive.webservice">
+    <taskdef name="apt" 
+        classname="org.apache.beehive.controls.runtime.generator.AptTask" 
+        classpathref="lib.path" 
+        onerror="report" />
+    <apt
+        srcdir="${src.dir}" 
+        destdir="${classes.dir}"
+        gendir="${gen.dir}"
+        classpathref="build.classpath" 
+        compileByExtension="true" 
+        srcExtensions="*.java,*.jws" 
+        debug="true" />
+  </target>
+
+</project>

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-svn.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-svn.xml?view=auto&rev=154357
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-svn.xml (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/build-svn.xml Fri Feb 18 13:55:13 2005
@@ -0,0 +1,126 @@
+<?xml version="1.0" ?>
+
+<!--
+   Copyright 2004 The Apache Software Foundation 
+ 
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+  
+      http://www.apache.org/licenses/LICENSE-2.0
+  
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+ 
+   $Header:$
+ -->
+
+<project name="wsm-blank" default="build" basedir=".">
+
+  <import file="../../../beehive-imports.xml" />
+
+  <property name="service.name" value="wsm-samples" />
+  
+  <property name="webapp.dir" location=".." />
+  <property name="web.inf.dir" value="${webapp.dir}/WEB-INF" />
+  <property name="lib.dir" value="${web.inf.dir}/lib" />
+  <property name="src.dir" value="${web.inf.dir}/src" />
+  <property name="attachments.dir" value="${web.inf.dir}/attachments" />
+  <property name="classes.dir" value="${web.inf.dir}/classes" />
+  <property name="gen.dir" value="${web.inf.dir}/.tmpbeansrc" />
+  <property name="webservice.jar" value="${lib.dir}/${service.name}WS.jar" />
+  <property name="webservice.war" value="${service.name}WS.war" />
+  
+  <condition property="isJDK15">
+    <equals arg1="${ant.java.version}" arg2="1.5" />
+  </condition>
+
+  <path id="jars">
+    <fileset dir="${lib.dir}" >
+      <include name="**/*.jar" />
+    </fileset>
+  </path>
+
+  
+  <!-- ========================================= -->
+  <!-- deploy - build deployable artifact        -->
+  <!-- ========================================= -->
+  
+  <target name="deploy">
+    <antcall target="deploy.war" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- deploy.war - build deployable artifact    -->
+  <!-- ========================================= -->
+  
+  <target name="deploy.war">
+    <jar destfile="${to.dir}/${webservice.war}">
+      <fileset dir="${webapp.dir}">
+        <exclude name="WEB-INF/classes/**" />
+        <exclude name="WEB-INF/.tmpbeansrc/**" />
+        <exclude name="WEB-INF/src/**" />
+        <exclude name="**/*build*.xml" />
+      </fileset>
+    </jar>
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- build - create jar in ${lib.dir}          -->
+  <!-- ========================================= -->
+
+  <target name="build" depends="dirs">
+    <antcall target="deploy.beehive.webservice.runtime" />
+    <antcall target="build.beehive.webservice" />
+    <jar jarfile="${webservice.jar}">
+      <fileset dir="${classes.dir}" />
+    </jar>
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- clean - remove binary files               -->
+  <!-- ========================================= -->
+
+  <target name="clean">
+    <delete dir="${attachments.dir}" />
+    <delete file="velocity.log" />
+    <clean-webapp webappDir="${webapp.dir}" />
+  </target>
+
+  
+  <!-- ========================================= -->
+  <!-- dirs - create dirs required for compile   -->
+  <!-- ========================================= -->
+
+  <target name="dirs">
+    <mkdir dir="${lib.dir}" />
+    <mkdir dir="${attachments.dir}" />
+    <mkdir dir="${classes.dir}" />
+    <mkdir dir="${gen.dir}" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- deploy.beehive.webservice.runtime -       -->
+  <!-- ========================================= -->
+
+  <target name="deploy.beehive.webservice.runtime">
+    <deploy-wsm webappDir="${webapp.dir}" />
+  </target>
+
+
+  <!-- ========================================= -->
+  <!-- build.beehive.webservice -                -->
+  <!-- ========================================= -->
+
+  <target name="build.beehive.webservice">
+    <build-webapp webappDir="${webapp.dir}" />
+  </target>
+
+</project>

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/server-config.wsdd
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/server-config.wsdd?view=auto&rev=154357
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/server-config.wsdd (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/server-config.wsdd Fri Feb 18 13:55:13 2005
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<deployment xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
+ <globalConfiguration>
+  <parameter name="adminPassword" value="admin"/>
+  <parameter name="disablePrettyXML" value="true"/>
+  <parameter name="attachments.implementation" value="org.apache.axis.attachments.AttachmentsImpl"/>
+  <parameter name="sendXsiTypes" value="true"/>
+  <parameter name="sendXMLDeclaration" value="true"/>
+  <requestFlow>
+  <handler type="java:org.apache.beehive.wsm.axis.AnnotatedWebServiceDeploymentHandler">
+    <parameter name="scope" value="session"/>
+   </handler>
+  <handler type="java:org.apache.axis.handlers.JWSHandler">
+    <parameter name="scope" value="session"/>
+   </handler>
+  </requestFlow>
+ </globalConfiguration>
+ <handler name="LocalResponder" type="java:org.apache.axis.transport.local.LocalResponder"/>
+ <handler name="URLMapper" type="java:org.apache.axis.handlers.http.URLMapper"/>
+ <handler name="Authenticate" type="java:org.apache.axis.handlers.SimpleAuthenticationHandler"/>
+ <service name="AdminService" provider="java:MSG">
+  <parameter name="allowedMethods" value="AdminService"/>
+  <parameter name="enableRemoteAdmin" value="false"/>
+  <parameter name="className" value="org.apache.axis.utils.Admin"/>
+  <namespace>http://xml.apache.org/axis/wsdd/</namespace>
+ </service>
+ <service name="Version" provider="java:RPC">
+  <parameter name="allowedMethods" value="getVersion"/>
+  <parameter name="className" value="org.apache.axis.Version"/>
+ </service>
+ <transport name="http">
+  <requestFlow>
+   <handler type="URLMapper"/>
+   <handler type="java:org.apache.axis.handlers.http.HTTPAuthHandler"/>
+  </requestFlow>
+  <parameter name="qs:list" value="org.apache.axis.transport.http.QSListHandler"/>
+  <parameter name="qs:wsdl" value="org.apache.axis.transport.http.QSWSDLHandler"/>
+  <parameter name="qs:method" value="org.apache.axis.transport.http.QSMethodHandler"/>
+ </transport>
+ <transport name="local">
+  <responseFlow>
+   <handler type="LocalResponder"/>
+  </responseFlow>
+ </transport>
+</deployment>
+

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/log4j.properties
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/log4j.properties?view=auto&rev=154357
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/log4j.properties (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/log4j.properties Fri Feb 18 13:55:13 2005
@@ -0,0 +1,20 @@
+# Set root category priority to INFO and its only appender to CONSOLE.
+log4j.rootCategory=INFO, CONSOLE
+#log4j.rootCategory=INFO, CONSOLE, LOGFILE
+
+# Set the enterprise logger category to FATAL and its only appender to CONSOLE.
+log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE
+
+# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
+log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
+log4j.appender.CONSOLE.Threshold=INFO
+log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
+log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
+
+# LOGFILE is set to be a File appender using a PatternLayout.
+log4j.appender.LOGFILE=org.apache.log4j.FileAppender
+log4j.appender.LOGFILE.File=axis.log
+log4j.appender.LOGFILE.Append=true
+log4j.appender.LOGFILE.Threshold=INFO
+log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
+log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/common/MessageHandler.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/common/MessageHandler.java?view=auto&rev=154357
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/common/MessageHandler.java (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/common/MessageHandler.java Fri Feb 18 13:55:13 2005
@@ -0,0 +1,90 @@
+package web.common;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$Factory
+ */
+
+import javax.xml.namespace.QName;
+
+import javax.xml.rpc.handler.Handler;
+import javax.xml.rpc.handler.HandlerInfo;
+import javax.xml.rpc.handler.MessageContext;
+import javax.xml.rpc.handler.soap.SOAPMessageContext;
+
+import javax.xml.soap.SOAPMessage;
+
+public class MessageHandler implements Handler {
+    
+    private static final String ORIGINAL = "original";
+    private static final String MODIFIED = "ORIGINAL";
+
+    private HandlerInfo info;
+    private String modified;
+    private String original;
+
+    public void init(HandlerInfo handlerInfo) {
+
+        info = handlerInfo;
+        
+        original = (String) info.getHandlerConfig().get("original");
+        if (null == original || 0 == original.length()) {
+            original = ORIGINAL;
+        }
+        
+        modified = (String) info.getHandlerConfig().get("modified");
+        if (null == modified || 0 == modified.length()) {
+            modified = MODIFIED;
+        }
+    }
+
+    public void destroy() {
+        // empty
+    }
+
+    public QName[] getHeaders() {
+        return info.getHeaders();
+    }
+
+    public boolean handleRequest(MessageContext mc) {
+        boolean result = false;
+        try {
+            System.out.println("*** MessageHandler: handling message; initialized with <original>=" + original + ", <modified>=" + modified);
+            SOAPMessage message = ((SOAPMessageContext) mc).getMessage();
+            String value = message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().getNodeValue();
+            if ((null != value) && value.equals(original)) {
+                message.getSOAPBody().getFirstChild().getFirstChild().getFirstChild().setNodeValue(modified);
+                System.out.println("*** Replacing: " + original + " with: " + modified);
+            } 
+            else {
+                System.out.println("*** Not replacing: " + original);
+            }
+            result = true;
+        }
+        catch (Throwable t) {
+            t.printStackTrace();
+        }
+        return result;
+    }
+
+    public boolean handleResponse(MessageContext mc) {
+        return true;
+    }
+
+    public boolean handleFault(MessageContext mc) {
+        return true;
+    }
+}
\ No newline at end of file

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/soapmessagehandlers/SoapMessageHandlersSample.jws
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/soapmessagehandlers/SoapMessageHandlersSample.jws?view=auto&rev=154357
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/soapmessagehandlers/SoapMessageHandlersSample.jws (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/src/web/soapmessagehandlers/SoapMessageHandlersSample.jws Fri Feb 18 13:55:13 2005
@@ -0,0 +1,43 @@
+package web.soapmessagehandlers;
+
+/*
+ * Copyright 2004, 2005 The Apache Software Foundation
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ * 
+ *     http://www.apache.org/licenses/LICENSE-2.0
+ * 
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ *
+ * $Header:$Factory
+ */
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.InitParam;
+import javax.jws.soap.SOAPMessageHandler;
+import javax.jws.soap.SOAPMessageHandlers;
+
+@WebService(targetNamespace="http://beehive.apache.org/wsm/web")
+@SOAPMessageHandlers({
+  @SOAPMessageHandler(
+    className = "web.common.MessageHandler", 
+    initParams = {
+      @InitParam(name="original", value="original"),
+      @InitParam(name="modified", value="oRiGiNaL")
+    }
+  )
+})
+public class SoapMessageHandlersSample {
+
+    @WebMethod
+    public String sayHello(String name) {
+        return "Hello, " + name + "!";
+    }
+}

Added: incubator/beehive/trunk/samples/wsm-samples/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/WEB-INF/web.xml?view=auto&rev=154357
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/WEB-INF/web.xml (added)
+++ incubator/beehive/trunk/samples/wsm-samples/WEB-INF/web.xml Fri Feb 18 13:55:13 2005
@@ -0,0 +1,107 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+
+<!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web
+Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
+
+<web-app>
+
+  <display-name>Apache-Axis</display-name>
+    
+  <filter>
+    <filter-name>ControlFilter</filter-name>
+    <filter-class>org.apache.beehive.controls.runtime.servlet.ControlFilter</filter-class>
+  </filter>
+
+  <filter-mapping>
+    <filter-name>ControlFilter</filter-name>
+    <url-pattern>*.jws</url-pattern>
+  </filter-mapping>
+
+  <listener>
+    <listener-class>org.apache.axis.transport.http.AxisHTTPSessionListener</listener-class>
+  </listener>
+
+  <servlet>
+    <servlet-name>AxisServlet</servlet-name>
+    <display-name>Apache-Axis Servlet</display-name>
+    <servlet-class>
+        org.apache.axis.transport.http.AxisServlet
+    </servlet-class>
+  </servlet>
+
+  <servlet>
+    <servlet-name>AdminServlet</servlet-name>
+    <display-name>Axis Admin Servlet</display-name>
+    <servlet-class>
+        org.apache.axis.transport.http.AdminServlet
+    </servlet-class>
+    <load-on-startup>100</load-on-startup>
+  </servlet>
+
+  <servlet>
+    <servlet-name>SOAPMonitorService</servlet-name>
+    <display-name>SOAPMonitorService</display-name>
+    <servlet-class>
+        org.apache.axis.monitor.SOAPMonitorService
+    </servlet-class>
+    <init-param>
+      <param-name>SOAPMonitorPort</param-name>
+      <param-value>5001</param-value>
+    </init-param>
+    <load-on-startup>100</load-on-startup>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>AxisServlet</servlet-name>
+    <url-pattern>/servlet/AxisServlet</url-pattern>
+  </servlet-mapping>
+
+  <servlet-mapping>
+    <servlet-name>AxisServlet</servlet-name>
+    <url-pattern>*.jws</url-pattern>
+  </servlet-mapping>
+
+  <servlet-mapping>
+    <servlet-name>AxisServlet</servlet-name>
+    <url-pattern>/services/*</url-pattern>
+  </servlet-mapping>
+
+  <servlet-mapping>
+    <servlet-name>SOAPMonitorService</servlet-name>
+    <url-pattern>/SOAPMonitor</url-pattern>
+  </servlet-mapping>
+
+ <!-- uncomment this if you want the admin servlet -->
+ <!--
+  <servlet-mapping>
+    <servlet-name>AdminServlet</servlet-name>
+    <url-pattern>/servlet/AdminServlet</url-pattern>
+  </servlet-mapping>
+ -->
+
+    <session-config>
+        <!-- Default to 5 minute session timeouts -->
+        <session-timeout>5</session-timeout>
+    </session-config>
+
+    <!-- currently the W3C havent settled on a media type for WSDL;
+    http://www.w3.org/TR/2003/WD-wsdl12-20030303/#ietf-draft
+    for now we go with the basic 'it's XML' response -->
+  <mime-mapping>
+    <extension>wsdl</extension>
+     <mime-type>text/xml</mime-type>
+  </mime-mapping>
+  
+
+  <mime-mapping>
+    <extension>xsd</extension>
+    <mime-type>text/xml</mime-type>
+  </mime-mapping>
+
+  <welcome-file-list id="WelcomeFileList">
+    <welcome-file>index.html</welcome-file>
+    <welcome-file>index.jsp</welcome-file>
+    <welcome-file>index.jws</welcome-file>
+  </welcome-file-list>
+
+</web-app>

Added: incubator/beehive/trunk/samples/wsm-samples/index.html
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/samples/wsm-samples/index.html?view=auto&rev=154357
==============================================================================
--- incubator/beehive/trunk/samples/wsm-samples/index.html (added)
+++ incubator/beehive/trunk/samples/wsm-samples/index.html Fri Feb 18 13:55:13 2005
@@ -0,0 +1,29 @@
+<html>
+
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
+<title>Apache-Beehive</title>
+</head>
+
+<body bgcolor="#FFFFFF">
+<h1 align="center">Beehive Java Web Services</h1>
+<p><em>Welcome</em> to the Web Service template</p>
+
+<ul>
+    <li>
+        <a href="happyaxis.jsp">Validate</a> the local installation
+        <br>
+        <i>see below if this does not work</i>
+    </li>
+    <li>
+        View
+        <a href="web/soapmessagehandlers/SoapMessageHandlersSample.jws?wsdl">WSDL</a>
+        for SOAPMessageHandler sample
+    </li>
+</ul>
+<h3>Validating the local configuration</h3>
+If the validation page displays an exception instead of a
+status page, the likely cause is that you have multiple XML parsers in
+your classpath. Clean up your classpath by eliminating extraneous parsers.
+</body>
+</html>