[jboss-cvs] JBossAS SVN: r92678 - in branches/JBPAPP_5_0/webservices/src/etc/examples: eardeployment and 28 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Fri Aug 21 12:37:59 EDT 2009
Author: alessio.soldano at jboss.com
Date: 2009-08-21 12:37:57 -0400 (Fri, 21 Aug 2009)
New Revision: 92678
Added:
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/build.xml
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/jndi.properties
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/log4j.xml
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/tst.policy
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EJB3Bean.java
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/Endpoint.java
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/JSEBean.java
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/META-INF/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/META-INF/jboss-app.xml
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/jboss-web.xml
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/web.xml
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/Endpoint.wsdl
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/TestService.xsd
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/test-excludes-cxf.txt
branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/test-excludes-native.txt
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/build.xml
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/jndi.properties
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/log4j.xml
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/tst.policy
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEJB3TestCase.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ExceptionEndpoint.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationException.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationExceptionResponse.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeException.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeExceptionResponse.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultException.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultExceptionResponse.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException_Exception.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/package-info.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointEJB3Impl.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/UserException.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationException.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationExceptionResponse.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeException.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeExceptionResponse.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultException.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultExceptionResponse.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/UserExceptionBean.java
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/WEB-INF/
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/WEB-INF/web.xml
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/test-excludes-cxf.txt
branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/test-excludes-native.txt
Log:
[JBPAPP-840] examples...
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/build.xml
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/build.xml (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/build.xml 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,341 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+To run the example, set JBOSS_HOME and run ant (with no parameters)
+-->
+
+<project default="run">
+
+ <description>JBossWS EAP samples - eardeployment</description>
+
+ <target name="prepare">
+ <property environment="ENV"/>
+ <property name="jboss.home" value="${ENV.JBOSS_HOME}" />
+ <property name="jboss.server.instance" value="default"/>
+ <property name="jboss.lib" value="${jboss.home}/lib"/>
+ <property name="jboss.client" value="${jboss.home}/client"/>
+ <property name="jboss.server" value="${jboss.home}/server/${jboss.server.instance}"/>
+ <property name="jboss.server.lib" value="${jboss.home}/common/lib"/>
+ <property name="jboss.server.deploy" value="${jboss.server}/deploy"/>
+ <property name="jboss.server.deployers" value="${jboss.server}/deployers"/>
+ <property name="endorsed.dirs" value="${jboss.home}/lib/endorsed"/>
+ <property name="tests.output.dir" value="./tests-output"/>
+ <property name="tests.dir" value="."/>
+ <property name="jboss.bind.address" value="localhost"/>
+ </target>
+
+ <target name="init" depends="prepare">
+ <condition property="valid.jboss.home" value="true">
+ <not>
+ <contains string="${ENV.JBOSS_HOME}" substring="{ENV.JBOSS_HOME}"/>
+ </not>
+ </condition>
+ <fail message="Please make sure the JBOSS_HOME environment property is correctly set." unless="valid.jboss.home"/>
+ <!-- Check the jbossws stack installed on JBoss AS -->
+ <condition property="native-stack" value="true">
+ <available file="${jboss.client}/jbossws-native-client.jar"/>
+ </condition>
+ <condition property="cxf-stack" value="true">
+ <available file="${jboss.client}/jbossws-cxf-client.jar"/>
+ </condition>
+ <condition property="excludesfile" value="./resources/test-excludes-native.txt">
+ <isset property="native-stack"/>
+ </condition>
+ <condition property="excludesfile" value="./resources/test-excludes-cxf.txt">
+ <isset property="cxf-stack"/>
+ </condition>
+ </target>
+
+ <target name="tests-init" depends="init,native-stack-classpath,cxf-stack-classpath,tests-classpath">
+ <property name="jbossws.test.log" value="${tests.output.dir}"/>
+ </target>
+
+ <target name="native-stack-classpath" if="native-stack">
+ <path id="ws.stack.classpath">
+ <pathelement location="${jboss.client}/jbossws-native-client.jar"/>
+ </path>
+ </target>
+
+ <target name="cxf-stack-classpath" if="cxf-stack">
+ <path id="ws.stack.classpath">
+ <pathelement location="${jboss.client}/jbossws-cxf-client.jar"/>
+ </path>
+ </target>
+
+ <target name="tests-classpath" depends="tests-classpath-jboss51">
+ <!-- Compile classpath -->
+ <path id="tests.javac.classpath">
+ <path refid="ws.stack.classpath"/>
+ <path refid="integration.target.javac.classpath"/>
+ </path>
+ <!-- Client run classpath -->
+ <path id="tests.client.classpath">
+ <path refid="ws.stack.classpath"/>
+ <path refid="integration.target.client.classpath"/>
+ </path>
+ </target>
+
+ <!-- This adds to the classpath the AS libraries that are most frequently used/required in WS apps -->
+ <target name="tests-classpath-jboss51" depends="tests-prepare">
+ <path id="integration.target.javac.classpath">
+ <pathelement location="${jboss.client}/activation.jar"/>
+ <pathelement location="${jboss.client}/jaxws-tools.jar"/>
+ <pathelement location="${jboss.client}/jboss-annotations-ejb3.jar"/>
+ <pathelement location="${jboss.client}/jboss-appclient.jar"/>
+ <pathelement location="${jboss.client}/jboss-common-core.jar"/>
+ <pathelement location="${jboss.client}/jboss-ejb3-client.jar"/>
+ <pathelement location="${jboss.client}/jboss-ejb3-ext-api.jar"/>
+ <pathelement location="${jboss.client}/jboss-logging-spi.jar"/>
+ <pathelement location="${jboss.client}/jboss-metadata.jar"/>
+ <pathelement location="${jboss.client}/jboss-remoting.jar"/>
+ <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
+ <pathelement location="${jboss.client}/mail.jar"/>
+ <pathelement location="${jboss.client}/stax-api.jar"/>
+ <pathelement location="${jboss.client}/wsdl4j.jar"/>
+ <pathelement location="${jboss.server.lib}/jboss-javaee.jar"/>
+ <pathelement location="${jboss.server.lib}/jbosssx.jar"/>
+ <pathelement location="${jboss.server.lib}/servlet-api.jar"/>
+ </path>
+ <path id="integration.target.client.classpath">
+ <pathelement location="${jboss.client}/activation.jar"/>
+ <pathelement location="${jboss.client}/javassist.jar"/>
+ <pathelement location="${jboss.client}/jaxb-api.jar"/>
+ <pathelement location="${jboss.client}/jaxb-impl.jar"/>
+ <pathelement location="${jboss.client}/jaxb-xjc.jar"/>
+ <pathelement location="${jboss.client}/jboss-appclient.jar"/>
+ <pathelement location="${jboss.client}/jboss-ejb3-ext-api.jar"/>
+ <pathelement location="${jboss.client}/jbossws-jboss50.jar"/>
+ <pathelement location="${jboss.client}/jboss-metadata.jar"/>
+ <pathelement location="${jboss.client}/jboss-remoting.jar"/>
+ <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
+ <pathelement location="${jboss.client}/jbossall-client.jar"/>
+ <pathelement location="${jboss.client}/jaxws-tools.jar"/>
+ <pathelement location="${jboss.client}/log4j.jar"/>
+ <pathelement location="${jboss.client}/mail.jar"/>
+ <pathelement location="${jboss.client}/stax-api.jar"/>
+ <pathelement location="${jboss.client}/trove.jar"/>
+ <pathelement location="${jboss.client}/jboss-javaee.jar"/>
+ <pathelement location="${jboss.lib}/jboss-classloader.jar"/>
+ <pathelement location="${jboss.lib}/jboss-classloading.jar"/>
+ <pathelement location="${jboss.lib}/jboss-classloading-vfs.jar"/>
+ <pathelement location="${jboss.lib}/jboss-dependency.jar"/>
+ <pathelement location="${jboss.lib}/jboss-vfs.jar"/>
+ <pathelement location="${jboss.lib}/jboss-kernel.jar"/>
+ <pathelement location="${jboss.lib}/jboss-reflect.jar"/>
+ <pathelement location="${jboss.server.lib}/jboss.jar"/>
+ <pathelement location="${jboss.server.lib}/jbosssx.jar"/>
+ <pathelement location="${jboss.server.lib}/jnpserver.jar"/>
+ <pathelement location="${jboss.server.lib}/jboss-ejb3-core.jar"/>
+ <pathelement location="${tools.jar}"/>
+ <pathelement location="${jboss.server.deploy}/jbossweb.sar/jbossweb.jar"/>
+ </path>
+ </target>
+
+ <target name="tests-prepare" depends="prepare">
+ <!-- Verify availabililty of tools.jar -->
+ <condition property="tools.jar" value="${java.home}/lib/tools.jar">
+ <available file="${java.home}/lib/tools.jar"/>
+ </condition>
+ <condition property="tools.jar" value="${java.home}/../lib/tools.jar">
+ <available file="${java.home}/../lib/tools.jar"/>
+ </condition>
+ <!-- [JBWS-2113] tools.jar not available on Mac OS X -->
+ <condition property="tools.jar" value="${java.home}/../Classes/classes.jar">
+ <available file="${java.home}/../Classes/classes.jar"/>
+ </condition>
+ <fail message="Not available: ${java.home}/lib/tools.jar, ${java.home}/../lib/tools.jar" unless="tools.jar"/>
+ <mkdir dir="${tests.output.dir}"/>
+ <delete file="${tests.output.dir}/test.log" failonerror="false"/>
+ <echo/>
+ <echo message="-----------------------------------------------"/>
+ <echo message="jboss.home = ${jboss.home}"/>
+ <echo message="excludesfile = ${excludesfile}"/>
+ <echo message="java.home = ${java.home}"/>
+ <echo message="jboss.bind = ${jboss.bind.address}"/>
+ <echo message="-----------------------------------------------"/>
+ <tstamp>
+ <format property="build.id" pattern="yyyyMMddHHmm"/>
+ </tstamp>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Compile -->
+ <!-- ================================================================== -->
+
+ <target name="compile" depends="tests-init" description="Compile sources">
+ <macro-compile-classes srcdir="${tests.dir}/java" excludesfile="${excludesfile}"/>
+ </target>
+
+
+
+ <!-- ================================================================== -->
+ <!-- Building -->
+ <!-- ================================================================== -->
+
+ <!-- Copy resources -->
+ <target name="copy-resources" depends="tests-init">
+ <macro-copy-resources srcdir="${tests.dir}"/>
+ </target>
+
+ <target name="jars" depends="compile,copy-resources" description="Generates the deployment packages for this example">
+ <mkdir dir="${tests.output.dir}/test-libs"/>
+ <!-- This actually builds the jaxws-samples-eardeployment deployment package -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-samples-eardeployment.war" webxml="${tests.output.dir}/test-resources/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/samples/eardeployment/JSEBean.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/WEB-INF">
+ <include name="jboss-web.xml"/>
+ <include name="wsdl/**"/>
+ </webinf>
+ </war>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-eardeployment.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/samples/eardeployment/EJB3Bean.class"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/WEB-INF">
+ <include name="wsdl/**"/>
+ </metainf>
+ </jar>
+ <jar jarfile="${tests.output.dir}/test-libs/jaxws-samples-eardeployment.ear">
+ <fileset dir="${tests.output.dir}/test-libs">
+ <include name="jaxws-samples-eardeployment.jar"/>
+ <include name="jaxws-samples-eardeployment.war"/>
+ </fileset>
+ <metainf dir="${tests.output.dir}/test-resources/META-INF">
+ <include name="jboss-app.xml"/>
+ </metainf>
+ </jar>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Testing -->
+ <!-- ================================================================== -->
+
+ <!-- Run all unit tests and generate a report -->
+ <target name="run" depends="jars" description="Run all tests included in the example">
+ <antcall target="run-internal">
+ <param name="include.wildcard" value="org/jboss/test/ws/**/*TestCase.class"/>
+ <param name="exclude.wildcard" value="no-wildcard-exclude-see-excludesfile"/>
+ <param name="haltonfailure" value="false"/>
+ </antcall>
+ </target>
+
+ <target name="run-internal" depends="tests-init">
+ <mkdir dir="${tests.output.dir}/test-reports"/>
+ <echo/>
+ <echo message="-----------------------------------------------"/>
+ <echo message="One or more JUnit tests will now be performed; "/>
+ <echo message="each test does the following: "/>
+ <echo message="- deploys a sample server application "/>
+ <echo message=" (containing one or more webservice endpoints)"/>
+ <echo message=" to the running JBoss instance"/>
+ <echo message="- invokes the webservice endpoint(s) acting as "/>
+ <echo message=" a client for that application"/>
+ <echo message="- undeploys the sample server application "/>
+ <echo/>
+ <echo message="Deployed archives dir: ${tests.output.dir}/test-libs"/>
+ <echo message="-----------------------------------------------"/>
+ <echo/>
+ <junit printsummary="yes" showoutput="yes" haltonfailure="${haltonfailure}">
+ <jvmarg value="-Djava.security.manager"/>
+ <jvmarg value="-ea"/>
+ <sysproperty key="jdk.home" value="${env.JAVA_HOME}"/>
+ <sysproperty key="log4j.output.dir" value="${tests.output.dir}"/>
+ <sysproperty key="java.endorsed.dirs" value="${endorsed.dirs}"/>
+ <sysproperty key="java.naming.provider.url" value="jnp://${jboss.bind.address}:1099"/>
+ <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.virtual.protocol"/>
+ <sysproperty key="java.security.policy" value="${tests.output.dir}/test-classes/tst.policy"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.wsf.common.logging.JDKLogManager"/>
+ <sysproperty key="jboss.home" value="${jboss.home}"/>
+ <sysproperty key="jboss.server.instance" value="${jboss.server.instance}"/>
+ <sysproperty key="jboss.bind.address" value="${jboss.bind.address}"/>
+ <sysproperty key="jbossws.integration.target" value="jboss510"/>
+ <sysproperty key="jmx.authentication.username" value="${jmx.authentication.username}"/>
+ <sysproperty key="jmx.authentication.password" value="${jmx.authentication.password}"/>
+ <sysproperty key="test.archive.directory" value="${tests.output.dir}/test-libs"/>
+ <sysproperty key="test.classes.directory" value="${tests.output.dir}/test-classes"/>
+ <sysproperty key="test.resources.directory" value="${tests.output.dir}/test-resources"/>
+ <classpath>
+ <path refid="tests.client.classpath"/>
+ <pathelement location="${tests.output.dir}/test-classes"/>
+ </classpath>
+ <formatter type="plain" usefile="true"/>
+ <formatter type="xml" usefile="true"/>
+ <batchtest todir="${tests.output.dir}/test-reports" fork="true">
+ <fileset dir="${tests.output.dir}/test-classes" includes="${include.wildcard}" excludes="${exclude.wildcard}"/>
+ </batchtest>
+ </junit>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Miscellaneous -->
+ <!-- ================================================================== -->
+
+ <target name="clean" depends="prepare" description="Cleans up generated files.">
+ <delete dir="${tests.output.dir}"/>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Macro -->
+ <!-- ================================================================== -->
+
+ <macrodef name="macro-compile-classes">
+ <attribute name="excludesfile"/>
+ <attribute name="srcdir"/>
+ <sequential>
+ <mkdir dir="${tests.output.dir}/test-classes"/>
+ <javac destdir="${tests.output.dir}/test-classes" debug="${javac.debug}" encoding="utf-8" verbose="${javac.verbose}" deprecation="${javac.deprecation}"
+ failonerror="${javac.fail.onerror}" excludesfile="${excludesfile}">
+ <src path="@{srcdir}"/>
+ <classpath refid="tests.javac.classpath"/>
+ </javac>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="macro-copy-resources">
+ <attribute name="srcdir"/>
+ <sequential>
+ <!-- copy etc -->
+ <copy todir="${tests.output.dir}/test-classes">
+ <fileset dir="@{srcdir}/etc">
+ <include name="jndi.properties"/>
+ <include name="tst.policy"/>
+ <include name="log4j.xml"/>
+ </fileset>
+ <filterset>
+ <filter token="jboss.bind.address" value="${jboss.bind.address}"/>
+ </filterset>
+ </copy>
+
+ <!-- copy handler definitions -->
+ <copy todir="${tests.output.dir}/test-classes">
+ <fileset dir="@{srcdir}/java">
+ <include name="**/*.xml"/>
+ </fileset>
+ </copy>
+
+ <!-- copy non binary files -->
+ <copy todir="${tests.output.dir}/test-resources">
+ <fileset dir="@{srcdir}/resources">
+ <include name="**/*.wsdl"/>
+ <include name="**/*.xml"/>
+ </fileset>
+ <filterset>
+ <filter token="java.home" value="${java.home}"/>
+ <filter token="tests.output.dir" value="${tests.output.dir}"/>
+ <filter token="wsdl-publish-location" value="${tests.output.dir}/wsdl-publish"/>
+ </filterset>
+ </copy>
+
+ <!-- Copy binary files -->
+ <copy todir="${tests.output.dir}/test-resources">
+ <fileset dir="@{srcdir}/resources">
+ <exclude name="**/*.wsdl"/>
+ <exclude name="**/*.xml"/>
+ </fileset>
+ </copy>
+ </sequential>
+ </macrodef>
+
+</project>
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/build.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/jndi.properties
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/jndi.properties (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/jndi.properties 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,3 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
+java.naming.provider.url=jnp://@jboss.bind.address@:1099
\ No newline at end of file
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/log4j.xml
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/log4j.xml (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/log4j.xml 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!--
+| For more configuration infromation and examples see the Jakarta Log4j
+| owebsite: http://jakarta.apache.org/log4j
+-->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A time/date based rolling appender -->
+ <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
+ <param name="File" value="${log4j.output.dir}/test.log"/>
+ <param name="Append" value="true"/>
+
+ <!-- Rollover at midnight each day -->
+ <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d %-5p [%c:%L] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <param name="Threshold" value="INFO"/>
+ <param name="Target" value="System.out"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <category name="org.jboss.ws">
+ <priority value="DEBUG"/>
+ </category>
+
+ <category name="org.jboss.test.ws">
+ <priority value="TRACE"/>
+ </category>
+
+ <category name="org.apache.cxf">
+ <priority value="TRACE"/>
+ </category>
+
+ <!-- Apache security is verbose -->
+ <category name="org.apache.xml.security">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <!--appender-ref ref="CONSOLE"/-->
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/log4j.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/tst.policy
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/tst.policy (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/etc/tst.policy 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,4 @@
+grant {
+ permission java.security.AllPermission;
+};
+
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EJB3Bean.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EJB3Bean.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EJB3Bean.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,50 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.eardeployment;
+
+import javax.ejb.Stateless;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.logging.Logger;
+import org.jboss.wsf.spi.annotation.WebContext;
+
+// Test that the wsdl can be read from the nested deployment
+ at WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace="http://eardeployment.jaxws/", wsdlLocation = "META-INF/wsdl/Endpoint.wsdl")
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+ at WebContext(contextRoot = "/earejb3")
+ at Stateless
+public class EJB3Bean
+{
+ private static Logger log = Logger.getLogger(EJB3Bean.class);
+
+ @WebMethod
+ @WebResult(name = "return")
+ public String echo(@WebParam(name = "arg0") String input)
+ {
+ log.info("echo: " + input);
+ return input;
+ }
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EJB3Bean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,99 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.eardeployment;
+
+import java.net.URL;
+
+import javax.wsdl.Definition;
+import javax.wsdl.factory.WSDLFactory;
+import javax.wsdl.xml.WSDLReader;
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test ear deployment
+ *
+ * [JBWS-1616] Verify correct bahaviour of @WebService.wsdlLocation
+ *
+ * @author Thomas.Diesler at jboss.org
+ * @author <a href="mailto:richard.opalka at jboss.org">Richard Opalka</a>
+ */
+public class EarTestCase extends JBossWSTest
+{
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(EarTestCase.class, "jaxws-samples-eardeployment.ear");
+ }
+
+ public void testEJB3Endpoint() throws Exception
+ {
+ String soapAddress = "http://" + getServerHost() + ":8080/earejb3/EJB3Bean";
+ QName serviceName = new QName("http://eardeployment.jaxws/", "EndpointService");
+ Service service = Service.create(new URL(soapAddress + "?wsdl"), serviceName);
+ Endpoint port = service.getPort(Endpoint.class);
+
+ Definition wsdl = getWSDLDefinition(soapAddress + "?wsdl");
+ String nsURI = wsdl.getNamespace("jbws1616");
+ assertEquals("http://jira.jboss.org/jira/browse/JBWS-1616", nsURI);
+
+ BindingProvider bp = (BindingProvider)port;
+ bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, soapAddress);
+
+ String helloWorld = "Hello world!";
+ String retObj = port.echo(helloWorld);
+ assertEquals(helloWorld, retObj);
+ }
+
+ public void testJSEEndpoint() throws Exception
+ {
+ String soapAddress = "http://" + getServerHost() + ":8080/earjse/JSEBean";
+ QName serviceName = new QName("http://eardeployment.jaxws/", "EndpointService");
+ Service service = Service.create(new URL(soapAddress + "?wsdl"), serviceName);
+ Endpoint port = service.getPort(Endpoint.class);
+
+ Definition wsdl = getWSDLDefinition(soapAddress + "?wsdl");
+ String nsURI = wsdl.getNamespace("jbws1616");
+ assertEquals("http://jira.jboss.org/jira/browse/JBWS-1616", nsURI);
+
+ BindingProvider bp = (BindingProvider)port;
+ bp.getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY, soapAddress);
+
+ String helloWorld = "Hello world!";
+ String retObj = port.echo(helloWorld);
+ assertEquals(helloWorld, retObj);
+ }
+
+ private Definition getWSDLDefinition(String wsdlLocation) throws Exception
+ {
+ WSDLFactory wsdlFactory = WSDLFactory.newInstance();
+ WSDLReader wsdlReader = wsdlFactory.newWSDLReader();
+
+ Definition definition = wsdlReader.readWSDL(null, wsdlLocation);
+ return definition;
+ }
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/EarTestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/Endpoint.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/Endpoint.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/Endpoint.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.eardeployment;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+/**
+ * This class was generated by the JAXWS SI.
+ * JAX-WS RI 2.1-11/15/2006 04:41 PM(vivek)-EA3
+ * Generated source version: 2.1
+ */
+ at WebService(name = "Endpoint", targetNamespace = "http://eardeployment.jaxws/")
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface Endpoint {
+
+
+ /**
+ *
+ * @param arg0
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(partName = "return")
+ public String echo(
+ @WebParam(name = "arg0", partName = "arg0")
+ String arg0);
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/Endpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/JSEBean.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/JSEBean.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/JSEBean.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.eardeployment;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+import org.jboss.logging.Logger;
+
+//Test that the wsdl can be read from the nested deployment
+ at WebService(name="Endpoint", serviceName="EndpointService", targetNamespace="http://eardeployment.jaxws/", wsdlLocation="WEB-INF/wsdl/Endpoint.wsdl")
+ at SOAPBinding(style = SOAPBinding.Style.RPC)
+public class JSEBean
+{
+ private static Logger log = Logger.getLogger(JSEBean.class);
+
+ @WebMethod
+ @WebResult(name="return")
+ public String echo(@WebParam(name="arg0") String input)
+ {
+ log.info("echo: " + input);
+ return input;
+ }
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/java/org/jboss/test/ws/jaxws/samples/eardeployment/JSEBean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/META-INF/jboss-app.xml
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/META-INF/jboss-app.xml (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/META-INF/jboss-app.xml 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,12 @@
+<?xml version='1.0' encoding='UTF-8' ?>
+
+<!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD Java EE Application 5.0///EN" "http://www.jboss.org/j2ee/dtd/jboss-app_5_0.dtd">
+
+<jboss-app>
+ <module>
+ <web>
+ <web-uri>jaxws-samples-eardeployment.war</web-uri>
+ <context-root>/earjse</context-root>
+ </web>
+ </module>
+</jboss-app>
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/META-INF/jboss-app.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/jboss-web.xml
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/jboss-web.xml (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/jboss-web.xml 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<!-- This is only needed for JBoss-5.0 deployments -->
+
+<jboss-web>
+ <context-root>earjse</context-root>
+</jboss-web>
\ No newline at end of file
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/jboss-web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/web.xml
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/web.xml (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/web.xml 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>TestService</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.samples.eardeployment.JSEBean</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>TestService</servlet-name>
+ <url-pattern>/JSEBean/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/Endpoint.wsdl
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/Endpoint.wsdl (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/Endpoint.wsdl 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,46 @@
+<!--
+ This wsdl is used for client artifact generation
+
+ wsimport -keep -verbose -d ../../../java ./META-INF/wsdl/Endpoint.wsdl
+-->
+<definitions name="EndpointService"
+ targetNamespace="http://eardeployment.jaxws/"
+ xmlns="http://schemas.xmlsoap.org/wsdl/"
+ xmlns:jbws1616="http://jira.jboss.org/jira/browse/JBWS-1616"
+ xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://eardeployment.jaxws/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+
+ <!-- Test a schema import -->
+ <types>
+ <xsd:import namespace="http://org.jboss.ws/jaxrpc/types" schemaLocation="TestService.xsd"/>
+ </types>
+
+ <message name="Endpoint_echoResponse">
+ <part name="return" type="xsd:string"/>
+ </message>
+ <message name="Endpoint_echo">
+ <part name="arg0" type="xsd:string"/>
+ </message>
+ <portType name="Endpoint">
+ <operation name="echo" parameterOrder="arg0">
+ <input message="tns:Endpoint_echo"/>
+ <output message="tns:Endpoint_echoResponse"/>
+ </operation>
+ </portType>
+ <binding name="EndpointBinding" type="tns:Endpoint">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="echo">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body namespace="http://eardeployment.jaxws/" use="literal"/>
+ </input>
+ <output>
+ <soap:body namespace="http://eardeployment.jaxws/" use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="EndpointService">
+ <port binding="tns:EndpointBinding" name="EndpointPort">
+ <soap:address location="http://REPLACE_ON_DEPLOY"/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/Endpoint.wsdl
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/TestService.xsd
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/TestService.xsd (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/TestService.xsd 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<schema targetNamespace="http://org.jboss.ws/jaxrpc/types" xmlns:tns="http://org.jboss.ws/jaxrpc/types" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns="http://www.w3.org/2001/XMLSchema">
+ <complexType name="SimpleUserType">
+ <sequence>
+ <element name="a" type="int"/>
+ <element name="b" type="int"/>
+ </sequence>
+ </complexType>
+</schema>
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/WEB-INF/wsdl/TestService.xsd
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/test-excludes-cxf.txt
===================================================================
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/test-excludes-cxf.txt
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/test-excludes-native.txt
===================================================================
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/eardeployment/resources/test-excludes-native.txt
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/build.xml
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/build.xml (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/build.xml 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,337 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+To run the example, set JBOSS_HOME and run ant (with no parameters)
+-->
+
+<project default="run">
+
+ <description>JBossWS EAP samples - exception</description>
+
+ <target name="prepare">
+ <property environment="ENV"/>
+ <property name="jboss.home" value="${ENV.JBOSS_HOME}" />
+ <property name="jboss.server.instance" value="default"/>
+ <property name="jboss.lib" value="${jboss.home}/lib"/>
+ <property name="jboss.client" value="${jboss.home}/client"/>
+ <property name="jboss.server" value="${jboss.home}/server/${jboss.server.instance}"/>
+ <property name="jboss.server.lib" value="${jboss.home}/common/lib"/>
+ <property name="jboss.server.deploy" value="${jboss.server}/deploy"/>
+ <property name="jboss.server.deployers" value="${jboss.server}/deployers"/>
+ <property name="endorsed.dirs" value="${jboss.home}/lib/endorsed"/>
+ <property name="tests.output.dir" value="./tests-output"/>
+ <property name="tests.dir" value="."/>
+ <property name="jboss.bind.address" value="localhost"/>
+ </target>
+
+ <target name="init" depends="prepare">
+ <condition property="valid.jboss.home" value="true">
+ <not>
+ <contains string="${ENV.JBOSS_HOME}" substring="{ENV.JBOSS_HOME}"/>
+ </not>
+ </condition>
+ <fail message="Please make sure the JBOSS_HOME environment property is correctly set." unless="valid.jboss.home"/>
+ <!-- Check the jbossws stack installed on JBoss AS -->
+ <condition property="native-stack" value="true">
+ <available file="${jboss.client}/jbossws-native-client.jar"/>
+ </condition>
+ <condition property="cxf-stack" value="true">
+ <available file="${jboss.client}/jbossws-cxf-client.jar"/>
+ </condition>
+ <condition property="excludesfile" value="./resources/test-excludes-native.txt">
+ <isset property="native-stack"/>
+ </condition>
+ <condition property="excludesfile" value="./resources/test-excludes-cxf.txt">
+ <isset property="cxf-stack"/>
+ </condition>
+ </target>
+
+ <target name="tests-init" depends="init,native-stack-classpath,cxf-stack-classpath,tests-classpath">
+ <property name="jbossws.test.log" value="${tests.output.dir}"/>
+ </target>
+
+ <target name="native-stack-classpath" if="native-stack">
+ <path id="ws.stack.classpath">
+ <pathelement location="${jboss.client}/jbossws-native-client.jar"/>
+ </path>
+ </target>
+
+ <target name="cxf-stack-classpath" if="cxf-stack">
+ <path id="ws.stack.classpath">
+ <pathelement location="${jboss.client}/jbossws-cxf-client.jar"/>
+ </path>
+ </target>
+
+ <target name="tests-classpath" depends="tests-classpath-jboss51">
+ <!-- Compile classpath -->
+ <path id="tests.javac.classpath">
+ <path refid="ws.stack.classpath"/>
+ <path refid="integration.target.javac.classpath"/>
+ </path>
+ <!-- Client run classpath -->
+ <path id="tests.client.classpath">
+ <path refid="ws.stack.classpath"/>
+ <path refid="integration.target.client.classpath"/>
+ </path>
+ </target>
+
+ <!-- This adds to the classpath the AS libraries that are most frequently used/required in WS apps -->
+ <target name="tests-classpath-jboss51" depends="tests-prepare">
+ <path id="integration.target.javac.classpath">
+ <pathelement location="${jboss.client}/activation.jar"/>
+ <pathelement location="${jboss.client}/jaxws-tools.jar"/>
+ <pathelement location="${jboss.client}/jboss-annotations-ejb3.jar"/>
+ <pathelement location="${jboss.client}/jboss-appclient.jar"/>
+ <pathelement location="${jboss.client}/jboss-common-core.jar"/>
+ <pathelement location="${jboss.client}/jboss-ejb3-client.jar"/>
+ <pathelement location="${jboss.client}/jboss-ejb3-ext-api.jar"/>
+ <pathelement location="${jboss.client}/jboss-logging-spi.jar"/>
+ <pathelement location="${jboss.client}/jboss-metadata.jar"/>
+ <pathelement location="${jboss.client}/jboss-remoting.jar"/>
+ <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
+ <pathelement location="${jboss.client}/mail.jar"/>
+ <pathelement location="${jboss.client}/stax-api.jar"/>
+ <pathelement location="${jboss.client}/wsdl4j.jar"/>
+ <pathelement location="${jboss.server.lib}/jboss-javaee.jar"/>
+ <pathelement location="${jboss.server.lib}/jbosssx.jar"/>
+ <pathelement location="${jboss.server.lib}/servlet-api.jar"/>
+ </path>
+ <path id="integration.target.client.classpath">
+ <pathelement location="${jboss.client}/activation.jar"/>
+ <pathelement location="${jboss.client}/javassist.jar"/>
+ <pathelement location="${jboss.client}/jaxb-api.jar"/>
+ <pathelement location="${jboss.client}/jaxb-impl.jar"/>
+ <pathelement location="${jboss.client}/jaxb-xjc.jar"/>
+ <pathelement location="${jboss.client}/jboss-appclient.jar"/>
+ <pathelement location="${jboss.client}/jboss-ejb3-ext-api.jar"/>
+ <pathelement location="${jboss.client}/jbossws-jboss50.jar"/>
+ <pathelement location="${jboss.client}/jboss-metadata.jar"/>
+ <pathelement location="${jboss.client}/jboss-remoting.jar"/>
+ <pathelement location="${jboss.client}/jboss-xml-binding.jar"/>
+ <pathelement location="${jboss.client}/jbossall-client.jar"/>
+ <pathelement location="${jboss.client}/jaxws-tools.jar"/>
+ <pathelement location="${jboss.client}/log4j.jar"/>
+ <pathelement location="${jboss.client}/mail.jar"/>
+ <pathelement location="${jboss.client}/stax-api.jar"/>
+ <pathelement location="${jboss.client}/trove.jar"/>
+ <pathelement location="${jboss.client}/jboss-javaee.jar"/>
+ <pathelement location="${jboss.lib}/jboss-classloader.jar"/>
+ <pathelement location="${jboss.lib}/jboss-classloading.jar"/>
+ <pathelement location="${jboss.lib}/jboss-classloading-vfs.jar"/>
+ <pathelement location="${jboss.lib}/jboss-dependency.jar"/>
+ <pathelement location="${jboss.lib}/jboss-vfs.jar"/>
+ <pathelement location="${jboss.lib}/jboss-kernel.jar"/>
+ <pathelement location="${jboss.lib}/jboss-reflect.jar"/>
+ <pathelement location="${jboss.server.lib}/jboss.jar"/>
+ <pathelement location="${jboss.server.lib}/jbosssx.jar"/>
+ <pathelement location="${jboss.server.lib}/jnpserver.jar"/>
+ <pathelement location="${jboss.server.lib}/jboss-ejb3-core.jar"/>
+ <pathelement location="${tools.jar}"/>
+ <pathelement location="${jboss.server.deploy}/jbossweb.sar/jbossweb.jar"/>
+ </path>
+ </target>
+
+ <target name="tests-prepare" depends="prepare">
+ <!-- Verify availabililty of tools.jar -->
+ <condition property="tools.jar" value="${java.home}/lib/tools.jar">
+ <available file="${java.home}/lib/tools.jar"/>
+ </condition>
+ <condition property="tools.jar" value="${java.home}/../lib/tools.jar">
+ <available file="${java.home}/../lib/tools.jar"/>
+ </condition>
+ <!-- [JBWS-2113] tools.jar not available on Mac OS X -->
+ <condition property="tools.jar" value="${java.home}/../Classes/classes.jar">
+ <available file="${java.home}/../Classes/classes.jar"/>
+ </condition>
+ <fail message="Not available: ${java.home}/lib/tools.jar, ${java.home}/../lib/tools.jar" unless="tools.jar"/>
+ <mkdir dir="${tests.output.dir}"/>
+ <delete file="${tests.output.dir}/test.log" failonerror="false"/>
+ <echo/>
+ <echo message="-----------------------------------------------"/>
+ <echo message="jboss.home = ${jboss.home}"/>
+ <echo message="excludesfile = ${excludesfile}"/>
+ <echo message="java.home = ${java.home}"/>
+ <echo message="jboss.bind = ${jboss.bind.address}"/>
+ <echo message="-----------------------------------------------"/>
+ <tstamp>
+ <format property="build.id" pattern="yyyyMMddHHmm"/>
+ </tstamp>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Compile -->
+ <!-- ================================================================== -->
+
+ <target name="compile" depends="tests-init" description="Compile sources">
+ <macro-compile-classes srcdir="${tests.dir}/java" excludesfile="${excludesfile}"/>
+ </target>
+
+
+
+ <!-- ================================================================== -->
+ <!-- Building -->
+ <!-- ================================================================== -->
+
+ <!-- Copy resources -->
+ <target name="copy-resources" depends="tests-init">
+ <macro-copy-resources srcdir="${tests.dir}"/>
+ </target>
+
+ <target name="jars" depends="compile,copy-resources" description="Generates the deployment packages for this example">
+ <mkdir dir="${tests.output.dir}/test-libs"/>
+ <!-- This actually builds the jaxws-samples-exception deployment package -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-samples-exception.war" webxml="${tests.output.dir}/test-resources/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws/**"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/UserException.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml"/>
+ </classes>
+ </war>
+ <jar destfile="${tests.output.dir}/test-libs/jaxws-samples-exception.jar">
+ <fileset dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws/**"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointEJB3Impl.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/UserException.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml"/>
+ </fileset>
+ </jar>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Testing -->
+ <!-- ================================================================== -->
+
+ <!-- Run all unit tests and generate a report -->
+ <target name="run" depends="jars" description="Run all tests included in the example">
+ <antcall target="run-internal">
+ <param name="include.wildcard" value="org/jboss/test/ws/**/*TestCase.class"/>
+ <param name="exclude.wildcard" value="no-wildcard-exclude-see-excludesfile"/>
+ <param name="haltonfailure" value="false"/>
+ </antcall>
+ </target>
+
+ <target name="run-internal" depends="tests-init">
+ <mkdir dir="${tests.output.dir}/test-reports"/>
+ <echo/>
+ <echo message="-----------------------------------------------"/>
+ <echo message="One or more JUnit tests will now be performed; "/>
+ <echo message="each test does the following: "/>
+ <echo message="- deploys a sample server application "/>
+ <echo message=" (containing one or more webservice endpoints)"/>
+ <echo message=" to the running JBoss instance"/>
+ <echo message="- invokes the webservice endpoint(s) acting as "/>
+ <echo message=" a client for that application"/>
+ <echo message="- undeploys the sample server application "/>
+ <echo/>
+ <echo message="Deployed archives dir: ${tests.output.dir}/test-libs"/>
+ <echo message="-----------------------------------------------"/>
+ <echo/>
+ <junit printsummary="yes" showoutput="yes" haltonfailure="${haltonfailure}">
+ <jvmarg value="-Djava.security.manager"/>
+ <jvmarg value="-ea"/>
+ <sysproperty key="jdk.home" value="${env.JAVA_HOME}"/>
+ <sysproperty key="log4j.output.dir" value="${tests.output.dir}"/>
+ <sysproperty key="java.endorsed.dirs" value="${endorsed.dirs}"/>
+ <sysproperty key="java.naming.provider.url" value="jnp://${jboss.bind.address}:1099"/>
+ <sysproperty key="java.protocol.handler.pkgs" value="org.jboss.virtual.protocol"/>
+ <sysproperty key="java.security.policy" value="${tests.output.dir}/test-classes/tst.policy"/>
+ <sysproperty key="java.util.logging.manager" value="org.jboss.wsf.common.logging.JDKLogManager"/>
+ <sysproperty key="jboss.home" value="${jboss.home}"/>
+ <sysproperty key="jboss.server.instance" value="${jboss.server.instance}"/>
+ <sysproperty key="jboss.bind.address" value="${jboss.bind.address}"/>
+ <sysproperty key="jbossws.integration.target" value="jboss510"/>
+ <sysproperty key="jmx.authentication.username" value="${jmx.authentication.username}"/>
+ <sysproperty key="jmx.authentication.password" value="${jmx.authentication.password}"/>
+ <sysproperty key="test.archive.directory" value="${tests.output.dir}/test-libs"/>
+ <sysproperty key="test.classes.directory" value="${tests.output.dir}/test-classes"/>
+ <sysproperty key="test.resources.directory" value="${tests.output.dir}/test-resources"/>
+ <classpath>
+ <path refid="tests.client.classpath"/>
+ <pathelement location="${tests.output.dir}/test-classes"/>
+ </classpath>
+ <formatter type="plain" usefile="true"/>
+ <formatter type="xml" usefile="true"/>
+ <batchtest todir="${tests.output.dir}/test-reports" fork="true">
+ <fileset dir="${tests.output.dir}/test-classes" includes="${include.wildcard}" excludes="${exclude.wildcard}"/>
+ </batchtest>
+ </junit>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Miscellaneous -->
+ <!-- ================================================================== -->
+
+ <target name="clean" depends="prepare" description="Cleans up generated files.">
+ <delete dir="${tests.output.dir}"/>
+ </target>
+
+ <!-- ================================================================== -->
+ <!-- Macro -->
+ <!-- ================================================================== -->
+
+ <macrodef name="macro-compile-classes">
+ <attribute name="excludesfile"/>
+ <attribute name="srcdir"/>
+ <sequential>
+ <mkdir dir="${tests.output.dir}/test-classes"/>
+ <javac destdir="${tests.output.dir}/test-classes" debug="${javac.debug}" encoding="utf-8" verbose="${javac.verbose}" deprecation="${javac.deprecation}"
+ failonerror="${javac.fail.onerror}" excludesfile="${excludesfile}">
+ <src path="@{srcdir}"/>
+ <classpath refid="tests.javac.classpath"/>
+ </javac>
+ </sequential>
+ </macrodef>
+
+ <macrodef name="macro-copy-resources">
+ <attribute name="srcdir"/>
+ <sequential>
+ <!-- copy etc -->
+ <copy todir="${tests.output.dir}/test-classes">
+ <fileset dir="@{srcdir}/etc">
+ <include name="jndi.properties"/>
+ <include name="tst.policy"/>
+ <include name="log4j.xml"/>
+ </fileset>
+ <filterset>
+ <filter token="jboss.bind.address" value="${jboss.bind.address}"/>
+ </filterset>
+ </copy>
+
+ <!-- copy handler definitions -->
+ <copy todir="${tests.output.dir}/test-classes">
+ <fileset dir="@{srcdir}/java">
+ <include name="**/*.xml"/>
+ </fileset>
+ </copy>
+
+ <!-- copy non binary files -->
+ <copy todir="${tests.output.dir}/test-resources">
+ <fileset dir="@{srcdir}/resources">
+ <include name="**/*.wsdl"/>
+ <include name="**/*.xml"/>
+ </fileset>
+ <filterset>
+ <filter token="java.home" value="${java.home}"/>
+ <filter token="tests.output.dir" value="${tests.output.dir}"/>
+ <filter token="wsdl-publish-location" value="${tests.output.dir}/wsdl-publish"/>
+ </filterset>
+ </copy>
+
+ <!-- Copy binary files -->
+ <copy todir="${tests.output.dir}/test-resources">
+ <fileset dir="@{srcdir}/resources">
+ <exclude name="**/*.wsdl"/>
+ <exclude name="**/*.xml"/>
+ </fileset>
+ </copy>
+ </sequential>
+ </macrodef>
+
+</project>
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/build.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/jndi.properties
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/jndi.properties (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/jndi.properties 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,3 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
+java.naming.provider.url=jnp://@jboss.bind.address@:1099
\ No newline at end of file
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/log4j.xml
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/log4j.xml (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/log4j.xml 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,78 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<!-- ===================================================================== -->
+<!-- -->
+<!-- Log4j Configuration -->
+<!-- -->
+<!-- ===================================================================== -->
+
+<!--
+| For more configuration infromation and examples see the Jakarta Log4j
+| owebsite: http://jakarta.apache.org/log4j
+-->
+<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
+
+ <!-- ================================= -->
+ <!-- Preserve messages in a local file -->
+ <!-- ================================= -->
+
+ <!-- A time/date based rolling appender -->
+ <appender name="FILE" class="org.jboss.logging.appender.DailyRollingFileAppender">
+ <param name="File" value="${log4j.output.dir}/test.log"/>
+ <param name="Append" value="true"/>
+
+ <!-- Rollover at midnight each day -->
+ <param name="DatePattern" value="'.'yyyy-MM-dd"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d %-5p [%c:%L] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ============================== -->
+ <!-- Append messages to the console -->
+ <!-- ============================== -->
+
+ <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
+ <param name="Threshold" value="INFO"/>
+ <param name="Target" value="System.out"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d{ABSOLUTE} %-5p [%c{1}] %m%n"/>
+ </layout>
+ </appender>
+
+ <!-- ================ -->
+ <!-- Limit categories -->
+ <!-- ================ -->
+
+ <category name="org.jboss.ws">
+ <priority value="DEBUG"/>
+ </category>
+
+ <category name="org.jboss.test.ws">
+ <priority value="TRACE"/>
+ </category>
+
+ <category name="org.apache.cxf">
+ <priority value="TRACE"/>
+ </category>
+
+ <!-- Apache security is verbose -->
+ <category name="org.apache.xml.security">
+ <priority value="INFO"/>
+ </category>
+
+ <!-- ======================= -->
+ <!-- Setup the Root category -->
+ <!-- ======================= -->
+
+ <root>
+ <!--appender-ref ref="CONSOLE"/-->
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/log4j.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/tst.policy
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/tst.policy (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/etc/tst.policy 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,4 @@
+grant {
+ permission java.security.AllPermission;
+};
+
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEJB3TestCase.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEJB3TestCase.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEJB3TestCase.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.jaxws.samples.exception.client.ExceptionEndpoint;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test JAX-WS exception handling with EJB3 endpoints
+ *
+ * @author <a href="jason.greene at jboss.com">Jason T. Greene</a>
+ * @author alessio.soldano at jboss.com
+ */
+public class ExceptionEJB3TestCase extends ExceptionTestCase
+{
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(ExceptionEJB3TestCase.class, "jaxws-samples-exception.jar");
+ }
+
+ @Override
+ protected ExceptionEndpoint getProxy() throws Exception
+ {
+ QName serviceName = new QName(targetNS, "ExceptionEndpointEJB3ImplService");
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-samples-exception/ExceptionEndpointEJB3Impl?wsdl");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(ExceptionEndpoint.class);
+ }
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEJB3TestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,125 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.soap.SOAPFaultException;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.jaxws.samples.exception.client.ExceptionEndpoint;
+import org.jboss.test.ws.jaxws.samples.exception.client.UserException;
+import org.jboss.test.ws.jaxws.samples.exception.client.UserException_Exception;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+import org.w3c.dom.Element;
+
+/**
+ * Test JAX-WS exception handling
+ *
+ * @author <a href="jason.greene at jboss.com">Jason T. Greene</a>
+ */
+public class ExceptionTestCase extends JBossWSTest
+{
+ protected String targetNS = "http://server.exception.samples.jaxws.ws.test.jboss.org/";
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(ExceptionTestCase.class, "jaxws-samples-exception.war");
+ }
+
+ protected ExceptionEndpoint getProxy() throws Exception
+ {
+ QName serviceName = new QName(targetNS, "ExceptionEndpointImplService");
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-samples-exception/ExceptionEndpointService?wsdl");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ return service.getPort(ExceptionEndpoint.class);
+ }
+
+ /*
+ * 10.2.2.3
+ *
+ * faultcode (Subcode in SOAP 1.2, Code set to env:Receiver)
+ * 1. SOAPFaultException.getFault().getFaultCodeAsQName()
+ * 2. env:Server (Subcode omitted for SOAP 1.2).
+ * faultstring (Reason/Text)
+ * 1. SOAPFaultException.getFault().getFaultString()
+ * 2. Exception.getMessage()
+ * 3. Exception.toString()
+ * faultactor (Role in SOAP 1.2)
+ * 1. SOAPFaultException.getFault().getFaultActor()
+ * 2. Empty
+ * detail (Detail in SOAP 1.2)
+ * 1. Serialized service specific exception (see WrapperException.getFaultInfo() in section 2.5)
+ * 2. SOAPFaultException.getFault().getDetail()
+ */
+ public void testRuntimeException() throws Exception
+ {
+ try
+ {
+ getProxy().throwRuntimeException();
+ fail("Expected SOAPFaultException");
+ }
+ catch (SOAPFaultException e)
+ {
+ String faultString = e.getFault().getFaultString();
+ assertTrue(faultString.indexOf("OH NO, A RUNTIME EXCEPTION OCCURED.") >= 0);
+ }
+ }
+
+ public void testSoapFaultException() throws Exception
+ {
+ try
+ {
+ getProxy().throwSoapFaultException();
+ fail("Expected SOAPFaultException");
+ }
+ catch (SOAPFaultException e)
+ {
+ assertEquals("THIS IS A FAULT STRING!", e.getFault().getFaultString());
+ assertEquals("mr.actor", e.getFault().getFaultActor());
+ assertEquals("FooCode", e.getFault().getFaultCodeAsName().getLocalName());
+ assertEquals("http://foo", e.getFault().getFaultCodeAsName().getURI());
+ assertEquals("test", ((Element)e.getFault().getDetail().getChildElements().next()).getLocalName());
+ }
+ }
+
+ public void testApplicationException() throws Exception
+ {
+ try
+ {
+ getProxy().throwApplicationException();
+ fail("Expected UserException");
+ }
+ catch (UserException_Exception e)
+ {
+ UserException ue = e.getFaultInfo();
+ assertEquals("SOME VALIDATION ERROR", ue.getMessage());
+ assertEquals("validation", ue.getErrorCategory());
+ assertEquals(123, ue.getErrorCode());
+ }
+ }
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ExceptionEndpoint.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ExceptionEndpoint.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ExceptionEndpoint.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,61 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.client;
+
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+ at WebService(name = "ExceptionEndpoint", targetNamespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/")
+public interface ExceptionEndpoint {
+
+
+ /**
+ *
+ */
+ @WebMethod
+ @RequestWrapper(localName = "throwRuntimeException", targetNamespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.samples.exception.client.ThrowRuntimeException")
+ @ResponseWrapper(localName = "throwRuntimeExceptionResponse", targetNamespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.samples.exception.client.ThrowRuntimeExceptionResponse")
+ public void throwRuntimeException();
+
+ /**
+ *
+ */
+ @WebMethod
+ @RequestWrapper(localName = "throwSoapFaultException", targetNamespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.samples.exception.client.ThrowSoapFaultException")
+ @ResponseWrapper(localName = "throwSoapFaultExceptionResponse", targetNamespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.samples.exception.client.ThrowSoapFaultExceptionResponse")
+ public void throwSoapFaultException();
+
+ /**
+ *
+ * @throws UserException_Exception
+ */
+ @WebMethod
+ @RequestWrapper(localName = "throwApplicationException", targetNamespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.samples.exception.client.ThrowApplicationException")
+ @ResponseWrapper(localName = "throwApplicationExceptionResponse", targetNamespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", className = "org.jboss.test.ws.jaxws.samples.exception.client.ThrowApplicationExceptionResponse")
+ public void throwApplicationException()
+ throws UserException_Exception
+ ;
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ExceptionEndpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationException.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationException.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationException.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for throwApplicationException complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="throwApplicationException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwApplicationException")
+public class ThrowApplicationException {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationExceptionResponse.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationExceptionResponse.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationExceptionResponse.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for throwApplicationExceptionResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="throwApplicationExceptionResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwApplicationExceptionResponse")
+public class ThrowApplicationExceptionResponse {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationExceptionResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeException.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeException.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeException.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for throwRuntimeException complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="throwRuntimeException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwRuntimeException")
+public class ThrowRuntimeException {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeExceptionResponse.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeExceptionResponse.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeExceptionResponse.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for throwRuntimeExceptionResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="throwRuntimeExceptionResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwRuntimeExceptionResponse")
+public class ThrowRuntimeExceptionResponse {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeExceptionResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultException.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultException.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultException.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for throwSoapFaultException complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="throwSoapFaultException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwSoapFaultException")
+public class ThrowSoapFaultException {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultExceptionResponse.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultExceptionResponse.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultExceptionResponse.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,52 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for throwSoapFaultExceptionResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="throwSoapFaultExceptionResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwSoapFaultExceptionResponse")
+public class ThrowSoapFaultExceptionResponse {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultExceptionResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,126 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.client;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for UserException complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="UserException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="errorCategory" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "UserException", propOrder = {
+ "errorCategory",
+ "errorCode",
+ "message"
+})
+public class UserException {
+
+ protected String errorCategory;
+ protected int errorCode;
+ protected String message;
+
+ /**
+ * Gets the value of the errorCategory property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getErrorCategory() {
+ return errorCategory;
+ }
+
+ /**
+ * Sets the value of the errorCategory property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setErrorCategory(String value) {
+ this.errorCategory = value;
+ }
+
+ /**
+ * Gets the value of the errorCode property.
+ *
+ */
+ public int getErrorCode() {
+ return errorCode;
+ }
+
+ /**
+ * Sets the value of the errorCode property.
+ *
+ */
+ public void setErrorCode(int value) {
+ this.errorCode = value;
+ }
+
+ /**
+ * Gets the value of the message property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getMessage() {
+ return message;
+ }
+
+ /**
+ * Sets the value of the message property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setMessage(String value) {
+ this.message = value;
+ }
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException_Exception.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException_Exception.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException_Exception.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,68 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.client;
+
+import javax.xml.ws.WebFault;
+
+
+ at WebFault(name = "UserException", targetNamespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/")
+public class UserException_Exception
+ extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private UserException faultInfo;
+
+ /**
+ *
+ * @param faultInfo
+ * @param message
+ */
+ public UserException_Exception(String message, UserException faultInfo) {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param faultInfo
+ * @param message
+ * @param cause
+ */
+ public UserException_Exception(String message, UserException faultInfo, Throwable cause) {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.samples.exception.client.UserException
+ */
+ public UserException getFaultInfo() {
+ return faultInfo;
+ }
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException_Exception.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/package-info.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/package-info.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/package-info.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,23 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+ at javax.xml.bind.annotation.XmlSchema(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/")
+package org.jboss.test.ws.jaxws.samples.exception.client;
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/client/package-info.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,58 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPFactory;
+import javax.xml.soap.SOAPFault;
+import javax.xml.ws.soap.SOAPFaultException;
+
+public class EndpointImpl
+{
+ public void throwRuntimeException()
+ {
+ throw new RuntimeException("oh no, a runtime exception occured.");
+ }
+
+ public void throwSoapFaultException()
+ {
+ // This should be thrown as-is
+ try
+ {
+ SOAPFactory factory = SOAPFactory.newInstance();
+ SOAPFault fault = factory.createFault("this is a fault string!", new QName("http://foo", "FooCode"));
+ fault.setFaultActor("mr.actor");
+ fault.addDetail().addChildElement("test");
+ throw new SOAPFaultException(fault);
+ }
+ catch (SOAPException s)
+ {
+ throw new RuntimeException(s);
+ }
+ }
+
+ public void throwApplicationException() throws UserException
+ {
+ throw new UserException("validation", 123, "Some validation error");
+ }
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/EndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server;
+
+import javax.jws.WebService;
+
+
+ at WebService
+public interface ExceptionEndpoint
+{
+ public void throwRuntimeException();
+
+ public void throwSoapFaultException();
+
+ public void throwApplicationException() throws UserException;
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointEJB3Impl.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointEJB3Impl.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointEJB3Impl.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,34 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server;
+
+import javax.ejb.Stateless;
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+
+ at Stateless
+ at WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpoint")
+ at HandlerChain(file = "jaxws-handlers-server.xml")
+public class ExceptionEndpointEJB3Impl extends EndpointImpl implements ExceptionEndpoint
+{
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointEJB3Impl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+
+ at WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpoint")
+ at HandlerChain(file = "jaxws-handlers-server.xml")
+public class ExceptionEndpointImpl extends EndpointImpl implements ExceptionEndpoint
+{
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server;
+
+import java.util.Iterator;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPBodyElement;
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.wsf.common.handler.GenericSOAPHandler;
+
+/**
+ * A simple server side handler applying uppercase function to the error message strings.
+ *
+ * @author alessio.soldano at jboss.org
+ * @since 12-Feb-2008
+ */
+public class ServerHandler extends GenericSOAPHandler
+{
+ @SuppressWarnings("unchecked")
+ public boolean handleFault(MessageContext msgContext)
+ {
+ try
+ {
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+ SOAPBody soapBody = soapMessage.getSOAPBody();
+ SOAPBodyElement soapBodyElement = (SOAPBodyElement)soapBody.getChildElements().next();
+ SOAPElement faultStringElement = (SOAPElement)soapBodyElement.getChildElements(new QName("faultstring")).next();
+ faultStringElement.setValue(faultStringElement.getValue().toUpperCase());
+ Iterator<SOAPElement> itDetail = soapBodyElement.getChildElements(new QName("detail"));
+ if (itDetail.hasNext())
+ {
+ Iterator<SOAPElement> itException = itDetail.next().getChildElements(new QName("http://server.exception.samples.jaxws.ws.test.jboss.org/","UserException"));
+ if (itException.hasNext())
+ {
+ SOAPElement messageElement = (SOAPElement)itException.next().getChildElements(new QName("message")).next();
+ messageElement.setValue(messageElement.getValue().toUpperCase());
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ return true;
+ }
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/ServerHandler.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/UserException.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/UserException.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/UserException.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,54 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * A mach application exception
+ *
+ * @author <a href="jason.greene at jboss.com">Jason T. Greene</a>
+ */
+ at WebFault(faultBean="org.jboss.test.ws.jaxws.samples.exception.server.jaxws.UserExceptionBean")
+public class UserException extends Exception
+{
+ private int errorCode;
+ private String errorCategory;
+
+ public UserException(String errorCategory, int errorCode, String message)
+ {
+ super(message);
+
+ this.errorCategory = errorCategory;
+ this.errorCode = errorCode;
+ }
+
+ public String getErrorCategory()
+ {
+ return errorCategory;
+ }
+
+ public int getErrorCode()
+ {
+ return errorCode;
+ }
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/UserException.java
___________________________________________________________________
Name: svn:executable
+ *
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationException.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationException.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationException.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationException")
+ at XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationException")
+ at XmlAccessorType(XmlAccessType.FIELD)
+public class ThrowApplicationException {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationExceptionResponse.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationExceptionResponse.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationExceptionResponse.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationExceptionResponse")
+ at XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationExceptionResponse")
+ at XmlAccessorType(XmlAccessType.FIELD)
+public class ThrowApplicationExceptionResponse {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationExceptionResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeException.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeException.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeException.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeException")
+ at XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeException")
+ at XmlAccessorType(XmlAccessType.FIELD)
+public class ThrowRuntimeException {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeExceptionResponse.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeExceptionResponse.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeExceptionResponse.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeExceptionResponse")
+ at XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeExceptionResponse")
+ at XmlAccessorType(XmlAccessType.FIELD)
+public class ThrowRuntimeExceptionResponse {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeExceptionResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultException.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultException.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultException.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultException")
+ at XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultException")
+ at XmlAccessorType(XmlAccessType.FIELD)
+public class ThrowSoapFaultException {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultException.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultExceptionResponse.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultExceptionResponse.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultExceptionResponse.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultExceptionResponse")
+ at XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultExceptionResponse")
+ at XmlAccessorType(XmlAccessType.FIELD)
+public class ThrowSoapFaultExceptionResponse {
+
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultExceptionResponse.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/UserExceptionBean.java
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/UserExceptionBean.java (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/UserExceptionBean.java 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server.jaxws;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+import javax.xml.bind.annotation.XmlType;
+
+ at XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "UserException")
+ at XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "UserException", propOrder = {
+ "errorCategory",
+ "errorCode",
+ "message"
+})
+ at XmlAccessorType(XmlAccessType.FIELD)
+public class UserExceptionBean {
+
+ @XmlElement(namespace = "", name = "errorCategory")
+ private String errorCategory;
+ @XmlElement(namespace = "", name = "errorCode")
+ private int errorCode;
+ @XmlElement(namespace = "", name = "message")
+ private String message;
+
+ public String getErrorCategory() {
+ return this.errorCategory;
+ }
+
+ public void setErrorCategory(String errorCategory) {
+ this.errorCategory = errorCategory;
+ }
+
+ public int getErrorCode() {
+ return this.errorCode;
+ }
+
+ public void setErrorCode(int errorCode) {
+ this.errorCode = errorCode;
+ }
+
+ public String getMessage() {
+ return this.message;
+ }
+
+ public void setMessage(String message) {
+ this.message = message;
+ }
+
+}
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/UserExceptionBean.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+ <handler>
+ <handler-name>TestHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.samples.exception.server.ServerHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
\ No newline at end of file
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/WEB-INF/web.xml
===================================================================
--- branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/WEB-INF/web.xml (rev 0)
+++ branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/WEB-INF/web.xml 2009-08-21 16:37:57 UTC (rev 92678)
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>ExceptionEndpointService</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpointImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>ExceptionEndpointService</servlet-name>
+ <url-pattern>/ExceptionEndpointService</url-pattern>
+ </servlet-mapping>
+</web-app>
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/test-excludes-cxf.txt
===================================================================
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/test-excludes-cxf.txt
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/test-excludes-native.txt
===================================================================
Property changes on: branches/JBPAPP_5_0/webservices/src/etc/examples/exception/resources/test-excludes-native.txt
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
More information about the jboss-cvs-commits
mailing list