You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2005/05/10 08:03:55 UTC
svn commit: r169421 [1/2] - in
/incubator/beehive/trunk/system-controls/test/src/webservice: ./ schemas/
servers/ servers/local/ servers/local/org/ servers/local/org/controlhaus/
servers/local/org/controlhaus/webservice/
servers/local/org/controlhaus/webservice/testmodel/
servers/local/org/controlhaus/webservice/testmodel/server/ servers/webapp/
servers/webapp/WEB-INF/ servers/webapp/WEB-INF/src/
servers/webapp/WEB-INF/src/org/ servers/webapp/WEB-INF/src/org/apache/
servers/webapp/WEB-INF/src/org/apache/beehive/
servers/webapp/WEB-INF/src/org/apache/beehive/sample/
servers/webapp/WEB-INF/src/org/controlhaus/ servers/webapp/WEB-INF/src/web/
tests/ tests/org/ tests/org/controlhaus/ tests/org/controlhaus/controlunit/
tests/org/controlhaus/utils/ tests/org/controlhaus/webservice/
tests/org/controlhaus/webservice/framework/
tests/org/controlhaus/webservice/testmodel/
tests/org/controlhaus/webservice/testmodel/client/
Author: ekoneil
Date: Mon May 9 23:03:53 2005
New Revision: 169421
URL: http://svn.apache.org/viewcvs?rev=169421&view=rev
Log:
Continued system control migration.
Add the web service DRT application.
Note, this test is *not* wired into the top-level DRT target yet. The webapp build makes the assumption that it always deploys and undeploys successfully, which -- as I have now experienced :) -- is not the case especially when a test fails. Until this is fixed to behave like other Beehive DRT webapps, it is disabled. To run it, execute:
cd system-controls/test/src/webservice
ant drt
BB: self
DRT: manual run of the service control drt passes
Added:
incubator/beehive/trunk/system-controls/test/src/webservice/
incubator/beehive/trunk/system-controls/test/src/webservice/build.xml (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/schemas/
incubator/beehive/trunk/system-controls/test/src/webservice/schemas/ServiceWS.wsdl
incubator/beehive/trunk/system-controls/test/src/webservice/servers/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Address.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Phone.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/SimpleWebService.jws
incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/StateType.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/client-build.xml (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/server-config.wsdd
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/log4j.properties (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/controlhaus/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/Service.jws
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/web.xml (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/happyaxis.jsp (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/index.html (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/controlunit/
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/controlunit/ControlTestCase.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/utils/
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/utils/HolderUtilsTest.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/utils/MyClass.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/utils/MyClassArrayHolder.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/SimpleWebSericeTest.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/framework/
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/framework/LocalAxisServiceFacotry.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/testmodel/
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/testmodel/client/
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/testmodel/client/ClientAddress.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/testmodel/client/ClientPhone.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/testmodel/client/ClinetStateType.java (with props)
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/testmodel/client/ServiceControlTest.wsdl
incubator/beehive/trunk/system-controls/test/src/webservice/tests/org/controlhaus/webservice/testmodel/client/SimpleWSClient.jcx (with props)
Added: incubator/beehive/trunk/system-controls/test/src/webservice/build.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/build.xml?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/build.xml (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/build.xml Mon May 9 23:03:53 2005
@@ -0,0 +1,335 @@
+<?xml version="1.0" ?>
+<!--
+ Copyright 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:$
+ -->
+<project name="Beehive/ServiceControlDRT" default="drt" basedir=".">
+
+ <!-- todo:
+ - switch to build-schemas
+ - switch to build-controls
+ - switch to build-webservices
+ - setup the Tomcat deploy to be failsafe
+ - wire into distribution testing
+ - deploy the webapp to an external directory
+ -->
+
+ <property environment="os"/>
+ <import file="../../../systemcontrols-imports.xml"/>
+
+ <!-- general dirs -->
+ <property name="beehive-webservice-control.jar" location="${beehive.home}/system-controls/build/jars/beehive-webservice-control.jar"/>
+ <property name="log.dir" location="logs"/>
+ <property name="schemas.dir" location="schemas"/>
+ <property name="source.dir" location="tests"/>
+
+ <!-- client directories -->
+ <property name="client.build" location="client-build"/>
+ <property name="client.beansrc" location="${client.build}/beansrc"/>
+ <property name="client.classes" location="${client.build}/classes"/>
+ <property name="client.xmlbeangen" location="${client.build}/xmlbeans"/>
+
+ <property name="testmodel.client.jcxgen.dir" location="${client.build}/jcxsrc"/>
+ <property name="testmodel.client.jcxgen.packageName" value="test"/>
+
+ <!-- server directories -->
+ <property name="servers.dir" location="servers/local"/>
+ <property name="webapp.dir" location="servers/webapp"/>
+ <property name="server.attachments" location="${webapp.dir}/WEB-INF/attachments"/>
+ <property name="server.beansrc" location="${webapp.dir}/WEB-INF/beansrc"/>
+ <property name="server.classes" location="${webapp.dir}/WEB-INF/classes"/>
+ <property name="server.lib" location="${webapp.dir}/WEB-INF/lib"/>
+ <property name="server.src" location="${webapp.dir}/WEB-INF/src"/>
+
+ <!-- misc properties -->
+ <property name="context.path" value="ServiceControlDRT"/>
+ <property name="waitfor.url" value="http://localhost:8080/index.jsp"/>
+ <property name="waitfor.timeout" value="100"/>
+
+ <!-- paths -->
+ <path id="beehive.classpath">
+ <path refid="webservices.dependency.path"/>
+ <path refid="controls.dependency.path"/>
+ <path refid="servlet.dependency.path"/>
+ <path refid="junit.dependency.path"/>
+ </path>
+
+ <path id="client.classpath">
+ <pathelement path="${client.classes}"/>
+ <pathelement path="${beehive-webservice-control.jar}"/>
+ <path refid="beehive.classpath" />
+ <path refid="xbean.dependency.path"/>
+ <path refid="log4j.dependency.path"/>
+ <path refid="velocity.dependency.path"/>
+ <path refid="commons-logging.dependency.path"/>
+ <path refid="commons-discovery.dependency.path"/>
+ </path>
+
+ <!-- tasks; todo: these should be removed! -->
+ <taskdef
+ name="apt"
+ classname="org.apache.beehive.controls.runtime.generator.AptTask"
+ classpathref="apt.task.classpath"
+ onerror="report"/>
+
+ <taskdef
+ name="control-jar"
+ classname="org.apache.beehive.controls.runtime.packaging.ControlJarTask"
+ classpathref="controls.dependency.path"
+ onerror="report"/>
+
+ <!-- ========================================= -->
+ <!-- drt -->
+ <!-- ========================================= -->
+
+ <target name="build" depends="dirs,gen_jcx,build.gen-sc,build.sc,build.server"/>
+
+ <!-- start server -->
+ <target name="start-tomcat" >
+ <start-server shmem="false" javaOptions=""/>
+ </target>
+
+ <!-- deploy webapp -->
+ <target name="deploy-webapps" >
+ <echo message="** deploying ${webapp.dir} to ${context.path} **"/>
+ <deploy-webapp webappDir="${webapp.dir}" contextPath="${context.path}"/>
+ </target>
+
+ <!-- undeploy webapp -->
+ <target name="undeploy-webapps" >
+ <undeploy-webapp contextPath="${context.path}"/>
+ </target>
+
+ <target name="drt" depends="build">
+ <parallel>
+
+ <!-- start server -->
+ <antcall target="start-tomcat"/>
+
+ <!-- deploy webapp, run tests, clean up -->
+ <sequential>
+
+ <!-- wait for server to start -->
+ <echo message="Wait for server to start at URL: ${waitfor.url}"/>
+ <waitfor maxwait="${waitfor.timeout}"
+ maxwaitunit="second"
+ timeoutproperty="server.timeout">
+ <http url="${waitfor.url}"/>
+ </waitfor>
+ <fail if="server.timeout" message="Server failed to start up properly at URL: ${waitfor.url}"/>
+
+ <!-- deploy webapp -->
+ <antcall target="deploy-webapps"/>
+
+ <!-- run test cases -->
+ <antcall target="run.tests"/>
+
+ <!-- undeploy webapp -->
+ <antcall target="undeploy-webapps"/>
+
+ <!-- undeploy web service runtime -->
+ <!-- ant target="undeploy.beehive.webservice.runtime" dir="${ant.dir}" antfile="${app.build.file}" / -->
+
+ <!-- stop server -->
+ <stop-server />
+
+ </sequential>
+ </parallel>
+ </target>
+
+ <!-- ========================================= -->
+ <!-- run.tests - run the tests -->
+ <!-- ========================================= -->
+ <target name="run.tests">
+ <echo message="** junit logfiles written to ${log.dir} **"/>
+ <junit failureproperty="drtfailed"
+ printsummary="on"
+ tempdir="${client.build}"
+ fork="yes">
+ <classpath>
+ <path refid="client.classpath"/>
+ <pathelement location="${client.classes}"/>
+ </classpath>
+ <formatter type="plain"/>
+ <batchtest filtertrace="off" todir="${log.dir}">
+ <fileset dir="${source.dir}">
+ <include name="**/*Test.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ <fail if="drtfailed" message="One or more tests in the ServiceControl DRT failed."/>
+ </target>
+
+ <!-- ========================================= -->
+ <!--generate and compile the test control client interfaces from WSDLs -->
+ <!-- ========================================= -->
+ <target name="gen_jcx" depends="gen_xmlbeans">
+ <java classname="org.apache.beehive.controls.system.webservice.generator.ExtensionMaker" dir="${basedir}" fork="true" failOnError="true">
+ <classpath>
+ <path refid="client.classpath"/>
+ </classpath>
+ <arg line="-gen_root ${testmodel.client.jcxgen.dir}
+ -wsdl ${schemas.dir}
+ -pkg ${testmodel.client.jcxgen.packageName}
+ -wsdl_path_annotation ."/>
+ </java>
+
+ <copy todir="${testmodel.client.jcxgen.dir}/${testmodel.client.jcxgen.packageName}">
+ <fileset dir="${schemas.dir}" >
+ <include name="**/*.wsdl"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <target name="gen_xmlbeans" depends="checkxbean" unless="noxbeanrebuild">
+ <!-- XMLBean build -->
+ <!-- todo: switch to the build-schemas macro -->
+ <taskdef name="xmlbeanbuild" classname="org.apache.xmlbeans.impl.tool.XMLBean">
+ <classpath>
+ <path refid="client.classpath"/>
+ </classpath>
+ </taskdef>
+
+ <xmlbeanbuild schema="${schemas.dir}"
+ srcgendir="${client.xmlbeangen}"
+ classgendir="${client.classes}"
+ failonerror="true">
+ <classpath>
+ <path refid="client.classpath"/>
+ </classpath>
+ </xmlbeanbuild>
+ </target>
+
+ <target name="checkxbean">
+ <uptodate property="noxbeanrebuild" targetfile="${xbeangen.dir}">
+ <srcfiles dir="${schemas.dir}" includes="*.wsdl,*.xsd"/>
+ </uptodate>
+ </target>
+
+ <!-- ========================================= -->
+ <!-- build.gen-sc - build generated service control binaries -->
+ <!-- ========================================= -->
+
+ <target name="build.gen-sc" depends="dirs">
+ <build-controls srcdir="${testmodel.client.jcxgen.dir}"
+ destdir="${client.classes}"
+ tempdir="${client.beansrc}"
+ classpathref="client.classpath"/>
+
+ <copy todir="${client.classes}">
+ <fileset dir="${source.dir}" >
+ <include name="**/*.wsdl"/>
+ <include name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- ========================================= -->
+ <!-- build.sc - build service control binaries -->
+ <!-- ========================================= -->
+
+ <target name="build.sc" depends="dirs">
+<!--
+ <build-controls srcdir="${source.dir}"
+ destdir="${client.classes}"
+ tempdir="${client.beansrc}"
+ classpathref="client.classpath"/>
+-->
+ <apt srcdir="${source.dir}"
+ destdir="${client.classes}"
+ gendir="${client.beansrc}"
+ classpathref="client.classpath"
+ compileByExtension="true"
+ srcExtensions="*.jcx,*.java"
+ debug="on"/>
+
+ <copy todir="${client.classes}">
+ <fileset dir="${source.dir}" >
+ <include name="**/*.wsdl"/>
+ <include name="**/*.properties"/>
+ </fileset>
+ </copy>
+ </target>
+
+ <!-- ========================================= -->
+ <!-- build.server - -->
+ <!-- ========================================= -->
+ <target name="build.server" depends="dirs, deploy.beehive" >
+ <build-controls srcdir="${server.src}"
+ destdir="${server.classes}"
+ tempdir="${server.beansrc}"
+ classpathref="client.classpath"/>
+ </target>
+
+ <!-- ========================================= -->
+ <!-- deploy.beehive - copy all dependencies -->
+ <!-- ========================================= -->
+ <target name="deploy.beehive" depends="dirs">
+ <mkdir dir="${server.lib}"/>
+
+ <deploy-netui webappDir="${webapp.dir}"/>
+ <deploy-wsm webappDir="${webapp.dir}"/>
+ </target>
+
+ <!-- ========================================= -->
+ <!-- clean - delete binaries and all artifacts -->
+ <!-- ========================================= -->
+ <target name="clean">
+ <delete dir="${log.dir}"/>
+ <delete dir="${client.beansrc}"/>
+ <delete dir="${client.build}"/>
+ <delete dir="${server.attachments}"/>
+ <delete dir="${server.lib}"/>
+ <delete dir="${server.beansrc}"/>
+ <delete dir="${server.classes}"/>
+ <delete file="velocity.log"/>
+ <delete dir="${testmodel.client.jcxgen.dir}"/>
+ </target>
+
+ <!-- ========================================= -->
+ <!-- dirs - create all required directories -->
+ <!-- ========================================= -->
+ <target name="dirs">
+ <mkdir dir="${client.classes}"/>
+ <mkdir dir="${client.beansrc}"/>
+ <mkdir dir="${server.classes}"/>
+ <mkdir dir="${testmodel.client.jcxgen.dir}"/>
+ <mkdir dir="${log.dir}"/>
+ </target>
+
+ <!-- ========================================= -->
+ <!-- generate-xmlbean-datatypes - -->
+ <!-- ========================================= -->
+
+ <target name="generate-xmlbean-datatypes">
+ <taskdef name="xmlbeanbuild"
+ classname="org.apache.xmlbeans.impl.tool.XMLBean">
+ <classpath>
+ <path refid="client.classpath"/>
+ </classpath>
+ </taskdef>
+ <xmlbeanbuild
+ schema="${schemas.dir}"
+ srcgendir="${client.xmlbeangen}"
+ classgendir="${client.classes}"
+ failonerror="true">
+ <classpath>
+ <path refid="client.classpath"/>
+ </classpath>
+ </xmlbeanbuild>
+ </target>
+
+</project>
\ No newline at end of file
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/schemas/ServiceWS.wsdl
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/schemas/ServiceWS.wsdl?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/schemas/ServiceWS.wsdl (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/schemas/ServiceWS.wsdl Mon May 9 23:03:53 2005
@@ -0,0 +1,311 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<wsdl:definitions targetNamespace="http://controlhaus.org/ServiceControlTestServer" xmlns:apachesoap="http://xml.apache.org/xml-soap" xmlns:impl="http://controlhaus.org/ServiceControlTestServer" xmlns:intf="http://controlhaus.org/ServiceControlTestServer" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+<!--WSDL created by Apache Axis version: 1.2RC2
+Built on Nov 16, 2004 (12:19:44 EST)-->
+ <wsdl:types>
+ <schema elementFormDefault="qualified" targetNamespace="http://controlhaus.org/ServiceControlTestServer" xmlns="http://www.w3.org/2001/XMLSchema">
+ <element name="getAddressFromName">
+ <complexType>
+ <sequence>
+ <element name="name" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getAddressFromNameResponse">
+ <complexType>
+ <sequence>
+ <element name="result" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <complexType name="Phone">
+ <sequence>
+ <element name="areaCode" type="xsd:int"/>
+ <element name="exchange" nillable="true" type="xsd:string"/>
+ <element name="number" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="StateType">
+ <sequence>
+ <element name="state" nillable="true" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ <complexType name="Address">
+ <sequence>
+ <element name="city" nillable="true" type="xsd:string"/>
+ <element name="phoneNumber" nillable="true" type="impl:Phone"/>
+ <element name="state" nillable="true" type="impl:StateType"/>
+ <element name="streetName" nillable="true" type="xsd:string"/>
+ <element name="streetNum" type="xsd:int"/>
+ <element name="zip" type="xsd:int"/>
+ </sequence>
+ </complexType>
+ <element name="getAddressFromNames">
+ <complexType>
+ <sequence>
+ <element maxOccurs="unbounded" name="name" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="getAddressFromNamesResponse">
+ <complexType>
+ <sequence>
+ <element maxOccurs="unbounded" name="result" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="oneWayWithParam">
+ <complexType>
+ <sequence>
+ <element name="param1" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="simpleNoParamMethod">
+ <complexType/>
+ </element>
+ <element name="simpleNoParamMethodResponse">
+ <complexType>
+ <sequence>
+ <element name="result" type="xsd:string"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="addEntry">
+ <complexType>
+ <sequence>
+ <element name="name" type="xsd:string"/>
+ <element name="address" type="impl:Address"/>
+ </sequence>
+ </complexType>
+ </element>
+ <element name="addEntryResponse">
+ <complexType/>
+ </element>
+ <element name="oneWayWithNoParam">
+ <complexType/>
+ </element>
+ </schema>
+ </wsdl:types>
+
+ <wsdl:message name="getAddressFromNamesResponse">
+
+ <wsdl:part element="impl:getAddressFromNamesResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addEntryResponse">
+
+ <wsdl:part element="impl:addEntryResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="oneWayWithNoParamRequest">
+
+ <wsdl:part element="impl:oneWayWithNoParam" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="oneWayWithParamRequest">
+
+ <wsdl:part element="impl:oneWayWithParam" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="addEntryRequest">
+
+ <wsdl:part element="impl:addEntry" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getAddressFromNameResponse">
+
+ <wsdl:part element="impl:getAddressFromNameResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getAddressFromNamesRequest">
+
+ <wsdl:part element="impl:getAddressFromNames" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="getAddressFromNameRequest">
+
+ <wsdl:part element="impl:getAddressFromName" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="simpleNoParamMethodResponse">
+
+ <wsdl:part element="impl:simpleNoParamMethodResponse" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:message name="simpleNoParamMethodRequest">
+
+ <wsdl:part element="impl:simpleNoParamMethod" name="parameters"/>
+
+ </wsdl:message>
+
+ <wsdl:portType name="Service">
+
+ <wsdl:operation name="getAddressFromName">
+
+ <wsdl:input message="impl:getAddressFromNameRequest" name="getAddressFromNameRequest"/>
+
+ <wsdl:output message="impl:getAddressFromNameResponse" name="getAddressFromNameResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getAddressFromNames">
+
+ <wsdl:input message="impl:getAddressFromNamesRequest" name="getAddressFromNamesRequest"/>
+
+ <wsdl:output message="impl:getAddressFromNamesResponse" name="getAddressFromNamesResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="oneWayWithParam">
+
+ <wsdl:input message="impl:oneWayWithParamRequest" name="oneWayWithParamRequest"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="simpleNoParamMethod">
+
+ <wsdl:input message="impl:simpleNoParamMethodRequest" name="simpleNoParamMethodRequest"/>
+
+ <wsdl:output message="impl:simpleNoParamMethodResponse" name="simpleNoParamMethodResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="addEntry">
+
+ <wsdl:input message="impl:addEntryRequest" name="addEntryRequest"/>
+
+ <wsdl:output message="impl:addEntryResponse" name="addEntryResponse"/>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="oneWayWithNoParam">
+
+ <wsdl:input message="impl:oneWayWithNoParamRequest" name="oneWayWithNoParamRequest"/>
+
+ </wsdl:operation>
+
+ </wsdl:portType>
+
+ <wsdl:binding name="ServiceSoapBinding" type="impl:Service">
+
+ <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
+
+ <wsdl:operation name="getAddressFromName">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getAddressFromNameRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getAddressFromNameResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="getAddressFromNames">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="getAddressFromNamesRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="getAddressFromNamesResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="oneWayWithParam">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="oneWayWithParamRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="simpleNoParamMethod">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="simpleNoParamMethodRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="simpleNoParamMethodResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="addEntry">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="addEntryRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ <wsdl:output name="addEntryResponse">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:output>
+
+ </wsdl:operation>
+
+ <wsdl:operation name="oneWayWithNoParam">
+
+ <wsdlsoap:operation soapAction=""/>
+
+ <wsdl:input name="oneWayWithNoParamRequest">
+
+ <wsdlsoap:body use="literal"/>
+
+ </wsdl:input>
+
+ </wsdl:operation>
+
+ </wsdl:binding>
+
+ <wsdl:service name="ServiceControlTest">
+
+ <wsdl:port binding="impl:ServiceSoapBinding" name="Service">
+
+ <wsdlsoap:address location="http://localhost:8080/ServiceControlDRT/web/Service.jws"/>
+
+ </wsdl:port>
+
+ </wsdl:service>
+
+</wsdl:definitions>
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Address.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Address.java?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Address.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Address.java Mon May 9 23:03:53 2005
@@ -0,0 +1,133 @@
+package org.controlhaus.webservice.testmodel.server;
+
+
+/*
+ * 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:$
+ */
+
+import java.io.Serializable;
+
+public class Address implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+ private int streetNum;
+ private java.lang.String streetName;
+ private java.lang.String city;
+ private StateType state;
+ private int zip;
+ private Phone phoneNumber;
+
+
+
+ /**
+ * @param streetNum
+ * @param streetName
+ * @param city
+ * @param state
+ * @param zip
+ * @param phoneNumber
+ */
+ public Address(int streetNum, java.lang.String streetName,
+ java.lang.String city, StateType state, int zip, Phone phoneNumber) {
+ super();
+ this.streetNum = streetNum;
+ this.streetName = streetName;
+ this.city = city;
+ this.state = state;
+ this.zip = zip;
+ this.phoneNumber = phoneNumber;
+ }
+ /**
+ *
+ */
+ public Address() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+ /**
+ * @return Returns the city.
+ */
+ public java.lang.String getCity() {
+ return city;
+ }
+ /**
+ * @param city The city to set.
+ */
+ public void setCity(java.lang.String city) {
+ this.city = city;
+ }
+ /**
+ * @return Returns the phoneNumber.
+ */
+ public Phone getPhoneNumber() {
+ return phoneNumber;
+ }
+ /**
+ * @param phoneNumber The phoneNumber to set.
+ */
+ public void setPhoneNumber(Phone phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+ /**
+ * @return Returns the state.
+ */
+ public StateType getState() {
+ return state;
+ }
+ /**
+ * @param state The state to set.
+ */
+ public void setState(StateType state) {
+ this.state = state;
+ }
+ /**
+ * @return Returns the streetName.
+ */
+ public java.lang.String getStreetName() {
+ return streetName;
+ }
+ /**
+ * @param streetName The streetName to set.
+ */
+ public void setStreetName(java.lang.String streetName) {
+ this.streetName = streetName;
+ }
+ /**
+ * @return Returns the streetNum.
+ */
+ public int getStreetNum() {
+ return streetNum;
+ }
+ /**
+ * @param streetNum The streetNum to set.
+ */
+ public void setStreetNum(int streetNum) {
+ this.streetNum = streetNum;
+ }
+ /**
+ * @return Returns the zip.
+ */
+ public int getZip() {
+ return zip;
+ }
+ /**
+ * @param zip The zip to set.
+ */
+ public void setZip(int zip) {
+ this.zip = zip;
+ }
+}
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Address.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Phone.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Phone.java?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Phone.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Phone.java Mon May 9 23:03:53 2005
@@ -0,0 +1,88 @@
+package org.controlhaus.webservice.testmodel.server;
+
+/*
+ * 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:$
+ */
+
+import java.io.Serializable;
+
+public class Phone implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+
+ private int areaCode;
+ private java.lang.String exchange;
+ private java.lang.String number;
+
+
+
+ /**
+ * @param areaCode
+ * @param exchange
+ * @param number
+ */
+ public Phone(int areaCode, java.lang.String exchange,
+ java.lang.String number) {
+ super();
+ this.areaCode = areaCode;
+ this.exchange = exchange;
+ this.number = number;
+ }
+ /**
+ *
+ */
+ public Phone() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+ /**
+ * @return Returns the areaCode.
+ */
+ public int getAreaCode() {
+ return areaCode;
+ }
+ /**
+ * @param areaCode The areaCode to set.
+ */
+ public void setAreaCode(int areaCode) {
+ this.areaCode = areaCode;
+ }
+ /**
+ * @return Returns the exchange.
+ */
+ public java.lang.String getExchange() {
+ return exchange;
+ }
+ /**
+ * @param exchange The exchange to set.
+ */
+ public void setExchange(java.lang.String exchange) {
+ this.exchange = exchange;
+ }
+ /**
+ * @return Returns the number.
+ */
+ public java.lang.String getNumber() {
+ return number;
+ }
+ /**
+ * @param number The number to set.
+ */
+ public void setNumber(java.lang.String number) {
+ this.number = number;
+ }
+}
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/Phone.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/SimpleWebService.jws
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/SimpleWebService.jws?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/SimpleWebService.jws (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/SimpleWebService.jws Mon May 9 23:03:53 2005
@@ -0,0 +1,81 @@
+package org.controlhaus.webservice.testmodel.server;
+
+
+/*
+ * 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:$
+ */
+
+import java.util.Hashtable;
+import java.util.Map;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+
+
+
+
+@WebService(targetNamespace="http://testmode.webservicex.controlhaus.org/AddressBook", serviceName="simpleAddressBookService")
+public class SimpleWebService {
+
+
+ private Map<String, Address> addresses = new Hashtable<String, Address>();
+
+
+ /**
+ * Constructor.
+ */
+ public SimpleWebService() {
+ }
+
+ /**
+ * Web method that adds an entry to the AddressBook.
+ * @param name
+ * @param address
+ */
+ @WebMethod
+ public void addEntry(String name, Address address) {
+ System.out.println("addEntry is called." );
+ this.addresses.put(name, address);
+ }
+
+ /**
+ * Web method that queries the AddressBook.
+ * @param name
+ * @return
+ */
+ @WebMethod
+ public Address getAddressFromName(String name) {
+ System.out.println("getAddressFromName is called.");
+ return (Address) this.addresses.get(name);
+ }
+
+ @WebMethod
+ public Address[] getAddressFromNames(String[] name) {
+ if(null == name) return null;
+ Address[] result = new Address[name.length];
+ for(int i=0; i< name.length; i++) {
+ result[i] = getAddressFromName(name[i]);
+ }
+ return result;
+ }
+
+
+
+}
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/StateType.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/StateType.java?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/StateType.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/StateType.java Mon May 9 23:03:53 2005
@@ -0,0 +1,49 @@
+package org.controlhaus.webservice.testmodel.server;
+
+/*
+ * 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:$
+ */
+
+import java.io.Serializable;
+
+public class StateType implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+ String state;
+
+ /**
+ *
+ */
+ public StateType() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+ /**
+ * @param state
+ */
+ public StateType(String state) {
+ super();
+ this.state = state;
+ }
+ /**
+ * @return Returns the state.
+ */
+ public String getState() {
+ return state;
+ }
+
+}
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/local/org/controlhaus/webservice/testmodel/server/StateType.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/client-build.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/client-build.xml?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/client-build.xml (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/client-build.xml Mon May 9 23:03:53 2005
@@ -0,0 +1,69 @@
+<?xml version="1.0" ?>
+
+<project name="AddressBookClient" basedir="." default="all">
+
+ <property name="AddressBook.wsdl.url"
+ value="http://localhost:8080/AddressBook/web/Service.jws?wsdl" />
+
+
+ <path id="jars">
+ <fileset dir="lib">
+ <include name="**/*.jar"/>
+ </fileset>
+ </path>
+
+ <taskdef name="wsdl2java" classname="org.apache.axis.tools.ant.wsdl.Wsdl2javaAntTask"
+ loaderref="axis" >
+ <classpath refid="jars"/>
+ </taskdef>
+
+
+ <target name="clean">
+ <delete dir="build" />
+ <delete dir="./logs" />
+
+ </target>
+
+ <target name="dirs">
+ <mkdir dir="build" />
+ <mkdir dir="build/generated" />
+ <mkdir dir="build/classes" />
+ <mkdir dir="./logs" />
+
+ </target>
+ <target name="all" depends="genClient, compile, test"/>
+
+ <target name="genClient" depends="dirs">
+ <wsdl2java url="${AddressBook.wsdl.url}"
+ output="build/generated"
+ testcase="yes">
+ </wsdl2java>
+
+ </target>
+
+ <target name="compile" depends="genClient">
+ <javac srcdir="build/generated"
+ destdir="build/classes"
+ classpathref="jars"
+ failonerror="true"
+ source="1.4"
+ />
+ </target>
+
+ <target name="test" depends="compile">
+ <junit printsummary="yes" haltonfailure="yes" showoutput="yes">
+ <classpath>
+ <pathelement location= "build/classes"/>
+ <path refid="jars"/>
+ </classpath>
+ <formatter type="plain"/>
+ <batchtest fork="yes" todir="./logs">
+ <fileset dir="build/classes">
+ <include name="**/*Test*.class"/>
+ </fileset>
+ </batchtest>
+ </junit>
+
+ </target>
+
+</project>
\ No newline at end of file
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/client-build.xml
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/server-config.wsdd
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/server-config.wsdd?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/server-config.wsdd (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/server-config.wsdd Mon May 9 23:03:53 2005
@@ -0,0 +1,68 @@
+<?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.util.DebugPrintMessageHandler">
+ </handler>
+ <handler name="soapmonitor"
+ type="java:org.apache.axis.handlers.SOAPMonitorHandler">
+ <parameter name="wsdlURL"
+ value="/testws/SOAPMonitorService-impl.wsdl"/>
+ <parameter name="namespace"
+ value="http://tempuri.org/wsdl/2001/12/SOAPMonitorService-impl.wsdl"/>
+ <parameter name="serviceName" value="SOAPMonitorService"/>
+ <parameter name="portName" value="Demo"/>
+ </handler>
+ <service name="SOAPMonitorService" provider="java:RPC">
+ <parameter name="allowedMethods" value="publishMessage"/>
+ <parameter name="className"
+ value="org.apache.axis.monitor.SOAPMonitorService"/>
+ <parameter name="scope" value="Application"/>
+ </service>
+
+
+ <handler type="java:org.apache.beehive.wsm.axis.handlers.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/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/log4j.properties
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/log4j.properties?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/log4j.properties (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/log4j.properties Mon May 9 23:03:53 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
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/log4j.properties
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java Mon May 9 23:03:53 2005
@@ -0,0 +1,132 @@
+package org.apache.beehive.sample;
+
+/*
+ * 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:$
+ */
+
+import java.io.Serializable;
+
+public class Address implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+ private int streetNum;
+ private java.lang.String streetName;
+ private java.lang.String city;
+ private StateType state;
+ private int zip;
+ private Phone phoneNumber;
+
+
+
+ /**
+ * @param streetNum
+ * @param streetName
+ * @param city
+ * @param state
+ * @param zip
+ * @param phoneNumber
+ */
+ public Address(int streetNum, java.lang.String streetName,
+ java.lang.String city, StateType state, int zip, Phone phoneNumber) {
+ super();
+ this.streetNum = streetNum;
+ this.streetName = streetName;
+ this.city = city;
+ this.state = state;
+ this.zip = zip;
+ this.phoneNumber = phoneNumber;
+ }
+ /**
+ *
+ */
+ public Address() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+ /**
+ * @return Returns the city.
+ */
+ public java.lang.String getCity() {
+ return city;
+ }
+ /**
+ * @param city The city to set.
+ */
+ public void setCity(java.lang.String city) {
+ this.city = city;
+ }
+ /**
+ * @return Returns the phoneNumber.
+ */
+ public Phone getPhoneNumber() {
+ return phoneNumber;
+ }
+ /**
+ * @param phoneNumber The phoneNumber to set.
+ */
+ public void setPhoneNumber(Phone phoneNumber) {
+ this.phoneNumber = phoneNumber;
+ }
+ /**
+ * @return Returns the state.
+ */
+ public StateType getState() {
+ return state;
+ }
+ /**
+ * @param state The state to set.
+ */
+ public void setState(StateType state) {
+ this.state = state;
+ }
+ /**
+ * @return Returns the streetName.
+ */
+ public java.lang.String getStreetName() {
+ return streetName;
+ }
+ /**
+ * @param streetName The streetName to set.
+ */
+ public void setStreetName(java.lang.String streetName) {
+ this.streetName = streetName;
+ }
+ /**
+ * @return Returns the streetNum.
+ */
+ public int getStreetNum() {
+ return streetNum;
+ }
+ /**
+ * @param streetNum The streetNum to set.
+ */
+ public void setStreetNum(int streetNum) {
+ this.streetNum = streetNum;
+ }
+ /**
+ * @return Returns the zip.
+ */
+ public int getZip() {
+ return zip;
+ }
+ /**
+ * @param zip The zip to set.
+ */
+ public void setZip(int zip) {
+ this.zip = zip;
+ }
+}
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Address.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java Mon May 9 23:03:53 2005
@@ -0,0 +1,28 @@
+package org.apache.beehive.sample;
+
+import javax.naming.InvalidNameException;
+
+/*
+ * 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:$
+ */
+
+public interface AddressBook
+{
+ void addEntry(java.lang.String name, Address address) throws InvalidNameException;
+
+ Address getAddressFromName(java.lang.String name)throws InvalidNameException;
+}
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBook.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java Mon May 9 23:03:53 2005
@@ -0,0 +1,42 @@
+package org.apache.beehive.sample;
+
+/*
+ * 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:$
+ */
+
+
+import java.util.Hashtable;
+import java.util.Map;
+
+import javax.naming.InvalidNameException;
+
+public class AddressBookImpl implements AddressBook
+{
+ private Map<String, Address> addresses = new Hashtable<String, Address>();
+
+ public void addEntry(String name, Address address) throws InvalidNameException
+ {
+ System.out.println("addEntry is called." );
+ this.addresses.put(name, address);
+ }
+
+ public Address getAddressFromName(String name) throws InvalidNameException
+ {
+ System.out.println("getAddressFromName is called.");
+ return (Address) this.addresses.get(name);
+ }
+}
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/AddressBookImpl.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java Mon May 9 23:03:53 2005
@@ -0,0 +1,88 @@
+package org.apache.beehive.sample;
+
+/*
+ * 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:$
+ */
+
+import java.io.Serializable;
+
+public class Phone implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+
+ private int areaCode;
+ private java.lang.String exchange;
+ private java.lang.String number;
+
+
+
+ /**
+ * @param areaCode
+ * @param exchange
+ * @param number
+ */
+ public Phone(int areaCode, java.lang.String exchange,
+ java.lang.String number) {
+ super();
+ this.areaCode = areaCode;
+ this.exchange = exchange;
+ this.number = number;
+ }
+ /**
+ *
+ */
+ public Phone() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+ /**
+ * @return Returns the areaCode.
+ */
+ public int getAreaCode() {
+ return areaCode;
+ }
+ /**
+ * @param areaCode The areaCode to set.
+ */
+ public void setAreaCode(int areaCode) {
+ this.areaCode = areaCode;
+ }
+ /**
+ * @return Returns the exchange.
+ */
+ public java.lang.String getExchange() {
+ return exchange;
+ }
+ /**
+ * @param exchange The exchange to set.
+ */
+ public void setExchange(java.lang.String exchange) {
+ this.exchange = exchange;
+ }
+ /**
+ * @return Returns the number.
+ */
+ public java.lang.String getNumber() {
+ return number;
+ }
+ /**
+ * @param number The number to set.
+ */
+ public void setNumber(java.lang.String number) {
+ this.number = number;
+ }
+}
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/Phone.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java Mon May 9 23:03:53 2005
@@ -0,0 +1,49 @@
+package org.apache.beehive.sample;
+
+/*
+ * 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:$
+ */
+
+import java.io.Serializable;
+
+public class StateType implements Serializable
+{
+ private static final long serialVersionUID = 1L;
+ String state;
+
+ /**
+ *
+ */
+ public StateType() {
+ super();
+ // TODO Auto-generated constructor stub
+ }
+ /**
+ * @param state
+ */
+ public StateType(String state) {
+ super();
+ this.state = state;
+ }
+ /**
+ * @return Returns the state.
+ */
+ public String getState() {
+ return state;
+ }
+
+}
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/org/apache/beehive/sample/StateType.java
------------------------------------------------------------------------------
svn:eol-style = native
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/Service.jws
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/Service.jws?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/Service.jws (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/src/web/Service.jws Mon May 9 23:03:53 2005
@@ -0,0 +1,140 @@
+package web;
+
+/*
+ * 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:$
+ */
+
+import java.rmi.RemoteException;
+
+import javax.jws.Oneway;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.naming.InvalidNameException;
+import javax.xml.rpc.holders.StringHolder;
+
+import org.apache.beehive.sample.Address;
+import org.apache.beehive.sample.AddressBook;
+import org.apache.beehive.sample.AddressBookImpl;
+
+
+@WebService(targetNamespace="http://controlhaus.org/ServiceControlTestServer", serviceName="ServiceControlTest")
+//@SOAPBinding( style = SOAPBinding.Style.RPC, use = SOAPBinding.Use.ENCODED)
+public class Service {
+
+ AddressBook addressBook;
+
+ /**
+ * Constructor.
+ */
+ public Service() {
+ addressBook = new AddressBookImpl();
+ }
+
+ /**
+ * Web method that adds an entry to the AddressBook.
+ * @param name
+ * @param address
+ */
+ @WebMethod
+ public void addEntry(String name, Address address) throws RemoteException {
+ try {
+ addressBook.addEntry(name, address);
+ } catch (InvalidNameException e) {
+ throw new RemoteException("Invalid name: " +name , e);
+ }
+ }
+
+ /**
+ * Web method that queries the AddressBook.
+ * @param name
+ * @return
+ */
+ @WebMethod
+ public Address getAddressFromName(String name) throws RemoteException {
+ try {
+ System.out.println("Get Address for: " + name);
+ if(name == null) return null;
+ if( 0 == "Jack".compareTo(name)) {
+ Address result = new Address();
+ result.setCity("Seattle");
+ result.setZip(98119);
+ return result;
+ }
+ if(0 == "bob".compareTo(name)) throw new RemoteException( "Invalid name", new InvalidNameException("Bob is invalid name!"));
+ return addressBook.getAddressFromName(name);
+ } catch (InvalidNameException e) {
+ throw new RemoteException("Invalid name: " +name , e);
+ }
+ }
+
+ @WebMethod
+ public Address[] getAddressFromNames(String[] name) throws RemoteException {
+ try {
+ if(null == name) return null;
+ Address[] result = new Address[name.length];
+ for(int i=0; i< name.length; i++) {
+ result[i] = addressBook.getAddressFromName(name[i]);
+ }
+ return result;
+ } catch (InvalidNameException e) {
+ throw new RemoteException("Invalid name: " +name , e);
+ }
+ }
+
+ @WebMethod
+ public int FindClosestName(@WebParam( mode=WebParam.Mode.INOUT) StringHolder name) {
+ System.out.println("Find the closest name for: " + name.value);
+ int res = 0;
+ if(name == null) {
+ name.value = "Invalid name";
+ res =0;
+ }
+ if(name.value.startsWith("Ja")) {
+ name.value = "Jack";
+ res =1;
+ }
+ return res;
+ }
+
+
+ @WebMethod
+ @Oneway
+ public void oneWayWithNoParam() {
+ return;
+ }
+
+
+
+ @WebMethod
+ public String simpleNoParamMethod () {
+ return "No Param method";
+ }
+
+ /**
+ * This method is not exposed by the Web Service and can only be used
+ * locally.
+ * @return A random string.
+ */
+ public String notWebService() {
+ return "Not available through Web service";
+ }
+
+
+}
Added: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewcvs/incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/web.xml?rev=169421&view=auto
==============================================================================
--- incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/web.xml (added)
+++ incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/web.xml Mon May 9 23:03:53 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>
Propchange: incubator/beehive/trunk/system-controls/test/src/webservice/servers/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native