JBossWS SVN: r3620 - trunk/integration/spi/ant-import.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-06-18 16:39:56 -0400 (Mon, 18 Jun 2007)
New Revision: 3620
Modified:
trunk/integration/spi/ant-import/macros-deploy-spi.xml
Log:
Include wsdl4j.jar in macros-deploy.
Modified: trunk/integration/spi/ant-import/macros-deploy-spi.xml
===================================================================
--- trunk/integration/spi/ant-import/macros-deploy-spi.xml 2007-06-18 20:36:50 UTC (rev 3619)
+++ trunk/integration/spi/ant-import/macros-deploy-spi.xml 2007-06-18 20:39:56 UTC (rev 3620)
@@ -28,6 +28,9 @@
<fileset dir="@{spilibs}">
<include name="jbossws-spi.jar"/>
</fileset>
+ <fileset dir="@{thirdpartylibs}">
+ <include name="wsdl4j.jar"/>
+ </fileset>
</copy>
<!-- SERVER JARS-->
@@ -52,6 +55,7 @@
<!-- CLIENT JARS-->
<fileset dir="@{jbosshome}/client">
<include name="jbossws-spi.jar"/>
+ <include name="wsdl4j.jar"/>
</fileset>
<!-- SERVER JARS-->
18 years, 10 months
JBossWS SVN: r3619 - in branches/maeste_palin/testsuite: src/java/org/jboss/test/ws/jaxws/samples/exception and 5 other directories.
by jbossws-commits@lists.jboss.org
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;
-
-@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;
-
-@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(a)jboss.com">Jason T. Greene</a>
- * @version $Revision$
- */
-@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;
+
+
+@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>
+ * <complexType name="throwApplicationException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@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>
+ * <complexType name="throwApplicationExceptionResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@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>
+ * <complexType name="throwRuntimeException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@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>
+ * <complexType name="throwRuntimeExceptionResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@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>
+ * <complexType name="throwSoapFaultException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@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>
+ * <complexType name="throwSoapFaultExceptionResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@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>
+ * <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>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@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;
+
+
+@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 @@
+(a)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;
-
-@XmlRootElement(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationException")
-@XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationException")
-(a)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;
-
-@XmlRootElement(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationExceptionResponse")
-@XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationExceptionResponse")
-(a)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;
-
-@XmlRootElement(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeException")
-@XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeException")
-(a)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;
-
-@XmlRootElement(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeExceptionResponse")
-@XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeExceptionResponse")
-(a)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;
-
-@XmlRootElement(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultException")
-@XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultException")
-(a)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;
-
-@XmlRootElement(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultExceptionResponse")
-@XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultExceptionResponse")
-(a)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;
-
-@XmlRootElement(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "UserException")
-@XmlType(namespace = "http://exception.samples.jaxws.ws.test.jboss.org/", name = "UserException", propOrder = {
- "errorCategory",
- "errorCode",
- "message"
-})
-(a)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;
+
+
+@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;
+
+
+@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(a)jboss.com">Jason T. Greene</a>
+ * @version $Revision$
+ */
+@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;
+
+@XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationException")
+@XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationException")
+(a)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;
+
+@XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationExceptionResponse")
+@XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwApplicationExceptionResponse")
+(a)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;
+
+@XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeException")
+@XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeException")
+(a)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;
+
+@XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeExceptionResponse")
+@XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwRuntimeExceptionResponse")
+(a)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;
+
+@XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultException")
+@XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultException")
+(a)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;
+
+@XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultExceptionResponse")
+@XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "throwSoapFaultExceptionResponse")
+(a)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;
+
+@XmlRootElement(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "UserException")
+@XmlType(namespace = "http://server.exception.samples.jaxws.ws.test.jboss.org/", name = "UserException", propOrder = {
+ "errorCategory",
+ "errorCode",
+ "message"
+})
+(a)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>
18 years, 10 months
JBossWS SVN: r3618 - trunk/build/hudson/hudson-home/jobs/Core-Tests-AS-4.2.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-06-18 10:03:31 -0400 (Mon, 18 Jun 2007)
New Revision: 3618
Modified:
trunk/build/hudson/hudson-home/jobs/Core-Tests-AS-4.2/config.xml
Log:
rollback 'build.sh'
Modified: trunk/build/hudson/hudson-home/jobs/Core-Tests-AS-4.2/config.xml
===================================================================
--- trunk/build/hudson/hudson-home/jobs/Core-Tests-AS-4.2/config.xml 2007-06-18 13:58:13 UTC (rev 3617)
+++ trunk/build/hudson/hudson-home/jobs/Core-Tests-AS-4.2/config.xml 2007-06-18 14:03:31 UTC (rev 3618)
@@ -19,18 +19,18 @@
#
cd $JBWSDIR/build
cp ant.properties.example ant.properties
-./build.sh clean
+ant clean
#
# stop jbossas
#
$JBWSDIR/build/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop
-
+
#
# deploy to jboss
#
cd $JBWSDIR/jbossws-core
-./build.sh $ENVIRONMENT deploy-jboss42
+ant $ENVIRONMENT deploy-jboss42
#
# start jbossas
@@ -44,11 +44,11 @@
$JBWSDIR/build/hudson/jboss/bin/jboss.sh $JBOSS_INSTANCE stop $JBOSS_BINDADDR
exit 1
fi
-
+
#
# execute tests
#
-./build.sh $ENVIRONMENT tests-clean tests 2>&1 | tee $WORKSPACE/tests.out
+ant $ENVIRONMENT tests-clean tests 2>&1 | tee $WORKSPACE/tests.out
cat $WORKSPACE/tests.out | egrep FIXME\|FAILED | sort -u
#
18 years, 10 months
JBossWS SVN: r3617 - in branches/maeste_palin/integration: sunri/src/test/resources and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: maeste
Date: 2007-06-18 09:58:13 -0400 (Mon, 18 Jun 2007)
New Revision: 3617
Modified:
branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/InvokerEJB3.java
branches/maeste_palin/integration/sunri/src/test/resources/test-excludes.txt
branches/maeste_palin/integration/xfire/.classpath
Log:
FIxed JBWS-1669.
Modified: branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/InvokerEJB3.java
===================================================================
--- branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/InvokerEJB3.java 2007-06-18 13:53:29 UTC (rev 3616)
+++ branches/maeste_palin/integration/sunri/src/main/java/org/jboss/wsf/stack/sunri/InvokerEJB3.java 2007-06-18 13:58:13 UTC (rev 3617)
@@ -28,6 +28,7 @@
import javax.xml.ws.Provider;
import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
import org.jboss.wsf.spi.deployment.Endpoint;
import org.jboss.wsf.spi.deployment.EndpointAssociation;
@@ -50,6 +51,8 @@
public class InvokerEJB3 extends Invoker
{
private final InstanceResolver resolver;
+
+ private WSWebServiceContext wsc;
public InvokerEJB3(InstanceResolver resolver)
{
@@ -60,6 +63,7 @@
public void start(@NotNull WSWebServiceContext wsc, @NotNull WSEndpoint endpoint)
{
resolver.start(wsc, endpoint);
+ this.wsc = wsc;
}
@Override
@@ -82,6 +86,9 @@
InvocationHandler invHandler = ep.getInvocationHandler();
Invocation inv = invHandler.createInvocation();
+
+ inv.getInvocationContext().addAttachment(MessageContext.class, wsc.getMessageContext());
+
inv.setJavaMethod(m);
inv.setArgs(args);
Modified: branches/maeste_palin/integration/sunri/src/test/resources/test-excludes.txt
===================================================================
--- branches/maeste_palin/integration/sunri/src/test/resources/test-excludes.txt 2007-06-18 13:53:29 UTC (rev 3616)
+++ branches/maeste_palin/integration/sunri/src/test/resources/test-excludes.txt 2007-06-18 13:58:13 UTC (rev 3617)
@@ -12,7 +12,7 @@
###################################################################
# [JBWS-1669] Fix WebServiceContext.getMessageContext()
-org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java
+#org/jboss/test/ws/jaxws/samples/context/WebServiceContextEJBTestCase.java
# [JBWS-1673] Fix JAXR samples for SunRI
org/jboss/test/ws/jaxws/samples/jaxr/**
Modified: branches/maeste_palin/integration/xfire/.classpath
===================================================================
--- branches/maeste_palin/integration/xfire/.classpath 2007-06-18 13:53:29 UTC (rev 3616)
+++ branches/maeste_palin/integration/xfire/.classpath 2007-06-18 13:58:13 UTC (rev 3617)
@@ -17,5 +17,6 @@
<classpathentry kind="lib" path="thirdparty/xbean-spring.jar"/>
<classpathentry combineaccessrules="false" kind="src" path="/integration-jboss50"/>
<classpathentry kind="con" path="org.eclipse.jdt.USER_LIBRARY/jboss-5.0.x"/>
+ <classpathentry kind="lib" path="thirdparty/commons-logging-1.1.jar"/>
<classpathentry kind="output" path="output/eclipse"/>
</classpath>
18 years, 10 months
JBossWS SVN: r3615 - trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2007-06-18 09:51:57 -0400 (Mon, 18 Jun 2007)
New Revision: 3615
Modified:
trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java
Log:
JBWS-1093 - Deploying a war that also contains normal servlets the web.xml is modified as if they are all endpoints.
Re-enable test as previous failure has been corrected.
Modified: trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java
===================================================================
--- trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java 2007-06-18 13:33:07 UTC (rev 3614)
+++ trunk/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java 2007-06-18 13:51:57 UTC (rev 3615)
@@ -58,13 +58,7 @@
}
public void testServletAccess() throws Exception
- {
- if (true)
- {
- System.out.println("FIXME: [JBAS-4210] HTTP request dispatched to the wrong servlet");
- return;
- }
-
+ {
HttpURLConnection con = (HttpURLConnection)new URL("http://" + getServerHost() + ":8080/test/TestServlet").openConnection();
BufferedReader isr = new BufferedReader(new InputStreamReader(con.getInputStream()));
assertEquals("Hello", isr.readLine());
18 years, 10 months
JBossWS SVN: r3614 - branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2007-06-18 09:33:07 -0400 (Mon, 18 Jun 2007)
New Revision: 3614
Modified:
branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java
Log:
JBWS-1093 - Deploying a war that also contains normal servlets the web.xml is modified as if they are all endpoints.
Re-enable test as previous failure has been corrected.
Modified: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java 2007-06-18 13:26:27 UTC (rev 3613)
+++ branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxws/jbws860/JBWS860TestCase.java 2007-06-18 13:33:07 UTC (rev 3614)
@@ -58,13 +58,7 @@
}
public void testServletAccess() throws Exception
- {
- if (true)
- {
- System.out.println("FIXME: [JBAS-4210] HTTP request dispatched to the wrong servlet");
- return;
- }
-
+ {
HttpURLConnection con = (HttpURLConnection)new URL("http://" + getServerHost() + ":8080/test/TestServlet").openConnection();
BufferedReader isr = new BufferedReader(new InputStreamReader(con.getInputStream()));
assertEquals("Hello", isr.readLine());
18 years, 10 months
JBossWS SVN: r3613 - branches/jbossws-2.0/jbossws-core/src/main/java/org/jboss/ws/core/soap.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-06-18 09:26:27 -0400 (Mon, 18 Jun 2007)
New Revision: 3613
Modified:
branches/jbossws-2.0/jbossws-core/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java
Log:
[JBWS-1710] StackOverflowError when calling SOAPDocument.createCDATASection
Modified: branches/jbossws-2.0/jbossws-core/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java 2007-06-18 12:41:08 UTC (rev 3612)
+++ branches/jbossws-2.0/jbossws-core/src/main/java/org/jboss/ws/core/soap/SOAPDocument.java 2007-06-18 13:26:27 UTC (rev 3613)
@@ -95,12 +95,12 @@
public CDATASection createCDATASection(String data) throws DOMException
{
- return createCDATASection(data);
+ return doc.createCDATASection(data);
}
public ProcessingInstruction createProcessingInstruction(String target, String data) throws DOMException
{
- return createProcessingInstruction(target, data);
+ return doc.createProcessingInstruction(target, data);
}
public Attr createAttribute(String name) throws DOMException
18 years, 10 months
JBossWS SVN: r3612 - branches/jbossws-2.0/build/hudson/hudson-home.
by jbossws-commits@lists.jboss.org
Author: thomas.diesler(a)jboss.com
Date: 2007-06-18 08:41:08 -0400 (Mon, 18 Jun 2007)
New Revision: 3612
Modified:
branches/jbossws-2.0/build/hudson/hudson-home/config.xml
Log:
typo
Modified: branches/jbossws-2.0/build/hudson/hudson-home/config.xml
===================================================================
--- branches/jbossws-2.0/build/hudson/hudson-home/config.xml 2007-06-18 12:33:28 UTC (rev 3611)
+++ branches/jbossws-2.0/build/hudson/hudson-home/config.xml 2007-06-18 12:41:08 UTC (rev 3612)
@@ -120,10 +120,10 @@
A collection of jobs that cover the JBossWS release matrix.
<p/>
<table border=1>
-<tr align=center><th>Target</th> <th>Core Tests</th> <th colspan=3>Distribution Tests</th> <th colspan=3>Integration Tests</th></tr>
-<tr align=center><th align=left>AS-5.0</th> <td>ok</td> <td>ok</td> <td>ok</td></tr>
-<tr align=center><th align=left>AS-4.2</th> <td>ok</td> <td>ok</td> <td>ok</td></tr>
-<tr align=center><th align=left>AS-4.0</th> <td>ok</td> <td>ok</td> <td>ok</td></tr>
+<tr align=center><th>Target</th> <th>Core Tests</th> <th>Distribution Tests</th> <th>Integration Tests</th></tr>
+<tr align=center><th align=left>AS-5.0</th> <td>ok</td> <td>ok</td> <td>ok</td></tr>
+<tr align=center><th align=left>AS-4.2</th> <td>ok</td> <td>ok</td> <td>ok</td></tr>
+<tr align=center><th align=left>AS-4.0</th> <td>ok</td> <td>ok</td> <td>ok</td></tr>
</table>
]]>
</description>
18 years, 10 months
JBossWS SVN: r3611 - trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/addressing/soap.
by jbossws-commits@lists.jboss.org
Author: heiko.braun(a)jboss.com
Date: 2007-06-18 08:33:28 -0400 (Mon, 18 Jun 2007)
New Revision: 3611
Modified:
trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java
Log:
messageID is optional
Modified: trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java
===================================================================
--- trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java 2007-06-18 11:54:04 UTC (rev 3610)
+++ trunk/jbossws-core/src/main/java/org/jboss/ws/extensions/addressing/soap/SOAPAddressingPropertiesImpl.java 2007-06-18 12:33:28 UTC (rev 3611)
@@ -257,12 +257,8 @@
appendRequiredHeader(soapHeader, ADDR.getActionQName(), getAction());
// Write wsa:MessageID
- if( (getReplyTo()!=null || getFaultTo()!=null) && null==getMessageID())
+ if (getMessageID() != null)
{
- throw new AddressingException("Required addressing header missing:" + ADDR.getMessageIDQName());
- }
- else if (getMessageID() != null)
- {
SOAPElement wsaMessageId = soapHeader.addChildElement(new NameImpl(ADDR.getMessageIDQName()));
wsaMessageId.addTextNode(getMessageID().getURI().toString());
}
18 years, 10 months