[jbossws-commits] JBossWS SVN: r3619 - in branches/maeste_palin/testsuite: src/java/org/jboss/test/ws/jaxws/samples/exception and 5 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Mon Jun 18 16:36:51 EDT 2007


Author: palin
Date: 2007-06-18 16:36:50 -0400 (Mon, 18 Jun 2007)
New Revision: 3619

Added:
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ExceptionEndpoint.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationExceptionResponse.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeExceptionResponse.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultExceptionResponse.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException_Exception.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/package-info.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/UserException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationExceptionResponse.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeExceptionResponse.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultExceptionResponse.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/UserExceptionBean.java
Removed:
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpoint.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpointImpl.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/UserException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationExceptionResponse.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeExceptionResponse.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultException.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultExceptionResponse.java
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/UserExceptionBean.java
Modified:
   branches/maeste_palin/testsuite/ant-import/build-jars-jaxws.xml
   branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java
   branches/maeste_palin/testsuite/src/resources/jaxws/samples/exception/WEB-INF/web.xml
Log:
Modify exception sample to use a real jaxws client for tests. Fixed JBWS-1670 .


Modified: branches/maeste_palin/testsuite/ant-import/build-jars-jaxws.xml
===================================================================
--- branches/maeste_palin/testsuite/ant-import/build-jars-jaxws.xml	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/ant-import/build-jars-jaxws.xml	2007-06-18 20:36:50 UTC (rev 3619)
@@ -82,10 +82,10 @@
     <!-- jaxws-samples-exception -->
     <war warfile="${tests.output.dir}/libs/jaxws-samples-exception.war" webxml="${tests.output.dir}/resources/jaxws/samples/exception/WEB-INF/web.xml">
       <classes dir="${tests.output.dir}/classes">
-        <include name="org/jboss/test/ws/jaxws/samples/exception/jaxws/**"/>
-        <include name="org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpoint.class"/>
-        <include name="org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpointImpl.class"/>
-        <include name="org/jboss/test/ws/jaxws/samples/exception/UserException.class"/>
+        <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws/**"/>
+        <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"/>
       </classes>
     </war>
     

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpoint.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpoint.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpoint.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,34 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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 javax.jws.WebService;
-
- at WebService
-public interface ExceptionEndpoint
-{
-   public void throwRuntimeException();
-
-   public void throwSoapFaultException();
-
-   public void throwApplicationException() throws UserException;
-}
\ No newline at end of file

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpointImpl.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpointImpl.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpointImpl.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,60 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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 javax.jws.WebService;
-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;
-
- at WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.exception.ExceptionEndpoint")
-public class ExceptionEndpointImpl implements ExceptionEndpoint
-{
-   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");
-   }
-}

Modified: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -29,6 +29,9 @@
 
 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.spi.test.JBossWSTest;
 import org.jboss.wsf.spi.test.JBossWSTestSetup;
 import org.w3c.dom.Element;
@@ -41,7 +44,7 @@
  */
 public class ExceptionTestCase extends JBossWSTest
 {
-   private String targetNS = "http://exception.samples.jaxws.ws.test.jboss.org/";
+   private String targetNS = "http://server.exception.samples.jaxws.ws.test.jboss.org/";
    private ExceptionEndpoint proxy;
 
    public static Test suite()
@@ -111,22 +114,17 @@
 
    public void testApplicationException() throws Exception
    {
-      if (isIntegrationSunRI())
-      {
-         System.out.println("FIXME: [JBWS-1670] SunRI client does not throw UserException");
-         return;
-      }
-      
       try
       {
          proxy.throwApplicationException();
          fail("Expected UserException");
       }
-      catch (UserException e)
+      catch (UserException_Exception e)
       {
-         assertEquals("Some validation error", e.getMessage());
-         assertEquals("validation", e.getErrorCategory());
-         assertEquals(123, e.getErrorCode());
+         UserException ue = e.getFaultInfo();
+         assertEquals("Some validation error", ue.getMessage());
+         assertEquals("validation", ue.getErrorCategory());
+         assertEquals(123, ue.getErrorCode());
       }
    }
 }
\ No newline at end of file

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/UserException.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/UserException.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/UserException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,55 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt 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 javax.xml.ws.WebFault;
-
-/**
- * A mach application exception
- *
- * @author <a href="jason.greene at jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
- at WebFault(faultBean="org.jboss.test.ws.jaxws.samples.exception.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;
-   }
-}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ExceptionEndpoint.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ExceptionEndpoint.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ExceptionEndpoint.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,41 @@
+
+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
+    ;
+
+}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationException.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationException.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,32 @@
+
+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>
+ * &lt;complexType name="throwApplicationException">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwApplicationException")
+public class ThrowApplicationException {
+
+
+}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationExceptionResponse.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationExceptionResponse.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowApplicationExceptionResponse.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,32 @@
+
+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>
+ * &lt;complexType name="throwApplicationExceptionResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwApplicationExceptionResponse")
+public class ThrowApplicationExceptionResponse {
+
+
+}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeException.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeException.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,32 @@
+
+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>
+ * &lt;complexType name="throwRuntimeException">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwRuntimeException")
+public class ThrowRuntimeException {
+
+
+}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeExceptionResponse.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeExceptionResponse.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowRuntimeExceptionResponse.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,32 @@
+
+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>
+ * &lt;complexType name="throwRuntimeExceptionResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwRuntimeExceptionResponse")
+public class ThrowRuntimeExceptionResponse {
+
+
+}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultException.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultException.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,32 @@
+
+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>
+ * &lt;complexType name="throwSoapFaultException">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwSoapFaultException")
+public class ThrowSoapFaultException {
+
+
+}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultExceptionResponse.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultExceptionResponse.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/ThrowSoapFaultExceptionResponse.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,32 @@
+
+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>
+ * &lt;complexType name="throwSoapFaultExceptionResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+ at XmlAccessorType(XmlAccessType.FIELD)
+ at XmlType(name = "throwSoapFaultExceptionResponse")
+public class ThrowSoapFaultExceptionResponse {
+
+
+}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,106 @@
+
+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>
+ * &lt;complexType name="UserException">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="errorCategory" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *         &lt;element name="errorCode" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ *         &lt;element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/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;
+    }
+
+}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException_Exception.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException_Exception.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/UserException_Exception.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,48 @@
+
+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;
+    }
+
+}

Added: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/package-info.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/package-info.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/client/package-info.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,2 @@
+ 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;

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationException.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationException.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,15 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.exception.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://exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationException")
- at XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationException")
- at XmlAccessorType(XmlAccessType.FIELD)
-public class ThrowApplicationException {
-
-
-}

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationExceptionResponse.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationExceptionResponse.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationExceptionResponse.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,15 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.exception.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://exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationExceptionResponse")
- at XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationExceptionResponse")
- at XmlAccessorType(XmlAccessType.FIELD)
-public class ThrowApplicationExceptionResponse {
-
-
-}

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeException.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeException.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,15 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.exception.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://exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeException")
- at XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeException")
- at XmlAccessorType(XmlAccessType.FIELD)
-public class ThrowRuntimeException {
-
-
-}

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeExceptionResponse.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeExceptionResponse.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeExceptionResponse.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,15 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.exception.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://exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeExceptionResponse")
- at XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeExceptionResponse")
- at XmlAccessorType(XmlAccessType.FIELD)
-public class ThrowRuntimeExceptionResponse {
-
-
-}

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultException.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultException.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,15 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.exception.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://exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultException")
- at XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultException")
- at XmlAccessorType(XmlAccessType.FIELD)
-public class ThrowSoapFaultException {
-
-
-}

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultExceptionResponse.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultExceptionResponse.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultExceptionResponse.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,15 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.exception.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://exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultExceptionResponse")
- at XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultExceptionResponse")
- at XmlAccessorType(XmlAccessType.FIELD)
-public class ThrowSoapFaultExceptionResponse {
-
-
-}

Deleted: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/UserExceptionBean.java
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/UserExceptionBean.java	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/UserExceptionBean.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -1,50 +0,0 @@
-
-package org.jboss.test.ws.jaxws.samples.exception.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://exception.samples.jaxws.ws.test.jboss.org/", name = "UserException")
- at XmlType(namespace = "http://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;
-    }
-
-}

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpoint.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,35 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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;
+}
\ No newline at end of file

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionEndpointImpl.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,61 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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;
+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;
+
+
+ at WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpoint")
+public class ExceptionEndpointImpl implements ExceptionEndpoint
+{
+   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");
+   }
+}

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/UserException.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/UserException.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/UserException.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/UserException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,55 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt 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>
+ * @version $Revision$
+ */
+ 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;
+   }
+}

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationException.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationException.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationException.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,15 @@
+
+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 {
+
+
+}

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationExceptionResponse.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowApplicationExceptionResponse.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationExceptionResponse.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowApplicationExceptionResponse.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,15 @@
+
+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 {
+
+
+}

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeException.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeException.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeException.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,15 @@
+
+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 {
+
+
+}

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeExceptionResponse.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowRuntimeExceptionResponse.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeExceptionResponse.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowRuntimeExceptionResponse.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,15 @@
+
+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 {
+
+
+}

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultException.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultException.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultException.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultException.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,15 @@
+
+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 {
+
+
+}

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultExceptionResponse.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/ThrowSoapFaultExceptionResponse.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultExceptionResponse.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/ThrowSoapFaultExceptionResponse.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,15 @@
+
+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 {
+
+
+}

Copied: branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/UserExceptionBean.java (from rev 3605, branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/jaxws/UserExceptionBean.java)
===================================================================
--- branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/UserExceptionBean.java	                        (rev 0)
+++ branches/maeste_palin/testsuite/src/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws/UserExceptionBean.java	2007-06-18 20:36:50 UTC (rev 3619)
@@ -0,0 +1,50 @@
+
+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;
+    }
+
+}

Modified: branches/maeste_palin/testsuite/src/resources/jaxws/samples/exception/WEB-INF/web.xml
===================================================================
--- branches/maeste_palin/testsuite/src/resources/jaxws/samples/exception/WEB-INF/web.xml	2007-06-18 14:03:31 UTC (rev 3618)
+++ branches/maeste_palin/testsuite/src/resources/jaxws/samples/exception/WEB-INF/web.xml	2007-06-18 20:36:50 UTC (rev 3619)
@@ -7,7 +7,7 @@
 
   <servlet>
     <servlet-name>ExceptionEndpointService</servlet-name>
-    <servlet-class>org.jboss.test.ws.jaxws.samples.exception.ExceptionEndpointImpl</servlet-class>
+    <servlet-class>org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpointImpl</servlet-class>
   </servlet>
 
   <servlet-mapping>




More information about the jbossws-commits mailing list