JBossWS SVN: r11943 - framework/trunk/testsuite/test/ant-import.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-04-06 09:22:05 -0400 (Tue, 06 Apr 2010)
New Revision: 11943
Modified:
framework/trunk/testsuite/test/ant-import/build-testsuite.xml
Log:
[JBWS-2988] Adding jboss-logging.jar lib to classpath in binary distro
Modified: framework/trunk/testsuite/test/ant-import/build-testsuite.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-testsuite.xml 2010-04-06 13:10:37 UTC (rev 11942)
+++ framework/trunk/testsuite/test/ant-import/build-testsuite.xml 2010-04-06 13:22:05 UTC (rev 11943)
@@ -292,6 +292,7 @@
<pathelement location="${jboss.client}/jboss-ejb3-client.jar"/>
<pathelement location="${jboss.client}/jboss-ejb3-ext-api.jar"/>
<pathelement location="${jboss.client}/jboss-jaxr-api_1.0_spec.jar"/>
+ <pathelement location="${jboss.client}/jboss-logging.jar"/>
<pathelement location="${jboss.client}/jboss-logging-spi.jar"/>
<pathelement location="${jboss.client}/jboss-metadata-client.jar"/>
<pathelement location="${jboss.client}/jboss-metadata-common.jar"/>
14 years, 8 months
JBossWS SVN: r11942 - stack/cxf/trunk/modules/client.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-04-06 09:10:37 -0400 (Tue, 06 Apr 2010)
New Revision: 11942
Modified:
stack/cxf/trunk/modules/client/pom.xml
Log:
[JBWS-2988] Fixing jbossws-cxf-client.jar manifest
Modified: stack/cxf/trunk/modules/client/pom.xml
===================================================================
--- stack/cxf/trunk/modules/client/pom.xml 2010-04-06 09:49:14 UTC (rev 11941)
+++ stack/cxf/trunk/modules/client/pom.xml 2010-04-06 13:10:37 UTC (rev 11942)
@@ -209,7 +209,7 @@
<customClasspathLayout>$${artifact.artifactId}.$${artifact.extension}</customClasspathLayout>
</manifest>
<manifestEntries>
- <Class-Path>jbossws-framework.jar jaxws-api.jar jboss-logging-spi.jar jboss-logging-log4j.jar jcl-over-slf4j.jar slf4j-api.jar slf4j-jboss-logging.jar stax-api.jar wstx.jar</Class-Path>
+ <Class-Path>jbossws-framework.jar jaxws-api.jar jboss-logging.jar jboss-logging-spi.jar jboss-logging-log4j.jar jcl-over-slf4j.jar slf4j-api.jar slf4j-jboss-logging.jar stax-api.jar wstx.jar</Class-Path>
</manifestEntries>
</archive>
</configuration>
14 years, 8 months
JBossWS SVN: r11941 - stack/metro/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2010-04-06 05:49:14 -0400 (Tue, 06 Apr 2010)
New Revision: 11941
Modified:
stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt
Log:
fixing metro excludes
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-04-06 09:45:16 UTC (rev 11940)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-04-06 09:49:14 UTC (rev 11941)
@@ -63,6 +63,6 @@
org/jboss/test/ws/jaxrpc/**
# These tests require JAX-WS 2.2 API
-org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
-org/jboss/test/ws/jaxws/jbws2985/*TestCase.*
+org/jboss/test/ws/jaxws/jbws2960/**
+org/jboss/test/ws/jaxws/jbws2985/**
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-04-06 09:45:16 UTC (rev 11940)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-04-06 09:49:14 UTC (rev 11941)
@@ -63,6 +63,6 @@
org/jboss/test/ws/jaxrpc/**
# These tests require JAX-WS 2.2 API
-org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
-org/jboss/test/ws/jaxws/jbws2985/*TestCase.*
+org/jboss/test/ws/jaxws/jbws2960/**
+org/jboss/test/ws/jaxws/jbws2985/**
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-04-06 09:45:16 UTC (rev 11940)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-04-06 09:49:14 UTC (rev 11941)
@@ -63,6 +63,6 @@
org/jboss/test/ws/jaxrpc/**
# These tests require JAX-WS 2.2 API
-org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
-org/jboss/test/ws/jaxws/jbws2985/*TestCase.*
+org/jboss/test/ws/jaxws/jbws2960/**
+org/jboss/test/ws/jaxws/jbws2985/**
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-04-06 09:45:16 UTC (rev 11940)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-04-06 09:49:14 UTC (rev 11941)
@@ -54,8 +54,8 @@
org/jboss/test/ws/jaxws/endpointReference/EndpointReferenceTestCase.*
# These tests require JAX-WS 2.2 API
-org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
-org/jboss/test/ws/jaxws/jbws2985/*TestCase.*
+org/jboss/test/ws/jaxws/jbws2960/**
+org/jboss/test/ws/jaxws/jbws2985/**
org/jboss/test/ws/jaxws/jbws2917/**
org/jboss/test/ws/jaxws/jbws2937/**
org/jboss/test/ws/jaxws/jbws2942/**
14 years, 8 months
JBossWS SVN: r11940 - stack/cxf/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2010-04-06 05:45:16 -0400 (Tue, 06 Apr 2010)
New Revision: 11940
Modified:
stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt
Log:
updating CXF excludes
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-04-06 09:15:14 UTC (rev 11939)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-04-06 09:45:16 UTC (rev 11940)
@@ -54,8 +54,9 @@
# [JBWS-2895] JAX-RPC available from AS 6.0.0.M3
org/jboss/test/ws/jaxrpc/**
-# TODO investigate failures
-org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
+# [JBWS-2945] JAX-WS 2.2 implementation not yet available for CXF stack
+org/jboss/test/ws/jaxws/jbws2960/**
+org/jboss/test/ws/jaxws/jbws2985/**
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
# [JBWS-2987] Review JMS integration
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-04-06 09:15:14 UTC (rev 11939)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-04-06 09:45:16 UTC (rev 11940)
@@ -54,8 +54,9 @@
# [JBWS-2895] JAX-RPC available from AS 6.0.0.M3
org/jboss/test/ws/jaxrpc/**
-# TODO investigate failures
-org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
+# [JBWS-2945] JAX-WS 2.2 implementation not yet available for CXF stack
+org/jboss/test/ws/jaxws/jbws2960/**
+org/jboss/test/ws/jaxws/jbws2985/**
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
# [JBWS-2987] Review JMS integration
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-04-06 09:15:14 UTC (rev 11939)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-04-06 09:45:16 UTC (rev 11940)
@@ -54,8 +54,9 @@
# [JBWS-2895] JAX-RPC available from AS 6.0.0.M3
org/jboss/test/ws/jaxrpc/**
-# TODO investigate failures
-org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
+# [JBWS-2945] JAX-WS 2.2 implementation not yet available for CXF stack
+org/jboss/test/ws/jaxws/jbws2960/**
+org/jboss/test/ws/jaxws/jbws2985/**
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
# [JBWS-2987] Review JMS integration
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-04-06 09:15:14 UTC (rev 11939)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-04-06 09:45:16 UTC (rev 11940)
@@ -48,10 +48,9 @@
# [JBWS-2945] JAX-WS 2.2 implementation not yet available for CXF stack
org/jboss/test/ws/jaxws/jbws2937/**
org/jboss/test/ws/jaxws/jbws2942/**
+org/jboss/test/ws/jaxws/jbws2960/**
+org/jboss/test/ws/jaxws/jbws2985/**
org/jboss/test/ws/jaxws/endpointReference/EndpointReferenceBuilderTestCase.*
-
-# TODO investigate failures
-org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
# [JBWS-2987] Review JMS integration
14 years, 8 months
JBossWS SVN: r11939 - stack/metro/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2010-04-06 05:15:14 -0400 (Tue, 06 Apr 2010)
New Revision: 11939
Modified:
stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt
stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt
Log:
updating metro excludes
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-04-06 08:47:00 UTC (rev 11938)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-04-06 09:15:14 UTC (rev 11939)
@@ -62,6 +62,7 @@
# [JBWS-2895] JAX-RPC available from AS 6.0.0.M3
org/jboss/test/ws/jaxrpc/**
-# [JBWS-2960] TODO
+# These tests require JAX-WS 2.2 API
org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
+org/jboss/test/ws/jaxws/jbws2985/*TestCase.*
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-04-06 08:47:00 UTC (rev 11938)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-04-06 09:15:14 UTC (rev 11939)
@@ -62,6 +62,7 @@
# [JBWS-2895] JAX-RPC available from AS 6.0.0.M3
org/jboss/test/ws/jaxrpc/**
-# [JBWS-2960] TODO
+# These tests require JAX-WS 2.2 API
org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
+org/jboss/test/ws/jaxws/jbws2985/*TestCase.*
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-04-06 08:47:00 UTC (rev 11938)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-04-06 09:15:14 UTC (rev 11939)
@@ -62,6 +62,7 @@
# [JBWS-2895] JAX-RPC available from AS 6.0.0.M3
org/jboss/test/ws/jaxrpc/**
-# [JBWS-2960] TODO
+# These tests require JAX-WS 2.2 API
org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
+org/jboss/test/ws/jaxws/jbws2985/*TestCase.*
Modified: stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt
===================================================================
--- stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-04-06 08:47:00 UTC (rev 11938)
+++ stack/metro/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-04-06 09:15:14 UTC (rev 11939)
@@ -53,12 +53,11 @@
# [JBWS-2915] WSDL metadata is missing in EPR
org/jboss/test/ws/jaxws/endpointReference/EndpointReferenceTestCase.*
-# [JBWS-2917] We're using buggy xalan version causing namespaces issues
+# These tests require JAX-WS 2.2 API
+org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
+org/jboss/test/ws/jaxws/jbws2985/*TestCase.*
org/jboss/test/ws/jaxws/jbws2917/**
org/jboss/test/ws/jaxws/jbws2937/**
org/jboss/test/ws/jaxws/jbws2942/**
org/jboss/test/ws/jaxws/endpointReference/EndpointReferenceBuilderTestCase.*
-# [JBWS-2960] TODO
-org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
-
14 years, 8 months
JBossWS SVN: r11938 - in framework/trunk/testsuite/test: java/org/jboss/test/ws/jaxws and 9 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2010-04-06 04:47:00 -0400 (Tue, 06 Apr 2010)
New Revision: 11938
Added:
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/ActionNotSupportedException.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/AddressingHeaderException.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/AddressingPropertyException.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/JAXWS_Util.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/W3CAddressingConstants.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaBaseSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/ClientSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/JBWS2985TestCase.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/common/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/common/TestConstants.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers2.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers2Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers3.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers3Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers4.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers4Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersEmptyAction.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersEmptyActionResponse.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersException.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersException_Exception.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault1.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault1Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault2.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault2Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault3.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault3Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault4.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault4Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault5.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault5Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault6.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault6Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault7.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault7Response.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersNoAction.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersNoActionResponse.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersResponse.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersService.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersService_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers_Type.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers_handler.xml
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/ObjectFactory.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/TooBigNumbersException.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/TooBigNumbersException_Exception.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/package-info.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersException.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersImpl.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/ServerSOAPHandler.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/TooBigNumbersException.java
framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/server-handler.xml
framework/trunk/testsuite/test/resources/jaxws/jbws2985/
framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/
framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/jboss-web.xml
framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/web.xml
framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/wsdl/
framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/wsdl/AddNumbersService.wsdl
Modified:
framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
Log:
[JBWS-2985] providing test case
Modified: framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-04-06 08:30:35 UTC (rev 11937)
+++ framework/trunk/testsuite/test/ant-import/build-jars-jaxws.xml 2010-04-06 08:47:00 UTC (rev 11938)
@@ -875,6 +875,29 @@
</webinf>
</war>
+ <!-- jaxws-jbws2985 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2985.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2985/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersException.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersException.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersImpl.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2985/service/TooBigNumbersException.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2985/service/ServerSOAPHandler.class"/>
+ <include name="org/jboss/test/ws/jaxws/jbws2985/service/server-handler.xml" />
+ <include name="org/jboss/test/ws/jaxws/jbws2985/common/TestConstants.class"/>
+ <include name="org/jboss/test/ws/jaxws/common/ActionNotSupportedException.class"/>
+ <include name="org/jboss/test/ws/jaxws/common/AddressingPropertyException.class"/>
+ <include name="org/jboss/test/ws/jaxws/common/AddressingHeaderException.class"/>
+ <include name="org/jboss/test/ws/jaxws/common/JAXWS_Util.class"/>
+ <include name="org/jboss/test/ws/jaxws/common/WsaBaseSOAPHandler.class"/>
+ <include name="org/jboss/test/ws/jaxws/common/W3CAddressingConstants.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2985/WEB-INF">
+ <include name="wsdl/**" />
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
+
<!-- jaxws namespace -->
<war warfile="${tests.output.dir}/test-libs/jaxws-namespace.war" webxml="${tests.output.dir}/test-resources/jaxws/namespace/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/ActionNotSupportedException.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/ActionNotSupportedException.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/ActionNotSupportedException.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.common;
+
+import javax.xml.ws.WebServiceException;
+
+public class ActionNotSupportedException extends WebServiceException
+{
+ String detail;
+
+ public ActionNotSupportedException(String message)
+ {
+ super(message);
+ }
+
+ public ActionNotSupportedException(String message, String detail)
+ {
+ super(message);
+ this.detail = detail;
+ }
+
+ public String getDetail()
+ {
+ return detail;
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/AddressingHeaderException.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/AddressingHeaderException.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/AddressingHeaderException.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.common;
+
+import javax.xml.ws.WebServiceException;
+
+public class AddressingHeaderException extends WebServiceException
+{
+ String detail;
+
+ public AddressingHeaderException(String message)
+ {
+ super(message);
+ }
+
+ public AddressingHeaderException(String message, String detail)
+ {
+ super(message);
+ this.detail = detail;
+ }
+
+ public String getDetail()
+ {
+ return detail;
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/AddressingPropertyException.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/AddressingPropertyException.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/AddressingPropertyException.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,45 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.common;
+
+import javax.xml.ws.WebServiceException;
+
+public class AddressingPropertyException extends WebServiceException
+{
+ String detail;
+
+ public AddressingPropertyException(String message)
+ {
+ super(message);
+ }
+
+ public AddressingPropertyException(String message, String detail)
+ {
+ super(message);
+ this.detail = detail;
+ }
+
+ public String getDetail()
+ {
+ return detail;
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/JAXWS_Util.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/JAXWS_Util.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/JAXWS_Util.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,73 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.common;
+
+import javax.xml.soap.*;
+import java.io.*;
+import org.jboss.logging.Logger;
+import org.jboss.ws.Constants;
+import org.jboss.wsf.common.DOMUtils;
+
+import javax.xml.soap.SOAPMessage;
+
+public final class JAXWS_Util
+{
+ private static final Logger log = Logger.getLogger(JAXWS_Util.class);
+
+ private static String getMessageEncoding(final SOAPMessage msg) throws SOAPException
+ {
+ String encoding = Constants.DEFAULT_XML_CHARSET;
+ if (msg.getProperty(SOAPMessage.CHARACTER_SET_ENCODING) != null)
+ {
+ encoding = msg.getProperty(SOAPMessage.CHARACTER_SET_ENCODING).toString();
+ }
+ return encoding;
+ }
+
+ public static void dumpSOAPMessage(final SOAPMessage msg, final boolean logOnly)
+ {
+ final StringBuilder sb = new StringBuilder();
+
+ try
+ {
+ sb.append("--------------------\n");
+ sb.append("DUMP OF SOAP MESSAGE\n");
+ sb.append("--------------------\n");
+ String soapMsgString = DOMUtils.node2String(msg.getSOAPPart());
+ sb.append(soapMsgString);
+ }
+ catch (Exception e)
+ {
+ log.error(e.getMessage(), e);
+ e.printStackTrace();
+ }
+
+ if (logOnly)
+ {
+ log.debug(sb.toString());
+ }
+ else
+ {
+ System.err.print(sb.toString());
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/W3CAddressingConstants.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/W3CAddressingConstants.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/W3CAddressingConstants.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,151 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.common;
+
+import javax.xml.namespace.QName;
+
+public interface W3CAddressingConstants
+{
+ public static final String WSA_NAMESPACE_NAME = "http://www.w3.org/2005/08/addressing";
+
+ public static final String WSA_NAMESPACE_WSDL_NAME = "http://www.w3.org/2006/05/addressing/wsdl";
+
+ public static final String WSA_NAMESPACE_PREFIX = "wsa";
+
+ public static final String WSA_NAMESPACE_WSDL_PREFIX = "wsaw";
+
+ public static final String WSAW_SERVICENAME_NAME = "ServiceName";
+
+ public static final String WSAW_INTERFACENAME_NAME = "InterfaceName";
+
+ public static final String WSAW_ENDPOINTNAME_NAME = "EndpointName";
+
+ public static final String WSA_REFERENCEPROPERTIES_NAME = "ReferenceParameters";
+
+ public static final QName WSA_REFERENCEPROPERTIES_QNAME = new QName(WSA_NAMESPACE_NAME, WSA_REFERENCEPROPERTIES_NAME);
+
+ public static final String WSA_REFERENCEPARAMETERS_NAME = "ReferenceParameters";
+
+ public static final QName WSA_REFERENCEPARAMETERS_QNAME = new QName(WSA_NAMESPACE_NAME, WSA_REFERENCEPARAMETERS_NAME);
+
+ public static final String WSA_METADATA_NAME = "Metadata";
+
+ public static final QName WSA_METADATA_QNAME = new QName(WSA_NAMESPACE_NAME, WSA_METADATA_NAME);
+
+ public static final String WSA_ADDRESS_NAME = "Address";
+
+ public static final QName WSA_ADDRESS_QNAME = new QName(WSA_NAMESPACE_NAME, WSA_ADDRESS_NAME);
+
+ public static final QName WSA_FROM_QNAME = new QName(WSA_NAMESPACE_NAME, "From", WSA_NAMESPACE_PREFIX);
+
+ public static final QName WSA_TO_QNAME = new QName(WSA_NAMESPACE_NAME, "To", WSA_NAMESPACE_PREFIX);
+
+ public static final QName WSA_REPLYTO_QNAME = new QName(WSA_NAMESPACE_NAME, "ReplyTo", WSA_NAMESPACE_PREFIX);
+
+ public static final QName WSA_FAULTTO_QNAME = new QName(WSA_NAMESPACE_NAME, "FaultTo", WSA_NAMESPACE_PREFIX);
+
+ public static final QName WSA_ACTION_QNAME = new QName(WSA_NAMESPACE_NAME, "Action", WSA_NAMESPACE_PREFIX);
+
+ public static final QName WSA_MESSAGEID_QNAME = new QName(WSA_NAMESPACE_NAME, "MessageID", WSA_NAMESPACE_PREFIX);
+
+ public static final QName WSA_IS_REFERENCE_PARAMETER_QNAME = new QName(WSA_NAMESPACE_NAME, "IsReferenceParameter",
+ WSA_NAMESPACE_PREFIX);
+
+ public static final String WSA_RELATIONSHIP_REPLY = WSA_NAMESPACE_NAME + "/reply";
+
+ public static final QName WSA_RELATESTO_QNAME = new QName(WSA_NAMESPACE_NAME, "RelatesTo", WSA_NAMESPACE_PREFIX);
+
+ public static final QName WSA_RELATIONSHIPTYPE_QNAME = new QName(WSA_NAMESPACE_NAME, "RelationshipType",
+ WSA_NAMESPACE_PREFIX);
+
+ public static final String WSA_ANONYMOUS_ADDRESS_URI = WSA_NAMESPACE_NAME + "/anonymous";
+
+ public static final String WSA_ANONYMOUS_ADDRESS = WSA_NAMESPACE_NAME + "/anonymous";
+
+ public static final String WSA_NONE_ADDRESS = WSA_NAMESPACE_NAME + "/none";
+
+ public static final String WSA_DEFAULT_FAULT_ACTION = WSA_NAMESPACE_NAME + "/fault";
+
+ public static final String WSAW_ACTION_NAME = "Action";
+
+ public static final QName WSAW_ACTION_QNAME = new QName(WSA_NAMESPACE_WSDL_NAME, WSAW_ACTION_NAME);
+
+ public static final String WSAW_USING_ADDRESSING_NAME = "UsingAddressing";
+
+ public static final QName WSAW_USING_ADDRESSING_QNAME = new QName(WSA_NAMESPACE_WSDL_NAME,
+ WSAW_USING_ADDRESSING_NAME);
+
+ public static final String WSAW_ANONYMOUS_NAME = "Anonymous";
+
+ public static final QName WSAW_ANONYMOUS_QNAME = new QName(WSA_NAMESPACE_WSDL_NAME, WSAW_ANONYMOUS_NAME);
+
+ public static final QName INVALID_MAP_QNAME = new QName(WSA_NAMESPACE_NAME, "InvalidAddressingHeader");
+
+ public static final QName MAP_REQUIRED_QNAME = new QName(WSA_NAMESPACE_NAME, "MessageAddressingHeaderRequired");
+
+ public static final QName DESTINATION_UNREACHABLE_QNAME = new QName(WSA_NAMESPACE_NAME, "DestinationUnreachable");
+
+ public static final QName ACTION_NOT_SUPPORTED_QNAME = new QName(WSA_NAMESPACE_NAME, "ActionNotSupported");
+
+ public static final QName ENDPOINT_UNAVAILABLE_QNAME = new QName(WSA_NAMESPACE_NAME, "EndpointUnavailable");
+
+ public static final String ACTION_NOT_SUPPORTED_TEXT = "The \"%s\" cannot be processed at the receiver";
+
+ public static final String DESTINATION_UNREACHABLE_TEXT = "No route can be determined to reach %s";
+
+ public static final String ENDPOINT_UNAVAILABLE_TEXT = "The endpoint is unable to process the message at this time";
+
+ public static final String INVALID_MAP_TEXT = "A header representing a Message Addressing Property is not valid and the message cannot be processed";
+
+ public static final String MAP_REQUIRED_TEXT = "A required header representing a Message Addressing Property is not present";
+
+ public static final QName PROBLEM_ACTION_QNAME = new QName(WSA_NAMESPACE_NAME, "ProblemAction");
+
+ public static final QName PROBLEM_HEADER_QNAME_QNAME = new QName(WSA_NAMESPACE_NAME, "ProblemHeaderQName");
+
+ public static final QName PROBLEM_HEADER_QNAME = new QName(WSA_NAMESPACE_NAME, "ProblemHeader");
+
+ public static final QName FAULT_DETAIL_QNAME = new QName(WSA_NAMESPACE_NAME, "FaultDetail");
+
+ public static final QName INVALID_ADDRESS_SUBCODE = new QName(WSA_NAMESPACE_NAME, "InvalidAddress",
+ WSA_NAMESPACE_PREFIX);
+
+ public static final QName INVALID_EPR = new QName(WSA_NAMESPACE_NAME, "InvalidEPR", WSA_NAMESPACE_PREFIX);
+
+ public static final QName INVALID_CARDINALITY = new QName(WSA_NAMESPACE_NAME, "InvalidCardinality",
+ WSA_NAMESPACE_PREFIX);
+
+ public static final QName MISSING_ADDRESS_IN_EPR = new QName(WSA_NAMESPACE_NAME, "MissingAddressInEPR",
+ WSA_NAMESPACE_PREFIX);
+
+ public static final QName DUPLICATE_MESSAGEID = new QName(WSA_NAMESPACE_NAME, "DuplicateMessageID",
+ WSA_NAMESPACE_PREFIX);
+
+ public static final QName ACTION_MISMATCH = new QName(WSA_NAMESPACE_NAME, "ActionMismatch", WSA_NAMESPACE_PREFIX);
+
+ public static final QName ONLY_ANONYMOUS_ADDRESS_SUPPORTED = new QName(WSA_NAMESPACE_NAME,
+ "OnlyAnonymousAddressSupported", WSA_NAMESPACE_PREFIX);
+
+ public static final QName ONLY_NON_ANONYMOUS_ADDRESS_SUPPORTED = new QName(WSA_NAMESPACE_NAME,
+ "OnlyNonAnonymousAddressSupported", WSA_NAMESPACE_PREFIX);
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaBaseSOAPHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaBaseSOAPHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/common/WsaBaseSOAPHandler.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,626 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.common;
+
+import java.util.Iterator;
+import java.util.Set;
+
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+import javax.xml.ws.handler.soap.SOAPHandler;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.soap.SOAPHeader;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.Text;
+import javax.xml.namespace.QName;
+
+import org.jboss.logging.Logger;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Element;
+
+public class WsaBaseSOAPHandler implements SOAPHandler<SOAPMessageContext>
+{
+ private static final Logger log = Logger.getLogger(WsaBaseSOAPHandler.class);
+
+ public WsaBaseSOAPHandler()
+ {
+ }
+
+ public boolean handleMessage(SOAPMessageContext context)
+ {
+ boolean outbound = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+ if (outbound)
+ {
+ log.debug("Direction=outbound");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println("Direction=outbound");
+ }
+ else
+ {
+ log.debug("Direction=inbound");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println("Direction=inbound");
+ }
+ try
+ {
+ SOAPMessage msg = ((SOAPMessageContext) context).getMessage();
+ JAXWS_Util.dumpSOAPMessage(msg, true);
+ if (whichHandler().equals("ServerSOAPHandler"))
+ JAXWS_Util.dumpSOAPMessage(msg, false);
+
+ SOAPBody soapBody = getSOAPBody(context);
+ String oper = getOperationName(soapBody);
+ String testName = getTestName(soapBody);
+ context.put("op.name", oper);
+ context.put("test.name", testName);
+ if (!outbound)
+ {
+ checkInboundAction(context, oper, getAction(context));
+ checkInboundTo(context);
+ checkInboundReplyTo(context);
+ checkInboundMessageId(context);
+ checkInboundRelationship(context);
+ checkInboundRelatesTo(context);
+ processInboundMessage(context, oper, testName);
+ }
+ else
+ {
+ processOutboundMessage(context, oper, testName);
+ }
+ }
+ catch (SOAPException e)
+ {
+ e.printStackTrace();
+ }
+
+ return true;
+ }
+
+ public boolean handleFault(SOAPMessageContext context)
+ {
+ boolean outbound = (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+ if (outbound)
+ {
+ log.debug("Direction=outbound");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println("Direction=outbound");
+ }
+ else
+ {
+ log.debug("Direction=inbound");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println("Direction=inbound");
+ }
+ if (!outbound)
+ {
+ try
+ {
+ SOAPMessage msg = ((SOAPMessageContext) context).getMessage();
+ JAXWS_Util.dumpSOAPMessage(msg, true);
+ if (whichHandler().equals("ServerSOAPHandler"))
+ JAXWS_Util.dumpSOAPMessage(msg, false);
+ if (context.getMessage().getSOAPBody().getFault() != null)
+ {
+ String detailName = null;
+ try
+ {
+ detailName = context.getMessage().getSOAPBody().getFault().getDetail().getFirstChild().getLocalName();
+ }
+ catch (Exception e)
+ {
+ }
+ checkFaultActions((String) context.get("op.name"), detailName, getAction(context));
+ }
+ }
+ catch (SOAPException e)
+ {
+ e.printStackTrace();
+ }
+ }
+ return true;
+ }
+
+ public Set<QName> getHeaders()
+ {
+ return null;
+ }
+
+ public void close(MessageContext messageContext)
+ {
+ }
+
+ protected SOAPBody getSOAPBody(SOAPMessageContext context) throws SOAPException
+ {
+ SOAPBody soapBody = context.getMessage().getSOAPBody();
+ return soapBody;
+ }
+
+ protected String getTo(SOAPMessageContext context) throws SOAPException
+ {
+ String to = null;
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_TO_QNAME);
+ if (iter.hasNext())
+ {
+ to = "invalid";
+ NodeList nodes = ((Element) iter.next()).getChildNodes();
+ for (int i = 0; i < nodes.getLength(); i++)
+ {
+ Node node = (Node) nodes.item(i);
+ return node.getNodeValue();
+ }
+ }
+ else
+ {
+ throw new AddressingHeaderException("WsaBaseSOAPHandler:getTo: Element not found:"
+ + W3CAddressingConstants.WSA_TO_QNAME);
+ }
+ return to;
+ }
+
+ protected String getReplyTo(SOAPMessageContext context) throws SOAPException
+ {
+ String replyTo = null;
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_REPLYTO_QNAME);
+ if (iter.hasNext())
+ {
+ replyTo = "invalid";
+ NodeList nodes = ((Element) iter.next()).getChildNodes();
+ for (int i = 0; i < nodes.getLength(); i++)
+ {
+ Node node = (Node) nodes.item(i);
+ if (node instanceof Text)
+ {
+ continue;
+ }
+ if (node.getLocalName().equals("Address")
+ && node.getNamespaceURI().equals(W3CAddressingConstants.WSA_NAMESPACE_NAME))
+ {
+ return node.getFirstChild().getNodeValue();
+ }
+ }
+ }
+ else
+ {
+ throw new AddressingHeaderException("WsaBaseSOAPHandler:getReplyTo: Element not found:"
+ + W3CAddressingConstants.WSA_REPLYTO_QNAME);
+ }
+ return replyTo;
+ }
+
+ protected String getRequiredMessageId(SOAPMessageContext context) throws SOAPException
+ {
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_MESSAGEID_QNAME);
+ if (!iter.hasNext())
+ {
+ throw new AddressingHeaderException("WsaBaseSOAPHandler:getRequiredMessageId: Element not found:"
+ + W3CAddressingConstants.WSA_MESSAGEID_QNAME);
+ }
+ Node node = (Node) iter.next();
+ String msgid = node.getFirstChild().getNodeValue();
+ return msgid;
+ }
+
+ protected String getMessageId(SOAPMessageContext context) throws SOAPException
+ {
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_MESSAGEID_QNAME);
+ if (!iter.hasNext())
+ {
+ throw new AddressingHeaderException("WsaBaseSOAPHandler:getMessageId: Element not found:"
+ + W3CAddressingConstants.WSA_MESSAGEID_QNAME);
+ }
+ Node node = (Node) iter.next();
+ String msgid = node.getFirstChild().getNodeValue();
+ return msgid;
+ }
+
+ protected String getRequiredRelationship(SOAPMessageContext context) throws SOAPException
+ {
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_RELATIONSHIPTYPE_QNAME);
+ if (!iter.hasNext())
+ {
+ throw new AddressingHeaderException("WsaBaseSOAPHandler:getRequiredRelationship: Element not found:"
+ + W3CAddressingConstants.WSA_RELATIONSHIPTYPE_QNAME);
+ }
+ Node node = (Node) iter.next();
+ String relationship = node.getFirstChild().getNodeValue();
+ return relationship;
+ }
+
+ protected String getRelationship(SOAPMessageContext context) throws SOAPException
+ {
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_RELATIONSHIPTYPE_QNAME);
+ if (!iter.hasNext())
+ {
+ throw new AddressingHeaderException("WsaBaseSOAPHandler:getRelationship: Element not found:"
+ + W3CAddressingConstants.WSA_RELATIONSHIPTYPE_QNAME);
+ }
+ Node node = (Node) iter.next();
+ String relationship = node.getFirstChild().getNodeValue();
+ return relationship;
+ }
+
+ protected String getRequiredRelatesTo(SOAPMessageContext context) throws SOAPException
+ {
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_RELATESTO_QNAME);
+ if (!iter.hasNext())
+ {
+ throw new AddressingHeaderException("WsaBaseSOAPHandler:getRequiredRelatesTo: Element not found:"
+ + W3CAddressingConstants.WSA_RELATESTO_QNAME);
+ }
+ Node node = (Node) iter.next();
+ String relationship = node.getFirstChild().getNodeValue();
+ return relationship;
+ }
+
+ protected String getRelatesTo(SOAPMessageContext context) throws SOAPException
+ {
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_RELATESTO_QNAME);
+ if (!iter.hasNext())
+ {
+ throw new AddressingHeaderException("WsaBaseSOAPHandler:getRelatesTo: Element not found:"
+ + W3CAddressingConstants.WSA_RELATESTO_QNAME);
+ }
+ Node node = (Node) iter.next();
+ String relationship = node.getFirstChild().getNodeValue();
+ return relationship;
+ }
+
+ protected String getActionDoesNotExist(SOAPMessageContext context) throws SOAPException
+ {
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_ACTION_QNAME);
+ if (!iter.hasNext())
+ {
+ return null;
+ }
+ Node node = (Node) iter.next();
+ String action = node.getFirstChild().getNodeValue();
+ return action;
+ }
+
+ protected String getAction(SOAPMessageContext context) throws SOAPException
+ {
+ String action = null;
+ SOAPMessage message = context.getMessage();
+ SOAPHeader header = message.getSOAPHeader();
+ Iterator iter = header.getChildElements(W3CAddressingConstants.WSA_ACTION_QNAME);
+ if (!iter.hasNext())
+ {
+ throw new AddressingHeaderException("WsaBaseSOAPHandler:getAction: Element not found:"
+ + W3CAddressingConstants.WSA_ACTION_QNAME);
+ }
+ Node node = (Node) iter.next();
+ action = node.getFirstChild().getNodeValue();
+ return action;
+ }
+
+ protected String getOperationName(SOAPBody soapBody) throws SOAPException
+ {
+ return soapBody.getFirstChild().getLocalName();
+ }
+
+ protected String getTestName(SOAPBody soapbody) throws SOAPException
+ {
+ String testName = null;
+ SOAPElement se = null;
+ Iterator i = soapbody.getChildElements();
+ if (i.hasNext())
+ {
+ se = (SOAPElement) i.next();
+ }
+ i = se.getChildElements();
+ while (i.hasNext())
+ {
+ se = (SOAPElement) i.next();
+ String elementName = se.getElementName().getLocalName();
+ Node node = (Node) se;
+ String elementValue = node.getFirstChild().getNodeValue();
+ if (elementName.equals("testName"))
+ {
+ testName = elementValue;
+ break;
+ }
+ }
+ return testName;
+ }
+
+ protected void checkFaultActions(String requestName, String detailName, String action)
+ {
+ }
+
+ protected void checkInboundAction(SOAPMessageContext context, String oper, String action)
+ {
+ };
+
+ protected void checkInboundTo(SOAPMessageContext context)
+ {
+ }
+
+ protected void checkInboundReplyTo(SOAPMessageContext context)
+ {
+ }
+
+ protected void checkInboundMessageId(SOAPMessageContext context)
+ {
+ }
+
+ protected void checkInboundRelationship(SOAPMessageContext context)
+ {
+ }
+
+ protected void checkInboundRelatesTo(SOAPMessageContext context)
+ {
+ }
+
+ protected void processOutboundMessage(SOAPMessageContext context, String oper, String testName)
+ {
+ }
+
+ protected void processInboundMessage(SOAPMessageContext context, String oper, String testName)
+ {
+ }
+
+ protected String whichHandler()
+ {
+ return "WsaBaseSOAPHandler";
+ }
+
+ protected void checkInboundToExist(SOAPMessageContext context)
+ {
+ String to = null;
+ try
+ {
+ to = getTo(context);
+ log.debug(whichHandler() + ".checkInboundToExist: [To=" + to + "]");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println(whichHandler() + ".checkInboundToExist: [To=" + to + "]");
+ }
+ catch (Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ if (to == null)
+ {
+ throw new AddressingPropertyException("wsa:To contains null");
+ }
+ if (to.equals("invalid"))
+ {
+ throw new AddressingPropertyException("wsa:To contains an invalid value");
+ }
+ if (to.equals(""))
+ {
+ throw new AddressingPropertyException("wsa:To contains an empty value");
+ }
+ }
+
+ protected void checkInboundRelatesToExist(SOAPMessageContext context)
+ {
+ String r = null;
+ try
+ {
+ r = getRelatesTo(context);
+ log.debug(whichHandler() + ".checkInboundRelatesToExist: [RelatesTo=" + r + "]");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println(whichHandler() + ".checkInboundRelatesToExist: [RelatesTo=" + r + "]");
+ }
+ catch (Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ if (r == null)
+ {
+ throw new AddressingPropertyException("wsa:RelatesTo contains null");
+ }
+ if (r.equals(""))
+ {
+ throw new AddressingPropertyException("wsa:RelatesTo contains an empty value");
+ }
+ }
+
+ protected void checkInboundMessageIdExist(SOAPMessageContext context)
+ {
+ String mid = null;
+ try
+ {
+ mid = getMessageId(context);
+ log.debug(whichHandler() + ".checkInboundMessageIdExist: [MessageId=" + mid + "]");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println(whichHandler() + ".checkInboundMessageIdExist: [MessageId=" + mid + "]");
+ }
+ catch (Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ if (mid == null)
+ {
+ throw new AddressingPropertyException("wsa:MessageId contains null");
+ }
+ if (mid.equals(""))
+ {
+ throw new AddressingPropertyException("wsa:MessageId contains an empty value");
+ }
+ }
+
+ protected void checkInboundReplyToExist(SOAPMessageContext context)
+ {
+ String to = null;
+ try
+ {
+ to = getReplyTo(context);
+ log.debug(whichHandler() + ".checkInboundReplyToExist: [ReplyTo=" + to + "]");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println(whichHandler() + ".checkInboundReplyToExist: [ReplyTo=" + to + "]");
+ }
+ catch (Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ if (to == null)
+ {
+ throw new AddressingPropertyException("wsa:ReplyTo contains null");
+ }
+ if (to.equals("invalid"))
+ {
+ throw new AddressingPropertyException("wsa:ReplyTo contains an invalid value");
+ }
+ if (to.equals(""))
+ {
+ throw new AddressingPropertyException("wsa:ReplyTo contains an empty value");
+ }
+ }
+
+ protected void checkActionDoesNotExist(String action)
+ {
+ log.debug(whichHandler() + ".checkActionDoesNotExist");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println(whichHandler() + ".checkActionDoesNotExist");
+ if (action != null)
+ {
+ throw new AddressingPropertyException("wsa:Action header exists (unexpected)");
+ }
+ }
+
+ protected void checkInboundToDoesNotExist(SOAPMessageContext context)
+ {
+ log.debug(whichHandler() + ".checkInboundToDoesNotExist");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println(whichHandler() + ".checkInboundToDoesNotExist");
+ String to = null;
+ boolean pass = false;
+ try
+ {
+ to = getTo(context);
+ }
+ catch (Exception e)
+ {
+ pass = true;
+ }
+ if (!pass)
+ throw new AddressingPropertyException("wsa:To header exists (unexpected)");
+ }
+
+ protected void checkInboundRelatesToDoesNotExist(SOAPMessageContext context)
+ {
+ log.debug(whichHandler() + ".checkInboundRelatesToDoesNotExist");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println(whichHandler() + ".checkInboundRelatesToDoesNotExist");
+ String r = null;
+ boolean pass = false;
+ try
+ {
+ r = getRelatesTo(context);
+ }
+ catch (Exception e)
+ {
+ pass = true;
+ }
+ if (!pass)
+ throw new AddressingPropertyException("wsa:RelatesTo header exists (unexpected)");
+ }
+
+ protected void checkInboundMessageIdDoesNotExist(SOAPMessageContext context)
+ {
+ log.debug(whichHandler() + ".checkInboundMessageIdDoesNotExist");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println(whichHandler() + ".checkInboundMessageIdDoesNotExist");
+ String mid = null;
+ boolean pass = false;
+ try
+ {
+ mid = getRequiredMessageId(context);
+ }
+ catch (Exception e)
+ {
+ pass = true;
+ }
+ if (!pass)
+ throw new AddressingPropertyException("wsa:MessageId header exists (unexpected)");
+ }
+
+ protected void checkInboundReplyToDoesNotExist(SOAPMessageContext context)
+ {
+ log.debug(whichHandler() + ".checkInboundReplyToDoesNotExist");
+ if (whichHandler().equals("ServerSOAPHandler"))
+ System.out.println(whichHandler() + ".checkInboundReplyToDoesNotExist");
+ String replyTo = null;
+ boolean pass = false;
+ try
+ {
+ replyTo = getReplyTo(context);
+ }
+ catch (Exception e)
+ {
+ pass = true;
+ }
+ if (!pass)
+ throw new AddressingPropertyException("wsa:ReplyTo header exists (unexpected)");
+ }
+
+ protected void assertAction(final String currentOperation, final String currentAction,
+ final String expectedOperation, final String expectedAction)
+ {
+ final boolean operationMatch = currentOperation.equals(expectedOperation);
+ final boolean actionMatch = currentAction.equals(expectedAction);
+
+ if (operationMatch && !actionMatch)
+ throwActionNotSupportedException(expectedAction, currentAction);
+ }
+
+ protected void assertFaultAction(final String currentRequestName, final String currentDetailName,
+ final String currentAction, final String expectedRequestName, final String expectedDetailName,
+ final String expectedAction)
+ {
+ final boolean requestNameMatch = currentRequestName.equals(expectedRequestName);
+ final boolean detailNameMatch = currentDetailName.equals(expectedDetailName);
+ final boolean actionMatch = currentAction.equals(expectedAction);
+
+ if (requestNameMatch && detailNameMatch && !actionMatch)
+ throwActionNotSupportedException(expectedAction, currentAction);
+ }
+
+ protected void throwActionNotSupportedException(final String expected, final String actual)
+ {
+ throw new ActionNotSupportedException("Expected: " + expected + ", Actual: " + actual);
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/ClientSOAPHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/ClientSOAPHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/ClientSOAPHandler.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985;
+
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.test.ws.jaxws.common.WsaBaseSOAPHandler;
+import org.jboss.test.ws.jaxws.jbws2985.common.TestConstants;
+
+public class ClientSOAPHandler extends WsaBaseSOAPHandler
+{
+ @Override
+ protected void checkInboundAction(final SOAPMessageContext context, final String currentOperation, final String currentAction)
+ {
+ this.assertAction(currentOperation, currentAction, "addNumbersNoActionResponse", TestConstants.ADD_NUMBERS_OUT_NOACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersEmptyActionResponse", TestConstants.ADD_NUMBERS_OUT_EMPTYACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersResponse", TestConstants.ADD_NUMBERS_OUT_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers2Response", TestConstants.ADD_NUMBERS2_OUT_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers3Response", TestConstants.ADD_NUMBERS3_OUT_ACTION);
+ }
+
+ @Override
+ protected void checkFaultActions(final String currentRequestName, final String currentDetailName, final String currentAction)
+ {
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault1", "AddNumbersException", TestConstants.ADD_NUMBERS_FAULT1_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault2", "AddNumbersException", TestConstants.ADD_NUMBERS_FAULT2_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault2", "TooBigNumbersException", TestConstants.ADD_NUMBERS_FAULT2_TOOBIGNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault3", "AddNumbersException", TestConstants.ADD_NUMBERS_FAULT3_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault3", "TooBigNumbersException", TestConstants.ADD_NUMBERS_FAULT3_TOOBIGNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault4", "AddNumbersException", TestConstants.ADD_NUMBERS_FAULT4_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault4", "TooBigNumbersException", TestConstants.ADD_NUMBERS_FAULT4_TOOBIGNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault5", "AddNumbersException", TestConstants.ADD_NUMBERS_FAULT5_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault5", "TooBigNumbersException", TestConstants.ADD_NUMBERS_FAULT5_TOOBIGNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault6", "AddNumbersException", TestConstants.ADD_NUMBERS_FAULT6_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault6", "TooBigNumbersException", TestConstants.ADD_NUMBERS_FAULT6_TOOBIGNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault7", "AddNumbersException", TestConstants.ADD_NUMBERS_FAULT7_ADDNUMBERS_ACTION);
+ this.assertFaultAction(currentRequestName, currentDetailName, currentAction, "addNumbersFault7", "TooBigNumbersException", TestConstants.ADD_NUMBERS_FAULT7_TOOBIGNUMBERS_ACTION);
+ }
+
+ @Override
+ protected String whichHandler()
+ {
+ return "ClientSOAPHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/JBWS2985TestCase.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/JBWS2985TestCase.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/JBWS2985TestCase.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,286 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985;
+
+import java.net.URL;
+
+import javax.xml.ws.WebServiceFeature;
+import javax.xml.ws.soap.AddressingFeature;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbers;
+import org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersException_Exception;
+import org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersService;
+import org.jboss.test.ws.jaxws.jbws2985.generated.TooBigNumbersException_Exception;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-2985] Ensure proper addressing action header.
+ *
+ * @author <a href="mailto:ropalka@redhat.com">Richard Opalka</a>
+ */
+public class JBWS2985TestCase extends JBossWSTest
+{
+ private static final WebServiceFeature[] enabledNotRequiredwsf = { new AddressingFeature(true, false) };
+ private static final WebServiceFeature[] disabledNotRequiredwsf = { new AddressingFeature(false, false) };
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JBWS2985TestCase.class, "jaxws-jbws2985.war");
+ }
+
+ AddNumbers portEnabled = null;
+ AddNumbers portDisabled = null;
+
+ public void setUp() throws Exception
+ {
+ URL wsdlURL = new URL("http://" + getServerHost() + ":8080/jaxws-jbws2985/AddNumbersService?wsdl");
+ AddNumbersService service = new AddNumbersService(wsdlURL);
+ portEnabled = (AddNumbers) service.getPort(AddNumbers.class, enabledNotRequiredwsf);
+ portDisabled = (AddNumbers) service.getPort(AddNumbers.class, disabledNotRequiredwsf);
+ }
+
+ public void testNoActionOnInputOutput() throws Exception
+ {
+ int result = portEnabled.addNumbersNoAction(10, 10);
+ if (result != 20)
+ {
+ throw new Exception("Expected result=20, got result=" + result);
+ }
+ }
+
+ public void testEmptyActionOnInputOutput() throws Exception
+ {
+ int result = portEnabled.addNumbersEmptyAction(10, 10);
+ if (result != 20)
+ {
+ throw new Exception("Expected result=20, got result=" + result);
+ }
+ }
+
+ public void testExplicitInputOutputActions1() throws Exception
+ {
+ int result = portEnabled.addNumbers(10, 10);
+ if (result != 20)
+ {
+ throw new Exception("Expected result=20, got result=" + result);
+ }
+ }
+
+ public void testExplicitInputOutputActions2() throws Exception
+ {
+ int result = portEnabled.addNumbers2(10, 10);
+ if (result != 20)
+ {
+ throw new Exception("Expected result=20, got result=" + result);
+ }
+ }
+
+ public void testDefaultOutputActionExplicitInputAction() throws Exception
+ {
+ int result = portEnabled.addNumbers3(10, 10);
+ if (result != 20)
+ {
+ throw new Exception("Expected result=20, got result=" + result);
+ }
+ }
+
+ public void testSendingWrongSOAPActionHTTPHeaderValue() throws Exception
+ {
+ int result = portEnabled.addNumbers4(10, 10);
+ if (result != 20)
+ {
+ throw new Exception("Expected result=20, got result=" + result);
+ }
+ }
+
+ public void testOneFaultExplicitAction() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault1(-10, 10);
+ fail();
+ }
+ catch (AddNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testTwoFaultsExplicitAction1() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault2(-10, 10);
+ fail();
+ }
+ catch (AddNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testTwoFaultsExplicitAction2() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault2(20, 10);
+ fail();
+ }
+ catch (TooBigNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testTwoFaultsExplicitAddNumbersFault3() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault3(-10, 10);
+ fail();
+ }
+ catch (AddNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testTwoFaultsDefaultTooBigNumbersFault3() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault3(20, 10);
+ fail();
+ }
+ catch (TooBigNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testTwoFaultsExplicitAddNumbersFault4() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault4(-10, 10);
+ fail();
+ }
+ catch (AddNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testTwoFaultsDefaultTooBigNumbersFault4() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault4(20, 10);
+ fail();
+ }
+ catch (TooBigNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testTwoFaultsDefaultAddNumbersFault5() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault5(-10, 10);
+ fail();
+ }
+ catch (AddNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testTwoFaultsExplicitTooBigNumbersFault5() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault5(20, 10);
+ fail();
+ }
+ catch (TooBigNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testOnlyFaultActionsBothExplicit1() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault6(-10, 10);
+ fail();
+ }
+ catch (AddNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testOnlyFaultActionsBothExplicit2() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault6(20, 10);
+ fail();
+ }
+ catch (TooBigNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testOnlyFaultActionsFault7BothEmpty1() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault7(-10, 10);
+ fail();
+ }
+ catch (AddNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+
+ public void testOnlyFaultActionsFault7BothEmpty2() throws Exception
+ {
+ try
+ {
+ portEnabled.addNumbersFault7(20, 10);
+ fail();
+ }
+ catch (TooBigNumbersException_Exception ex)
+ {
+ // expected
+ }
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/common/TestConstants.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/common/TestConstants.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/common/TestConstants.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.common;
+
+public class TestConstants {
+ public static final String ADD_NUMBERS_IN_NOACTION = "http://foobar.org/AddNumbers/addNumbersNoActionRequest";
+ public static final String ADD_NUMBERS_IN_EMPTYACTION = "http://foobar.org/AddNumbers/addNumbersEmptyActionRequest";
+ public static final String ADD_NUMBERS_IN_ACTION = "http://example.com/input";
+ public static final String ADD_NUMBERS2_IN_ACTION = "http://example.com/input2";
+ public static final String ADD_NUMBERS3_IN_ACTION = "http://example.com/input3";
+ public static final String ADD_NUMBERS_FAULT1_IN_ACTION = "finput1";
+ public static final String ADD_NUMBERS_FAULT2_IN_ACTION = "finput2";
+ public static final String ADD_NUMBERS_FAULT3_IN_ACTION = "finput3";
+ public static final String ADD_NUMBERS_FAULT4_IN_ACTION = "http://foobar.org/AddNumbers/addNumbersFault4Request";
+ public static final String ADD_NUMBERS_FAULT5_IN_ACTION = "http://foobar.org/AddNumbers/addNumbersFault5Request";
+ public static final String ADD_NUMBERS_FAULT6_IN_ACTION = "http://foobar.org/AddNumbers/addNumbersFault6Request";
+ public static final String ADD_NUMBERS_FAULT7_IN_ACTION = "http://foobar.org/AddNumbers/addNumbersFault7Request";
+
+ public static final String ADD_NUMBERS_OUT_NOACTION = "http://foobar.org/AddNumbers/addNumbersNoActionResponse";
+ public static final String ADD_NUMBERS_OUT_EMPTYACTION = "http://foobar.org/AddNumbers/addNumbersEmptyActionResponse";
+ public static final String ADD_NUMBERS_OUT_ACTION = "http://example.com/output";
+ public static final String ADD_NUMBERS2_OUT_ACTION = "http://example.com/output2";
+ public static final String ADD_NUMBERS3_OUT_ACTION = "http://foobar.org/AddNumbers/addNumbers3Response";
+ public static final String ADD_NUMBERS_FAULT1_ADDNUMBERS_ACTION = "http://fault1";
+ public static final String ADD_NUMBERS_FAULT2_ADDNUMBERS_ACTION = "http://fault2/addnumbers";
+ public static final String ADD_NUMBERS_FAULT2_TOOBIGNUMBERS_ACTION = "http://fault2/toobignumbers";
+ public static final String ADD_NUMBERS_FAULT3_ADDNUMBERS_ACTION = "http://fault3/addnumbers";
+ public static final String ADD_NUMBERS_FAULT3_TOOBIGNUMBERS_ACTION = "http://foobar.org/AddNumbers/addNumbersFault3/Fault/TooBigNumbersException";
+ public static final String ADD_NUMBERS_FAULT4_ADDNUMBERS_ACTION = "http://fault4/addnumbers";
+ public static final String ADD_NUMBERS_FAULT4_TOOBIGNUMBERS_ACTION = "http://foobar.org/AddNumbers/addNumbersFault4/Fault/TooBigNumbersException";
+ public static final String ADD_NUMBERS_FAULT5_ADDNUMBERS_ACTION = "http://foobar.org/AddNumbers/addNumbersFault5/Fault/AddNumbersException";
+ public static final String ADD_NUMBERS_FAULT5_TOOBIGNUMBERS_ACTION = "http://fault5/toobignumbers";
+ public static final String ADD_NUMBERS_FAULT6_ADDNUMBERS_ACTION = "http://fault6/addnumbers";
+ public static final String ADD_NUMBERS_FAULT6_TOOBIGNUMBERS_ACTION = "http://fault6/toobignumbers";
+ public static final String ADD_NUMBERS_FAULT7_ADDNUMBERS_ACTION = "http://foobar.org/AddNumbers/addNumbersFault7/Fault/AddNumbersException";
+ public static final String ADD_NUMBERS_FAULT7_TOOBIGNUMBERS_ACTION = "http://foobar.org/AddNumbers/addNumbersFault7/Fault/TooBigNumbersException";
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,361 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlSeeAlso;
+import javax.xml.ws.Action;
+import javax.xml.ws.FaultAction;
+import javax.xml.ws.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebService(name = "AddNumbers", targetNamespace = "http://foobar.org/")
+@HandlerChain(file = "AddNumbers_handler.xml")
+@XmlSeeAlso({
+ ObjectFactory.class
+})
+public interface AddNumbers {
+
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ */
+ @WebMethod(action = "http://example.com/input")
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbers", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbers_Type")
+ @ResponseWrapper(localName = "addNumbersResponse", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersResponse")
+ @Action(input = "http://example.com/input", output = "http://example.com/output", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbers/Fault/AddNumbersException")
+ })
+ public int addNumbers(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbers2", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbers2")
+ @ResponseWrapper(localName = "addNumbers2Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbers2Response")
+ @Action(input = "http://example.com/input2", output = "http://example.com/output2", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbers2/Fault/AddNumbersException")
+ })
+ public int addNumbers2(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ */
+ @WebMethod(action = "http://example.com/input3")
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbers3", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbers3")
+ @ResponseWrapper(localName = "addNumbers3Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbers3Response")
+ @Action(input = "http://example.com/input3", output = "http://foobar.org/AddNumbers/addNumbers3Response", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbers3/Fault/AddNumbersException")
+ })
+ public int addNumbers3(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbers4", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbers4")
+ @ResponseWrapper(localName = "addNumbers4Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbers4Response")
+ @Action(input = "http://example.com/input4", output = "http://foobar.org/AddNumbers/addNumbers4Response", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbers4/Fault/AddNumbersException")
+ })
+ public int addNumbers4(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbersEmptyAction", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersEmptyAction")
+ @ResponseWrapper(localName = "addNumbersEmptyActionResponse", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersEmptyActionResponse")
+ @Action(input = "http://foobar.org/AddNumbers/addNumbersEmptyActionRequest", output = "http://foobar.org/AddNumbers/addNumbersEmptyActionResponse", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbersEmptyAction/Fault/AddNumbersException")
+ })
+ public int addNumbersEmptyAction(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbersFault1", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault1")
+ @ResponseWrapper(localName = "addNumbersFault1Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault1Response")
+ @Action(input = "finput1", output = "foutput1", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://fault1")
+ })
+ public int addNumbersFault1(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ * @throws TooBigNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbersFault2", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault2")
+ @ResponseWrapper(localName = "addNumbersFault2Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault2Response")
+ @Action(input = "finput2", output = "foutput2", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://fault2/addnumbers"),
+ @FaultAction(className = TooBigNumbersException_Exception.class, value = "http://fault2/toobignumbers")
+ })
+ public int addNumbersFault2(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception, TooBigNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ * @throws TooBigNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbersFault3", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault3")
+ @ResponseWrapper(localName = "addNumbersFault3Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault3Response")
+ @Action(input = "finput3", output = "foutput3", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://fault3/addnumbers"),
+ @FaultAction(className = TooBigNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbersFault3/Fault/TooBigNumbersException")
+ })
+ public int addNumbersFault3(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception, TooBigNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ * @throws TooBigNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbersFault4", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault4")
+ @ResponseWrapper(localName = "addNumbersFault4Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault4Response")
+ @Action(input = "http://foobar.org/AddNumbers/addNumbersFault4Request", output = "http://foobar.org/AddNumbers/addNumbersFault4Response", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://fault4/addnumbers"),
+ @FaultAction(className = TooBigNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbersFault4/Fault/TooBigNumbersException")
+ })
+ public int addNumbersFault4(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception, TooBigNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ * @throws TooBigNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbersFault5", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault5")
+ @ResponseWrapper(localName = "addNumbersFault5Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault5Response")
+ @Action(input = "http://foobar.org/AddNumbers/addNumbersFault5Request", output = "http://foobar.org/AddNumbers/addNumbersFault5Response", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbersFault5/Fault/AddNumbersException"),
+ @FaultAction(className = TooBigNumbersException_Exception.class, value = "http://fault5/toobignumbers")
+ })
+ public int addNumbersFault5(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception, TooBigNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ * @throws TooBigNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbersFault6", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault6")
+ @ResponseWrapper(localName = "addNumbersFault6Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault6Response")
+ @Action(input = "http://foobar.org/AddNumbers/addNumbersFault6Request", output = "http://foobar.org/AddNumbers/addNumbersFault6Response", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://fault6/addnumbers"),
+ @FaultAction(className = TooBigNumbersException_Exception.class, value = "http://fault6/toobignumbers")
+ })
+ public int addNumbersFault6(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception, TooBigNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ * @throws TooBigNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbersFault7", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault7")
+ @ResponseWrapper(localName = "addNumbersFault7Response", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersFault7Response")
+ @Action(input = "http://foobar.org/AddNumbers/addNumbersFault7Request", output = "http://foobar.org/AddNumbers/addNumbersFault7Response", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbersFault7/Fault/AddNumbersException"),
+ @FaultAction(className = TooBigNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbersFault7/Fault/TooBigNumbersException")
+ })
+ public int addNumbersFault7(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception, TooBigNumbersException_Exception
+ ;
+
+ /**
+ *
+ * @param arg1
+ * @param arg0
+ * @return
+ * returns int
+ * @throws AddNumbersException_Exception
+ */
+ @WebMethod
+ @WebResult(targetNamespace = "")
+ @RequestWrapper(localName = "addNumbersNoAction", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersNoAction")
+ @ResponseWrapper(localName = "addNumbersNoActionResponse", targetNamespace = "http://foobar.org/", className = "org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersNoActionResponse")
+ @Action(input = "http://foobar.org/AddNumbers/addNumbersNoActionRequest", output = "http://foobar.org/AddNumbers/addNumbersNoActionResponse", fault = {
+ @FaultAction(className = AddNumbersException_Exception.class, value = "http://foobar.org/AddNumbers/addNumbersNoAction/Fault/AddNumbersException")
+ })
+ public int addNumbersNoAction(
+ @WebParam(name = "arg0", targetNamespace = "")
+ int arg0,
+ @WebParam(name = "arg1", targetNamespace = "")
+ int arg1)
+ throws AddNumbersException_Exception
+ ;
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers2.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers2.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers2.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbers2 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers2">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers2", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbers2 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers2Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers2Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers2Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbers2Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers2Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers2Response", propOrder = {
+ "_return"
+})
+public class AddNumbers2Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers3.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers3.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers3.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbers3 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers3">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers3", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbers3 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers3Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers3Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers3Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbers3Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers3Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers3Response", propOrder = {
+ "_return"
+})
+public class AddNumbers3Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers4.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers4.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers4.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbers4 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers4">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers4", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbers4 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers4Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers4Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers4Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbers4Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers4Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers4Response", propOrder = {
+ "_return"
+})
+public class AddNumbers4Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersEmptyAction.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersEmptyAction.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersEmptyAction.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersEmptyAction complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersEmptyAction">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersEmptyAction", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbersEmptyAction {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersEmptyActionResponse.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersEmptyActionResponse.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersEmptyActionResponse.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersEmptyActionResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersEmptyActionResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersEmptyActionResponse", propOrder = {
+ "_return"
+})
+public class AddNumbersEmptyActionResponse {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersException.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersException.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersException.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for AddNumbersException complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="AddNumbersException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "AddNumbersException", propOrder = {
+ "detail",
+ "message"
+})
+public class AddNumbersException {
+
+ protected String detail;
+ protected String message;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDetail() {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDetail(String value) {
+ this.detail = 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: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersException_Exception.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersException_Exception.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersException_Exception.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "AddNumbersException", targetNamespace = "http://foobar.org/")
+public class AddNumbersException_Exception
+ extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private AddNumbersException faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public AddNumbersException_Exception(String message, AddNumbersException faultInfo) {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public AddNumbersException_Exception(String message, AddNumbersException faultInfo, Throwable cause) {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws2985.generated.AddNumbersException
+ */
+ public AddNumbersException getFaultInfo() {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault1.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault1.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault1.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault1 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault1">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault1", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbersFault1 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault1Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault1Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault1Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault1Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault1Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault1Response", propOrder = {
+ "_return"
+})
+public class AddNumbersFault1Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault2.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault2.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault2.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault2 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault2">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault2", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbersFault2 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault2Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault2Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault2Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault2Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault2Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault2Response", propOrder = {
+ "_return"
+})
+public class AddNumbersFault2Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault3.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault3.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault3.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault3 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault3">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault3", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbersFault3 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault3Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault3Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault3Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault3Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault3Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault3Response", propOrder = {
+ "_return"
+})
+public class AddNumbersFault3Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault4.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault4.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault4.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault4 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault4">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault4", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbersFault4 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault4Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault4Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault4Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault4Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault4Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault4Response", propOrder = {
+ "_return"
+})
+public class AddNumbersFault4Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault5.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault5.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault5.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault5 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault5">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault5", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbersFault5 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault5Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault5Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault5Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault5Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault5Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault5Response", propOrder = {
+ "_return"
+})
+public class AddNumbersFault5Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault6.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault6.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault6.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault6 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault6">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault6", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbersFault6 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault6Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault6Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault6Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault6Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault6Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault6Response", propOrder = {
+ "_return"
+})
+public class AddNumbersFault6Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault7.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault7.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault7.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault7 complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault7">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault7", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbersFault7 {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault7Response.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault7Response.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersFault7Response.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersFault7Response complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersFault7Response">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersFault7Response", propOrder = {
+ "_return"
+})
+public class AddNumbersFault7Response {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersNoAction.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersNoAction.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersNoAction.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersNoAction complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersNoAction">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersNoAction", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbersNoAction {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersNoActionResponse.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersNoActionResponse.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersNoActionResponse.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersNoActionResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersNoActionResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersNoActionResponse", propOrder = {
+ "_return"
+})
+public class AddNumbersNoActionResponse {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersResponse.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersResponse.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersResponse.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbersResponse complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbersResponse">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="return" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbersResponse", propOrder = {
+ "_return"
+})
+public class AddNumbersResponse {
+
+ @XmlElement(name = "return")
+ protected int _return;
+
+ /**
+ * Gets the value of the return property.
+ *
+ */
+ public int getReturn() {
+ return _return;
+ }
+
+ /**
+ * Sets the value of the return property.
+ *
+ */
+ public void setReturn(int value) {
+ this._return = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersService.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersService.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersService.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,116 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.jws.HandlerChain;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.WebServiceFeature;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebServiceClient(name = "AddNumbersService", targetNamespace = "http://foobar.org/", wsdlLocation = "file:/opt/svn/jbossas/trunk/build/target/jboss-6.0.0-SNAPSHOT/bin/AddNumbersService.wsdl")
+@HandlerChain(file = "AddNumbersService_handler.xml")
+public class AddNumbersService
+ extends Service
+{
+
+ private final static URL ADDNUMBERSSERVICE_WSDL_LOCATION;
+ private final static WebServiceException ADDNUMBERSSERVICE_EXCEPTION;
+ private final static QName ADDNUMBERSSERVICE_QNAME = new QName("http://foobar.org/", "AddNumbersService");
+
+ static {
+ URL url = null;
+ WebServiceException e = null;
+ try {
+ url = new URL("file:/opt/svn/jbossas/trunk/build/target/jboss-6.0.0-SNAPSHOT/bin/AddNumbersService.wsdl");
+ } catch (MalformedURLException ex) {
+ e = new WebServiceException(ex);
+ }
+ ADDNUMBERSSERVICE_WSDL_LOCATION = url;
+ ADDNUMBERSSERVICE_EXCEPTION = e;
+ }
+
+ public AddNumbersService() {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE_QNAME);
+ }
+
+ public AddNumbersService(WebServiceFeature... features) {
+ super(__getWsdlLocation(), ADDNUMBERSSERVICE_QNAME, features);
+ }
+
+ public AddNumbersService(URL wsdlLocation) {
+ super(wsdlLocation, ADDNUMBERSSERVICE_QNAME);
+ }
+
+ public AddNumbersService(URL wsdlLocation, WebServiceFeature... features) {
+ super(wsdlLocation, ADDNUMBERSSERVICE_QNAME, features);
+ }
+
+ public AddNumbersService(URL wsdlLocation, QName serviceName) {
+ super(wsdlLocation, serviceName);
+ }
+
+ public AddNumbersService(URL wsdlLocation, QName serviceName, WebServiceFeature... features) {
+ super(wsdlLocation, serviceName, features);
+ }
+
+ /**
+ *
+ * @return
+ * returns AddNumbers
+ */
+ @WebEndpoint(name = "AddNumbersPort")
+ public AddNumbers getAddNumbersPort() {
+ return super.getPort(new QName("http://foobar.org/", "AddNumbersPort"), AddNumbers.class);
+ }
+
+ /**
+ *
+ * @param features
+ * A list of {@link javax.xml.ws.WebServiceFeature} to configure on the proxy. Supported features not in the <code>features</code> parameter will have their default values.
+ * @return
+ * returns AddNumbers
+ */
+ @WebEndpoint(name = "AddNumbersPort")
+ public AddNumbers getAddNumbersPort(WebServiceFeature... features) {
+ return super.getPort(new QName("http://foobar.org/", "AddNumbersPort"), AddNumbers.class, features);
+ }
+
+ private static URL __getWsdlLocation() {
+ if (ADDNUMBERSSERVICE_EXCEPTION!= null) {
+ throw ADDNUMBERSSERVICE_EXCEPTION;
+ }
+ return ADDNUMBERSSERVICE_WSDL_LOCATION;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersService_handler.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersService_handler.xml (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbersService_handler.xml 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?><javaee:handler-chains xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+ <javaee:handler-chain>
+ <javaee:port-name-pattern xmlns:ns2="http://foobar.org/">ns2:AddNumbersPort</javaee:port-name-pattern>
+ <javaee:handler>
+ <javaee:handler-name>ClientSOAPHandler</javaee:handler-name>
+ <javaee:handler-class>org.jboss.test.ws.jaxws.jbws2985.ClientSOAPHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+</javaee:handler-chains>
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers_Type.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers_Type.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers_Type.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,91 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for addNumbers complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="addNumbers">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="arg0" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * <element name="arg1" type="{http://www.w3.org/2001/XMLSchema}int"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "addNumbers", propOrder = {
+ "arg0",
+ "arg1"
+})
+public class AddNumbers_Type {
+
+ protected int arg0;
+ protected int arg1;
+
+ /**
+ * Gets the value of the arg0 property.
+ *
+ */
+ public int getArg0() {
+ return arg0;
+ }
+
+ /**
+ * Sets the value of the arg0 property.
+ *
+ */
+ public void setArg0(int value) {
+ this.arg0 = value;
+ }
+
+ /**
+ * Gets the value of the arg1 property.
+ *
+ */
+ public int getArg1() {
+ return arg1;
+ }
+
+ /**
+ * Sets the value of the arg1 property.
+ *
+ */
+ public void setArg1(int value) {
+ this.arg1 = value;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers_handler.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers_handler.xml (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/AddNumbers_handler.xml 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?><javaee:handler-chains xmlns:javaee="http://java.sun.com/xml/ns/javaee">
+ <javaee:handler-chain>
+ <javaee:port-name-pattern xmlns:ns2="http://foobar.org/">ns2:AddNumbersPort</javaee:port-name-pattern>
+ <javaee:handler>
+ <javaee:handler-name>ClientSOAPHandler</javaee:handler-name>
+ <javaee:handler-class>org.jboss.test.ws.jaxws.jbws2985.ClientSOAPHandler</javaee:handler-class>
+ </javaee:handler>
+ </javaee:handler-chain>
+</javaee:handler-chains>
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/ObjectFactory.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/ObjectFactory.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/ObjectFactory.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,559 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.JAXBElement;
+import javax.xml.bind.annotation.XmlElementDecl;
+import javax.xml.bind.annotation.XmlRegistry;
+import javax.xml.namespace.QName;
+
+
+/**
+ * This object contains factory methods for each
+ * Java content interface and Java element interface
+ * generated in the org.jboss.test.ws.jaxws.jbws2985.generated package.
+ * <p>An ObjectFactory allows you to programatically
+ * construct new instances of the Java representation
+ * for XML content. The Java representation of XML
+ * content can consist of schema derived interfaces
+ * and classes representing the binding of schema
+ * type definitions, element declarations and model
+ * groups. Factory methods for each of these are
+ * provided in this class.
+ *
+ */
+@XmlRegistry
+public class ObjectFactory {
+
+ private final static QName _AddNumbersFault7_QNAME = new QName("http://foobar.org/", "addNumbersFault7");
+ private final static QName _TooBigNumbersException_QNAME = new QName("http://foobar.org/", "TooBigNumbersException");
+ private final static QName _AddNumbersFault5_QNAME = new QName("http://foobar.org/", "addNumbersFault5");
+ private final static QName _AddNumbersFault6_QNAME = new QName("http://foobar.org/", "addNumbersFault6");
+ private final static QName _AddNumbersNoActionResponse_QNAME = new QName("http://foobar.org/", "addNumbersNoActionResponse");
+ private final static QName _AddNumbersFault3_QNAME = new QName("http://foobar.org/", "addNumbersFault3");
+ private final static QName _AddNumbersFault4_QNAME = new QName("http://foobar.org/", "addNumbersFault4");
+ private final static QName _AddNumbersFault1_QNAME = new QName("http://foobar.org/", "addNumbersFault1");
+ private final static QName _AddNumbersFault4Response_QNAME = new QName("http://foobar.org/", "addNumbersFault4Response");
+ private final static QName _AddNumbersFault2_QNAME = new QName("http://foobar.org/", "addNumbersFault2");
+ private final static QName _AddNumbers2_QNAME = new QName("http://foobar.org/", "addNumbers2");
+ private final static QName _AddNumbersException_QNAME = new QName("http://foobar.org/", "AddNumbersException");
+ private final static QName _AddNumbers4_QNAME = new QName("http://foobar.org/", "addNumbers4");
+ private final static QName _AddNumbers3_QNAME = new QName("http://foobar.org/", "addNumbers3");
+ private final static QName _AddNumbersFault1Response_QNAME = new QName("http://foobar.org/", "addNumbersFault1Response");
+ private final static QName _AddNumbersFault5Response_QNAME = new QName("http://foobar.org/", "addNumbersFault5Response");
+ private final static QName _AddNumbers_QNAME = new QName("http://foobar.org/", "addNumbers");
+ private final static QName _AddNumbers2Response_QNAME = new QName("http://foobar.org/", "addNumbers2Response");
+ private final static QName _AddNumbersFault6Response_QNAME = new QName("http://foobar.org/", "addNumbersFault6Response");
+ private final static QName _AddNumbersResponse_QNAME = new QName("http://foobar.org/", "addNumbersResponse");
+ private final static QName _AddNumbersEmptyActionResponse_QNAME = new QName("http://foobar.org/", "addNumbersEmptyActionResponse");
+ private final static QName _AddNumbers4Response_QNAME = new QName("http://foobar.org/", "addNumbers4Response");
+ private final static QName _AddNumbersNoAction_QNAME = new QName("http://foobar.org/", "addNumbersNoAction");
+ private final static QName _AddNumbersFault7Response_QNAME = new QName("http://foobar.org/", "addNumbersFault7Response");
+ private final static QName _AddNumbersEmptyAction_QNAME = new QName("http://foobar.org/", "addNumbersEmptyAction");
+ private final static QName _AddNumbers3Response_QNAME = new QName("http://foobar.org/", "addNumbers3Response");
+ private final static QName _AddNumbersFault3Response_QNAME = new QName("http://foobar.org/", "addNumbersFault3Response");
+ private final static QName _AddNumbersFault2Response_QNAME = new QName("http://foobar.org/", "addNumbersFault2Response");
+
+ /**
+ * Create a new ObjectFactory that can be used to create new instances of schema derived classes for package: org.jboss.test.ws.jaxws.jbws2985.generated
+ *
+ */
+ public ObjectFactory() {
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersResponse }
+ *
+ */
+ public AddNumbersResponse createAddNumbersResponse() {
+ return new AddNumbersResponse();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault3 }
+ *
+ */
+ public AddNumbersFault3 createAddNumbersFault3() {
+ return new AddNumbersFault3();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersNoAction }
+ *
+ */
+ public AddNumbersNoAction createAddNumbersNoAction() {
+ return new AddNumbersNoAction();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault2 }
+ *
+ */
+ public AddNumbersFault2 createAddNumbersFault2() {
+ return new AddNumbersFault2();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersNoActionResponse }
+ *
+ */
+ public AddNumbersNoActionResponse createAddNumbersNoActionResponse() {
+ return new AddNumbersNoActionResponse();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersEmptyAction }
+ *
+ */
+ public AddNumbersEmptyAction createAddNumbersEmptyAction() {
+ return new AddNumbersEmptyAction();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers2 }
+ *
+ */
+ public AddNumbers2 createAddNumbers2() {
+ return new AddNumbers2();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault1Response }
+ *
+ */
+ public AddNumbersFault1Response createAddNumbersFault1Response() {
+ return new AddNumbersFault1Response();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault7 }
+ *
+ */
+ public AddNumbersFault7 createAddNumbersFault7() {
+ return new AddNumbersFault7();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault6Response }
+ *
+ */
+ public AddNumbersFault6Response createAddNumbersFault6Response() {
+ return new AddNumbersFault6Response();
+ }
+
+ /**
+ * Create an instance of {@link TooBigNumbersException }
+ *
+ */
+ public TooBigNumbersException createTooBigNumbersException() {
+ return new TooBigNumbersException();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault5Response }
+ *
+ */
+ public AddNumbersFault5Response createAddNumbersFault5Response() {
+ return new AddNumbersFault5Response();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault7Response }
+ *
+ */
+ public AddNumbersFault7Response createAddNumbersFault7Response() {
+ return new AddNumbersFault7Response();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers3 }
+ *
+ */
+ public AddNumbers3 createAddNumbers3() {
+ return new AddNumbers3();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers3Response }
+ *
+ */
+ public AddNumbers3Response createAddNumbers3Response() {
+ return new AddNumbers3Response();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault1 }
+ *
+ */
+ public AddNumbersFault1 createAddNumbersFault1() {
+ return new AddNumbersFault1();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault3Response }
+ *
+ */
+ public AddNumbersFault3Response createAddNumbersFault3Response() {
+ return new AddNumbersFault3Response();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersException }
+ *
+ */
+ public AddNumbersException createAddNumbersException() {
+ return new AddNumbersException();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers_Type }
+ *
+ */
+ public AddNumbers_Type createAddNumbers_Type() {
+ return new AddNumbers_Type();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault5 }
+ *
+ */
+ public AddNumbersFault5 createAddNumbersFault5() {
+ return new AddNumbersFault5();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers4Response }
+ *
+ */
+ public AddNumbers4Response createAddNumbers4Response() {
+ return new AddNumbers4Response();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault2Response }
+ *
+ */
+ public AddNumbersFault2Response createAddNumbersFault2Response() {
+ return new AddNumbersFault2Response();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers4 }
+ *
+ */
+ public AddNumbers4 createAddNumbers4() {
+ return new AddNumbers4();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault4 }
+ *
+ */
+ public AddNumbersFault4 createAddNumbersFault4() {
+ return new AddNumbersFault4();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault6 }
+ *
+ */
+ public AddNumbersFault6 createAddNumbersFault6() {
+ return new AddNumbersFault6();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbers2Response }
+ *
+ */
+ public AddNumbers2Response createAddNumbers2Response() {
+ return new AddNumbers2Response();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersFault4Response }
+ *
+ */
+ public AddNumbersFault4Response createAddNumbersFault4Response() {
+ return new AddNumbersFault4Response();
+ }
+
+ /**
+ * Create an instance of {@link AddNumbersEmptyActionResponse }
+ *
+ */
+ public AddNumbersEmptyActionResponse createAddNumbersEmptyActionResponse() {
+ return new AddNumbersEmptyActionResponse();
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault7 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault7")
+ public JAXBElement<AddNumbersFault7> createAddNumbersFault7(AddNumbersFault7 value) {
+ return new JAXBElement<AddNumbersFault7>(_AddNumbersFault7_QNAME, AddNumbersFault7 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link TooBigNumbersException }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "TooBigNumbersException")
+ public JAXBElement<TooBigNumbersException> createTooBigNumbersException(TooBigNumbersException value) {
+ return new JAXBElement<TooBigNumbersException>(_TooBigNumbersException_QNAME, TooBigNumbersException.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault5 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault5")
+ public JAXBElement<AddNumbersFault5> createAddNumbersFault5(AddNumbersFault5 value) {
+ return new JAXBElement<AddNumbersFault5>(_AddNumbersFault5_QNAME, AddNumbersFault5 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault6 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault6")
+ public JAXBElement<AddNumbersFault6> createAddNumbersFault6(AddNumbersFault6 value) {
+ return new JAXBElement<AddNumbersFault6>(_AddNumbersFault6_QNAME, AddNumbersFault6 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersNoActionResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersNoActionResponse")
+ public JAXBElement<AddNumbersNoActionResponse> createAddNumbersNoActionResponse(AddNumbersNoActionResponse value) {
+ return new JAXBElement<AddNumbersNoActionResponse>(_AddNumbersNoActionResponse_QNAME, AddNumbersNoActionResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault3 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault3")
+ public JAXBElement<AddNumbersFault3> createAddNumbersFault3(AddNumbersFault3 value) {
+ return new JAXBElement<AddNumbersFault3>(_AddNumbersFault3_QNAME, AddNumbersFault3 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault4 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault4")
+ public JAXBElement<AddNumbersFault4> createAddNumbersFault4(AddNumbersFault4 value) {
+ return new JAXBElement<AddNumbersFault4>(_AddNumbersFault4_QNAME, AddNumbersFault4 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault1 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault1")
+ public JAXBElement<AddNumbersFault1> createAddNumbersFault1(AddNumbersFault1 value) {
+ return new JAXBElement<AddNumbersFault1>(_AddNumbersFault1_QNAME, AddNumbersFault1 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault4Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault4Response")
+ public JAXBElement<AddNumbersFault4Response> createAddNumbersFault4Response(AddNumbersFault4Response value) {
+ return new JAXBElement<AddNumbersFault4Response>(_AddNumbersFault4Response_QNAME, AddNumbersFault4Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault2 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault2")
+ public JAXBElement<AddNumbersFault2> createAddNumbersFault2(AddNumbersFault2 value) {
+ return new JAXBElement<AddNumbersFault2>(_AddNumbersFault2_QNAME, AddNumbersFault2 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers2 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbers2")
+ public JAXBElement<AddNumbers2> createAddNumbers2(AddNumbers2 value) {
+ return new JAXBElement<AddNumbers2>(_AddNumbers2_QNAME, AddNumbers2 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersException }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "AddNumbersException")
+ public JAXBElement<AddNumbersException> createAddNumbersException(AddNumbersException value) {
+ return new JAXBElement<AddNumbersException>(_AddNumbersException_QNAME, AddNumbersException.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers4 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbers4")
+ public JAXBElement<AddNumbers4> createAddNumbers4(AddNumbers4 value) {
+ return new JAXBElement<AddNumbers4>(_AddNumbers4_QNAME, AddNumbers4 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers3 }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbers3")
+ public JAXBElement<AddNumbers3> createAddNumbers3(AddNumbers3 value) {
+ return new JAXBElement<AddNumbers3>(_AddNumbers3_QNAME, AddNumbers3 .class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault1Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault1Response")
+ public JAXBElement<AddNumbersFault1Response> createAddNumbersFault1Response(AddNumbersFault1Response value) {
+ return new JAXBElement<AddNumbersFault1Response>(_AddNumbersFault1Response_QNAME, AddNumbersFault1Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault5Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault5Response")
+ public JAXBElement<AddNumbersFault5Response> createAddNumbersFault5Response(AddNumbersFault5Response value) {
+ return new JAXBElement<AddNumbersFault5Response>(_AddNumbersFault5Response_QNAME, AddNumbersFault5Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers_Type }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbers")
+ public JAXBElement<AddNumbers_Type> createAddNumbers(AddNumbers_Type value) {
+ return new JAXBElement<AddNumbers_Type>(_AddNumbers_QNAME, AddNumbers_Type.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers2Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbers2Response")
+ public JAXBElement<AddNumbers2Response> createAddNumbers2Response(AddNumbers2Response value) {
+ return new JAXBElement<AddNumbers2Response>(_AddNumbers2Response_QNAME, AddNumbers2Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault6Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault6Response")
+ public JAXBElement<AddNumbersFault6Response> createAddNumbersFault6Response(AddNumbersFault6Response value) {
+ return new JAXBElement<AddNumbersFault6Response>(_AddNumbersFault6Response_QNAME, AddNumbersFault6Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersResponse")
+ public JAXBElement<AddNumbersResponse> createAddNumbersResponse(AddNumbersResponse value) {
+ return new JAXBElement<AddNumbersResponse>(_AddNumbersResponse_QNAME, AddNumbersResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersEmptyActionResponse }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersEmptyActionResponse")
+ public JAXBElement<AddNumbersEmptyActionResponse> createAddNumbersEmptyActionResponse(AddNumbersEmptyActionResponse value) {
+ return new JAXBElement<AddNumbersEmptyActionResponse>(_AddNumbersEmptyActionResponse_QNAME, AddNumbersEmptyActionResponse.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers4Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbers4Response")
+ public JAXBElement<AddNumbers4Response> createAddNumbers4Response(AddNumbers4Response value) {
+ return new JAXBElement<AddNumbers4Response>(_AddNumbers4Response_QNAME, AddNumbers4Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersNoAction }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersNoAction")
+ public JAXBElement<AddNumbersNoAction> createAddNumbersNoAction(AddNumbersNoAction value) {
+ return new JAXBElement<AddNumbersNoAction>(_AddNumbersNoAction_QNAME, AddNumbersNoAction.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault7Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault7Response")
+ public JAXBElement<AddNumbersFault7Response> createAddNumbersFault7Response(AddNumbersFault7Response value) {
+ return new JAXBElement<AddNumbersFault7Response>(_AddNumbersFault7Response_QNAME, AddNumbersFault7Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersEmptyAction }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersEmptyAction")
+ public JAXBElement<AddNumbersEmptyAction> createAddNumbersEmptyAction(AddNumbersEmptyAction value) {
+ return new JAXBElement<AddNumbersEmptyAction>(_AddNumbersEmptyAction_QNAME, AddNumbersEmptyAction.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbers3Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbers3Response")
+ public JAXBElement<AddNumbers3Response> createAddNumbers3Response(AddNumbers3Response value) {
+ return new JAXBElement<AddNumbers3Response>(_AddNumbers3Response_QNAME, AddNumbers3Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault3Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault3Response")
+ public JAXBElement<AddNumbersFault3Response> createAddNumbersFault3Response(AddNumbersFault3Response value) {
+ return new JAXBElement<AddNumbersFault3Response>(_AddNumbersFault3Response_QNAME, AddNumbersFault3Response.class, null, value);
+ }
+
+ /**
+ * Create an instance of {@link JAXBElement }{@code <}{@link AddNumbersFault2Response }{@code >}}
+ *
+ */
+ @XmlElementDecl(namespace = "http://foobar.org/", name = "addNumbersFault2Response")
+ public JAXBElement<AddNumbersFault2Response> createAddNumbersFault2Response(AddNumbersFault2Response value) {
+ return new JAXBElement<AddNumbersFault2Response>(_AddNumbersFault2Response_QNAME, AddNumbersFault2Response.class, null, value);
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/TooBigNumbersException.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/TooBigNumbersException.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/TooBigNumbersException.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,107 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for TooBigNumbersException complex type.
+ *
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ *
+ * <pre>
+ * <complexType name="TooBigNumbersException">
+ * <complexContent>
+ * <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ * <sequence>
+ * <element name="detail" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * <element name="message" type="{http://www.w3.org/2001/XMLSchema}string" minOccurs="0"/>
+ * </sequence>
+ * </restriction>
+ * </complexContent>
+ * </complexType>
+ * </pre>
+ *
+ *
+ */
+(a)XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "TooBigNumbersException", propOrder = {
+ "detail",
+ "message"
+})
+public class TooBigNumbersException {
+
+ protected String detail;
+ protected String message;
+
+ /**
+ * Gets the value of the detail property.
+ *
+ * @return
+ * possible object is
+ * {@link String }
+ *
+ */
+ public String getDetail() {
+ return detail;
+ }
+
+ /**
+ * Sets the value of the detail property.
+ *
+ * @param value
+ * allowed object is
+ * {@link String }
+ *
+ */
+ public void setDetail(String value) {
+ this.detail = 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: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/TooBigNumbersException_Exception.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/TooBigNumbersException_Exception.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/TooBigNumbersException_Exception.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,74 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.generated;
+
+import javax.xml.ws.WebFault;
+
+
+/**
+ * This class was generated by the JAX-WS RI.
+ * JAX-WS RI 2.2-12/14/2009 02:16 PM(ramkris)-
+ * Generated source version: 2.2
+ *
+ */
+@WebFault(name = "TooBigNumbersException", targetNamespace = "http://foobar.org/")
+public class TooBigNumbersException_Exception
+ extends Exception
+{
+
+ /**
+ * Java type that goes as soapenv:Fault detail element.
+ *
+ */
+ private TooBigNumbersException faultInfo;
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ */
+ public TooBigNumbersException_Exception(String message, TooBigNumbersException faultInfo) {
+ super(message);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @param message
+ * @param faultInfo
+ * @param cause
+ */
+ public TooBigNumbersException_Exception(String message, TooBigNumbersException faultInfo, Throwable cause) {
+ super(message, cause);
+ this.faultInfo = faultInfo;
+ }
+
+ /**
+ *
+ * @return
+ * returns fault bean: org.jboss.test.ws.jaxws.jbws2985.generated.TooBigNumbersException
+ */
+ public TooBigNumbersException getFaultInfo() {
+ return faultInfo;
+ }
+
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/package-info.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/package-info.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/generated/package-info.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,23 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+(a)javax.xml.bind.annotation.XmlSchema(namespace = "http://foobar.org/")
+package org.jboss.test.ws.jaxws.jbws2985.generated;
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersException.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersException.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersException.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.service;
+
+public class AddNumbersException extends Exception
+{
+ String detail;
+
+ public AddNumbersException(String message, String detail)
+ {
+ super(message);
+ this.detail = detail;
+ }
+
+ public String getDetail()
+ {
+ return detail;
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersImpl.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersImpl.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/AddNumbersImpl.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,152 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.service;
+
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+import javax.jws.WebMethod;
+import javax.xml.ws.Action;
+import javax.xml.ws.FaultAction;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.soap.Addressing;
+import javax.xml.ws.soap.SOAPBinding;
+
+@HandlerChain(name = "", file = "server-handler.xml")
+@WebService(name = "AddNumbers", portName = "AddNumbersPort", targetNamespace = "http://foobar.org/", serviceName = "AddNumbersService", wsdlLocation = "WEB-INF/wsdl/AddNumbersService.wsdl")
+@BindingType(value = SOAPBinding.SOAP11HTTP_BINDING)
+@Addressing
+public class AddNumbersImpl
+{
+ public int addNumbersNoAction(int number1, int number2) throws AddNumbersException
+ {
+ return doStuff(number1, number2);
+ }
+
+ @Action(input = "", output = "")
+ public int addNumbersEmptyAction(int number1, int number2) throws AddNumbersException
+ {
+ return doStuff(number1, number2);
+ }
+
+ @Action(input = "http://example.com/input", output = "http://example.com/output")
+ @WebMethod(action = "http://example.com/input")
+ public int addNumbers(int number1, int number2) throws AddNumbersException
+ {
+ return doStuff(number1, number2);
+ }
+
+ @Action(input = "http://example.com/input2", output = "http://example.com/output2")
+ public int addNumbers2(int number1, int number2) throws AddNumbersException
+ {
+ return doStuff(number1, number2);
+ }
+
+ @WebMethod(action = "http://example.com/input3")
+ public int addNumbers3(int number1, int number2) throws AddNumbersException
+ {
+ return doStuff(number1, number2);
+ }
+
+ @Action(input = "http://example.com/input4")
+ public int addNumbers4(int number1, int number2) throws AddNumbersException
+ {
+ return doStuff(number1, number2);
+ }
+
+ @Action(input = "finput1", output = "foutput1", fault =
+ {@FaultAction(className = AddNumbersException.class, value = "http://fault1")})
+ public int addNumbersFault1(int number1, int number2) throws AddNumbersException
+ {
+ return doStuff(number1, number2);
+ }
+
+ @Action(input = "finput2", output = "foutput2", fault =
+ {@FaultAction(className = AddNumbersException.class, value = "http://fault2/addnumbers"),
+ @FaultAction(className = TooBigNumbersException.class, value = "http://fault2/toobignumbers")})
+ public int addNumbersFault2(int number1, int number2) throws AddNumbersException, TooBigNumbersException
+ {
+ throwTooBigException(number1, number2);
+
+ return doStuff(number1, number2);
+ }
+
+ @Action(input = "finput3", output = "foutput3", fault =
+ {@FaultAction(className = AddNumbersException.class, value = "http://fault3/addnumbers")})
+ public int addNumbersFault3(int number1, int number2) throws AddNumbersException, TooBigNumbersException
+ {
+ throwTooBigException(number1, number2);
+
+ return doStuff(number1, number2);
+ }
+
+ @Action(fault =
+ {@FaultAction(className = AddNumbersException.class, value = "http://fault4/addnumbers")})
+ public int addNumbersFault4(int number1, int number2) throws AddNumbersException, TooBigNumbersException
+ {
+ throwTooBigException(number1, number2);
+
+ return doStuff(number1, number2);
+ }
+
+ @Action(fault =
+ {@FaultAction(className = TooBigNumbersException.class, value = "http://fault5/toobignumbers")})
+ public int addNumbersFault5(int number1, int number2) throws AddNumbersException, TooBigNumbersException
+ {
+ throwTooBigException(number1, number2);
+
+ return doStuff(number1, number2);
+ }
+
+ @Action(fault =
+ {@FaultAction(className = AddNumbersException.class, value = "http://fault6/addnumbers"),
+ @FaultAction(className = TooBigNumbersException.class, value = "http://fault6/toobignumbers")})
+ public int addNumbersFault6(int number1, int number2) throws AddNumbersException, TooBigNumbersException
+ {
+ throwTooBigException(number1, number2);
+
+ return doStuff(number1, number2);
+ }
+
+ @Action(fault =
+ {@FaultAction(className = AddNumbersException.class, value = ""),
+ @FaultAction(className = TooBigNumbersException.class, value = "")})
+ public int addNumbersFault7(int number1, int number2) throws AddNumbersException, TooBigNumbersException
+ {
+ throwTooBigException(number1, number2);
+
+ return doStuff(number1, number2);
+ }
+
+ int doStuff(int number1, int number2) throws AddNumbersException
+ {
+ if (number1 < 0 || number2 < 0)
+ throw new AddNumbersException("Negative numbers can't be added!", "Numbers: " + number1 + ", " + number2);
+
+ return number1 + number2;
+ }
+
+ void throwTooBigException(int number1, int number2) throws TooBigNumbersException
+ {
+ if (number1 > 10 || number2 > 10)
+ throw new TooBigNumbersException("Too big numbers can't be added!", "Numbers: " + number1 + ", " + number2);
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/ServerSOAPHandler.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/ServerSOAPHandler.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/ServerSOAPHandler.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,53 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.service;
+
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.test.ws.jaxws.common.WsaBaseSOAPHandler;
+import org.jboss.test.ws.jaxws.jbws2985.common.TestConstants;
+
+public class ServerSOAPHandler extends WsaBaseSOAPHandler
+{
+ @Override
+ protected void checkInboundAction(final SOAPMessageContext context, final String currentOperation, final String currentAction)
+ {
+ this.assertAction(currentOperation, currentAction, "addNumbersNoAction", TestConstants.ADD_NUMBERS_IN_NOACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersEmptyAction", TestConstants.ADD_NUMBERS_IN_EMPTYACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers", TestConstants.ADD_NUMBERS_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers2", TestConstants.ADD_NUMBERS2_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbers3", TestConstants.ADD_NUMBERS3_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersFault1", TestConstants.ADD_NUMBERS_FAULT1_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersFault2", TestConstants.ADD_NUMBERS_FAULT2_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersFault3", TestConstants.ADD_NUMBERS_FAULT3_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersFault4", TestConstants.ADD_NUMBERS_FAULT4_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersFault5", TestConstants.ADD_NUMBERS_FAULT5_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersFault6", TestConstants.ADD_NUMBERS_FAULT6_IN_ACTION);
+ this.assertAction(currentOperation, currentAction, "addNumbersFault7", TestConstants.ADD_NUMBERS_FAULT7_IN_ACTION);
+ }
+
+ @Override
+ protected String whichHandler()
+ {
+ return "ServerSOAPHandler";
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/TooBigNumbersException.java
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/TooBigNumbersException.java (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/TooBigNumbersException.java 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2985.service;
+
+public class TooBigNumbersException extends Exception
+{
+ String detail;
+
+ public TooBigNumbersException(String message, String detail)
+ {
+ super(message);
+ this.detail = detail;
+ }
+
+ public String getDetail()
+ {
+ return detail;
+ }
+}
Added: framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/server-handler.xml
===================================================================
--- framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/server-handler.xml (rev 0)
+++ framework/trunk/testsuite/test/java/org/jboss/test/ws/jaxws/jbws2985/service/server-handler.xml 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<jws:handler-chains xmlns:jws="http://java.sun.com/xml/ns/javaee">
+
+ <jws:handler-chain>
+ <jws:handler>
+ <jws:handler-name>ServerSOAPHandler</jws:handler-name>
+ <jws:handler-class>org.jboss.test.ws.jaxws.jbws2985.service.ServerSOAPHandler</jws:handler-class>
+ </jws:handler>
+ </jws:handler-chain>
+
+</jws:handler-chains>
Added: framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/jboss-web.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/jboss-web.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/jboss-web.xml 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-jbws2985</context-root>
+</jboss-web>
\ No newline at end of file
Added: framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/web.xml
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/web.xml (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/web.xml 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2985.service.AddNumbersImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
Added: framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/wsdl/AddNumbersService.wsdl
===================================================================
--- framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/wsdl/AddNumbersService.wsdl (rev 0)
+++ framework/trunk/testsuite/test/resources/jaxws/jbws2985/WEB-INF/wsdl/AddNumbersService.wsdl 2010-04-06 08:47:00 UTC (rev 11938)
@@ -0,0 +1,535 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<definitions name='AddNumbersService' targetNamespace='http://foobar.org/' xmlns='http://schemas.xmlsoap.org/wsdl/' xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/' xmlns:tns='http://foobar.org/' xmlns:wsa='http://www.w3.org/2007/05/addressing/metadata' xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types>
+ <xs:schema targetNamespace='http://foobar.org/' version='1.0' xmlns:tns='http://foobar.org/' xmlns:xs='http://www.w3.org/2001/XMLSchema'>
+ <xs:element name='AddNumbersException' type='tns:AddNumbersException'/>
+ <xs:element name='TooBigNumbersException' type='tns:TooBigNumbersException'/>
+ <xs:element name='addNumbers' type='tns:addNumbers'/>
+ <xs:element name='addNumbers2' type='tns:addNumbers2'/>
+ <xs:element name='addNumbers2Response' type='tns:addNumbers2Response'/>
+ <xs:element name='addNumbers3' type='tns:addNumbers3'/>
+ <xs:element name='addNumbers3Response' type='tns:addNumbers3Response'/>
+ <xs:element name='addNumbers4' type='tns:addNumbers4'/>
+ <xs:element name='addNumbers4Response' type='tns:addNumbers4Response'/>
+ <xs:element name='addNumbersEmptyAction' type='tns:addNumbersEmptyAction'/>
+ <xs:element name='addNumbersEmptyActionResponse' type='tns:addNumbersEmptyActionResponse'/>
+ <xs:element name='addNumbersFault1' type='tns:addNumbersFault1'/>
+ <xs:element name='addNumbersFault1Response' type='tns:addNumbersFault1Response'/>
+ <xs:element name='addNumbersFault2' type='tns:addNumbersFault2'/>
+ <xs:element name='addNumbersFault2Response' type='tns:addNumbersFault2Response'/>
+ <xs:element name='addNumbersFault3' type='tns:addNumbersFault3'/>
+ <xs:element name='addNumbersFault3Response' type='tns:addNumbersFault3Response'/>
+ <xs:element name='addNumbersFault4' type='tns:addNumbersFault4'/>
+ <xs:element name='addNumbersFault4Response' type='tns:addNumbersFault4Response'/>
+ <xs:element name='addNumbersFault5' type='tns:addNumbersFault5'/>
+ <xs:element name='addNumbersFault5Response' type='tns:addNumbersFault5Response'/>
+ <xs:element name='addNumbersFault6' type='tns:addNumbersFault6'/>
+ <xs:element name='addNumbersFault6Response' type='tns:addNumbersFault6Response'/>
+ <xs:element name='addNumbersFault7' type='tns:addNumbersFault7'/>
+ <xs:element name='addNumbersFault7Response' type='tns:addNumbersFault7Response'/>
+ <xs:element name='addNumbersNoAction' type='tns:addNumbersNoAction'/>
+ <xs:element name='addNumbersNoActionResponse' type='tns:addNumbersNoActionResponse'/>
+ <xs:element name='addNumbersResponse' type='tns:addNumbersResponse'/>
+ <xs:complexType name='addNumbersNoAction'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersNoActionResponse'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='AddNumbersException'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='detail' type='xs:string'/>
+ <xs:element minOccurs='0' name='message' type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersEmptyAction'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersEmptyActionResponse'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbers'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersResponse'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbers2'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbers2Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbers3'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbers3Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbers4'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbers4Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault1'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault1Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault2'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault2Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='TooBigNumbersException'>
+ <xs:sequence>
+ <xs:element minOccurs='0' name='detail' type='xs:string'/>
+ <xs:element minOccurs='0' name='message' type='xs:string'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault3'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault3Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault4'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault4Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault5'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault5Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault6'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault6Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault7'>
+ <xs:sequence>
+ <xs:element name='arg0' type='xs:int'/>
+ <xs:element name='arg1' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ <xs:complexType name='addNumbersFault7Response'>
+ <xs:sequence>
+ <xs:element name='return' type='xs:int'/>
+ </xs:sequence>
+ </xs:complexType>
+ </xs:schema>
+ </types>
+ <wsp:Policy wsu:Id='ed3f097-2c68-427a-a2bc-12f9047e7edc' xmlns:wsp='http://www.w3.org/ns/ws-policy' xmlns:wsu='http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utilit...'>
+ <wsam:Addressing wsp:Optional='true' xmlns:wsam='http://www.w3.org/2007/05/addressing/metadata'>
+ <wsp:Policy/>
+ </wsam:Addressing>
+ </wsp:Policy>
+ <message name='AddNumbers_addNumbers'>
+ <part element='tns:addNumbers' name='addNumbers'/>
+ </message>
+ <message name='AddNumbers_addNumbersResponse'>
+ <part element='tns:addNumbersResponse' name='addNumbersResponse'/>
+ </message>
+ <message name='AddNumbersException'>
+ <part element='tns:AddNumbersException' name='AddNumbersException'/>
+ </message>
+ <message name='AddNumbers_addNumbers2'>
+ <part element='tns:addNumbers2' name='addNumbers2'/>
+ </message>
+ <message name='AddNumbers_addNumbers2Response'>
+ <part element='tns:addNumbers2Response' name='addNumbers2Response'/>
+ </message>
+ <message name='AddNumbers_addNumbers3'>
+ <part element='tns:addNumbers3' name='addNumbers3'/>
+ </message>
+ <message name='AddNumbers_addNumbers3Response'>
+ <part element='tns:addNumbers3Response' name='addNumbers3Response'/>
+ </message>
+ <message name='AddNumbers_addNumbers4'>
+ <part element='tns:addNumbers4' name='addNumbers4'/>
+ </message>
+ <message name='AddNumbers_addNumbers4Response'>
+ <part element='tns:addNumbers4Response' name='addNumbers4Response'/>
+ </message>
+ <message name='AddNumbers_addNumbersEmptyAction'>
+ <part element='tns:addNumbersEmptyAction' name='addNumbersEmptyAction'/>
+ </message>
+ <message name='AddNumbers_addNumbersEmptyActionResponse'>
+ <part element='tns:addNumbersEmptyActionResponse' name='addNumbersEmptyActionResponse'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault1'>
+ <part element='tns:addNumbersFault1' name='addNumbersFault1'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault1Response'>
+ <part element='tns:addNumbersFault1Response' name='addNumbersFault1Response'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault2'>
+ <part element='tns:addNumbersFault2' name='addNumbersFault2'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault2Response'>
+ <part element='tns:addNumbersFault2Response' name='addNumbersFault2Response'/>
+ </message>
+ <message name='TooBigNumbersException'>
+ <part element='tns:TooBigNumbersException' name='TooBigNumbersException'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault3'>
+ <part element='tns:addNumbersFault3' name='addNumbersFault3'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault3Response'>
+ <part element='tns:addNumbersFault3Response' name='addNumbersFault3Response'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault4'>
+ <part element='tns:addNumbersFault4' name='addNumbersFault4'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault4Response'>
+ <part element='tns:addNumbersFault4Response' name='addNumbersFault4Response'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault5'>
+ <part element='tns:addNumbersFault5' name='addNumbersFault5'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault5Response'>
+ <part element='tns:addNumbersFault5Response' name='addNumbersFault5Response'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault6'>
+ <part element='tns:addNumbersFault6' name='addNumbersFault6'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault6Response'>
+ <part element='tns:addNumbersFault6Response' name='addNumbersFault6Response'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault7'>
+ <part element='tns:addNumbersFault7' name='addNumbersFault7'/>
+ </message>
+ <message name='AddNumbers_addNumbersFault7Response'>
+ <part element='tns:addNumbersFault7Response' name='addNumbersFault7Response'/>
+ </message>
+ <message name='AddNumbers_addNumbersNoAction'>
+ <part element='tns:addNumbersNoAction' name='addNumbersNoAction'/>
+ </message>
+ <message name='AddNumbers_addNumbersNoActionResponse'>
+ <part element='tns:addNumbersNoActionResponse' name='addNumbersNoActionResponse'/>
+ </message>
+ <portType name='AddNumbers'>
+ <operation name='addNumbers' parameterOrder='addNumbers'>
+ <input message='tns:AddNumbers_addNumbers' wsa:Action='http://example.com/input'/>
+ <output message='tns:AddNumbers_addNumbersResponse' wsa:Action='http://example.com/output'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbers/Fault/AddNumbersException'/>
+ </operation>
+ <operation name='addNumbers2' parameterOrder='addNumbers2'>
+ <input message='tns:AddNumbers_addNumbers2' wsa:Action='http://example.com/input2'/>
+ <output message='tns:AddNumbers_addNumbers2Response' wsa:Action='http://example.com/output2'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbers2/Fault/AddNumbersException'/>
+ </operation>
+ <operation name='addNumbers3' parameterOrder='addNumbers3'>
+ <input message='tns:AddNumbers_addNumbers3' wsa:Action='http://example.com/input3'/>
+ <output message='tns:AddNumbers_addNumbers3Response' wsa:Action='http://foobar.org/AddNumbers/addNumbers3Response'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbers3/Fault/AddNumbersException'/>
+ </operation>
+ <operation name='addNumbers4' parameterOrder='addNumbers4'>
+ <input message='tns:AddNumbers_addNumbers4' wsa:Action='http://example.com/input4'/>
+ <output message='tns:AddNumbers_addNumbers4Response' wsa:Action='http://foobar.org/AddNumbers/addNumbers4Response'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbers4/Fault/AddNumbersException'/>
+ </operation>
+ <operation name='addNumbersEmptyAction' parameterOrder='addNumbersEmptyAction'>
+ <input message='tns:AddNumbers_addNumbersEmptyAction' wsa:Action='http://foobar.org/AddNumbers/addNumbersEmptyActionRequest'/>
+ <output message='tns:AddNumbers_addNumbersEmptyActionResponse' wsa:Action='http://foobar.org/AddNumbers/addNumbersEmptyActionResponse'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbersEmptyAction/Fault/AddNumbersException'/>
+ </operation>
+ <operation name='addNumbersFault1' parameterOrder='addNumbersFault1'>
+ <input message='tns:AddNumbers_addNumbersFault1' wsa:Action='finput1'/>
+ <output message='tns:AddNumbers_addNumbersFault1Response' wsa:Action='foutput1'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://fault1'/>
+ </operation>
+ <operation name='addNumbersFault2' parameterOrder='addNumbersFault2'>
+ <input message='tns:AddNumbers_addNumbersFault2' wsa:Action='finput2'/>
+ <output message='tns:AddNumbers_addNumbersFault2Response' wsa:Action='foutput2'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://fault2/addnumbers'/>
+ <fault message='tns:TooBigNumbersException' name='TooBigNumbersException' wsa:Action='http://fault2/toobignumbers'/>
+ </operation>
+ <operation name='addNumbersFault3' parameterOrder='addNumbersFault3'>
+ <input message='tns:AddNumbers_addNumbersFault3' wsa:Action='finput3'/>
+ <output message='tns:AddNumbers_addNumbersFault3Response' wsa:Action='foutput3'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://fault3/addnumbers'/>
+ <fault message='tns:TooBigNumbersException' name='TooBigNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault3/Fault/TooBigNumbersException'/>
+ </operation>
+ <operation name='addNumbersFault4' parameterOrder='addNumbersFault4'>
+ <input message='tns:AddNumbers_addNumbersFault4' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault4Request'/>
+ <output message='tns:AddNumbers_addNumbersFault4Response' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault4Response'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://fault4/addnumbers'/>
+ <fault message='tns:TooBigNumbersException' name='TooBigNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault4/Fault/TooBigNumbersException'/>
+ </operation>
+ <operation name='addNumbersFault5' parameterOrder='addNumbersFault5'>
+ <input message='tns:AddNumbers_addNumbersFault5' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault5Request'/>
+ <output message='tns:AddNumbers_addNumbersFault5Response' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault5Response'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault5/Fault/AddNumbersException'/>
+ <fault message='tns:TooBigNumbersException' name='TooBigNumbersException' wsa:Action='http://fault5/toobignumbers'/>
+ </operation>
+ <operation name='addNumbersFault6' parameterOrder='addNumbersFault6'>
+ <input message='tns:AddNumbers_addNumbersFault6' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault6Request'/>
+ <output message='tns:AddNumbers_addNumbersFault6Response' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault6Response'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://fault6/addnumbers'/>
+ <fault message='tns:TooBigNumbersException' name='TooBigNumbersException' wsa:Action='http://fault6/toobignumbers'/>
+ </operation>
+ <operation name='addNumbersFault7' parameterOrder='addNumbersFault7'>
+ <input message='tns:AddNumbers_addNumbersFault7' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault7Request'/>
+ <output message='tns:AddNumbers_addNumbersFault7Response' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault7Response'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault7/Fault/AddNumbersException'/>
+ <fault message='tns:TooBigNumbersException' name='TooBigNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbersFault7/Fault/TooBigNumbersException'/>
+ </operation>
+ <operation name='addNumbersNoAction' parameterOrder='addNumbersNoAction'>
+ <input message='tns:AddNumbers_addNumbersNoAction' wsa:Action='http://foobar.org/AddNumbers/addNumbersNoActionRequest'/>
+ <output message='tns:AddNumbers_addNumbersNoActionResponse' wsa:Action='http://foobar.org/AddNumbers/addNumbersNoActionResponse'/>
+ <fault message='tns:AddNumbersException' name='AddNumbersException' wsa:Action='http://foobar.org/AddNumbers/addNumbersNoAction/Fault/AddNumbersException'/>
+ </operation>
+ </portType>
+ <binding name='AddNumbersBinding' type='tns:AddNumbers'>
+ <wsp:PolicyReference URI='#ed3f097-2c68-427a-a2bc-12f9047e7edc' xmlns:wsp='http://www.w3.org/ns/ws-policy'/>
+ <soap:binding style='document' transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='addNumbers'>
+ <soap:operation soapAction='http://example.com/input'/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbers2'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbers3'>
+ <soap:operation soapAction='http://example.com/input3'/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbers4'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbersEmptyAction'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbersFault1'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbersFault2'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ <fault name='TooBigNumbersException'>
+ <soap:fault name='TooBigNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbersFault3'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ <fault name='TooBigNumbersException'>
+ <soap:fault name='TooBigNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbersFault4'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ <fault name='TooBigNumbersException'>
+ <soap:fault name='TooBigNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbersFault5'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ <fault name='TooBigNumbersException'>
+ <soap:fault name='TooBigNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbersFault6'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ <fault name='TooBigNumbersException'>
+ <soap:fault name='TooBigNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbersFault7'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ <fault name='TooBigNumbersException'>
+ <soap:fault name='TooBigNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ <operation name='addNumbersNoAction'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body use='literal'/>
+ </input>
+ <output>
+ <soap:body use='literal'/>
+ </output>
+ <fault name='AddNumbersException'>
+ <soap:fault name='AddNumbersException' use='literal'/>
+ </fault>
+ </operation>
+ </binding>
+ <service name='AddNumbersService'>
+ <port binding='tns:AddNumbersBinding' name='AddNumbersPort'>
+ <soap:address location='REPLACE_WITH_ACTUAL_URL'/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file
14 years, 8 months
JBossWS SVN: r11937 - in stack/cxf/trunk: modules/client and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-04-06 04:30:35 -0400 (Tue, 06 Apr 2010)
New Revision: 11937
Modified:
stack/cxf/trunk/modules/client/pom.xml
stack/cxf/trunk/pom.xml
Log:
[JBWS-2988] Adding dependency on jboss-logging
Modified: stack/cxf/trunk/modules/client/pom.xml
===================================================================
--- stack/cxf/trunk/modules/client/pom.xml 2010-04-05 06:09:33 UTC (rev 11936)
+++ stack/cxf/trunk/modules/client/pom.xml 2010-04-06 08:30:35 UTC (rev 11937)
@@ -179,6 +179,14 @@
<groupId>apache-log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-log4j</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-spi</artifactId>
+ </dependency>
</dependencies>
<build>
Modified: stack/cxf/trunk/pom.xml
===================================================================
--- stack/cxf/trunk/pom.xml 2010-04-05 06:09:33 UTC (rev 11936)
+++ stack/cxf/trunk/pom.xml 2010-04-06 08:30:35 UTC (rev 11937)
@@ -60,6 +60,7 @@
<cxf.asm.version>2.2.3</cxf.asm.version>
<fastinfoset.api.version>1.2.7</fastinfoset.api.version>
<jboss.common.core.version>2.2.16.GA</jboss.common.core.version>
+ <jboss.logging.version>2.2.0.CR1</jboss.logging.version>
<jaxb.api.version>2.1</jaxb.api.version>
<jaxb.impl.version>2.1.12</jaxb.impl.version>
<jaxrpc.api.version>1.1</jaxrpc.api.version>
@@ -416,6 +417,16 @@
<artifactId>commons-logging</artifactId>
<version>${commons.logging.version}</version>
</dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-log4j</artifactId>
+ <version>${jboss.logging.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.logging</groupId>
+ <artifactId>jboss-logging-spi</artifactId>
+ <version>${jboss.logging.version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>
14 years, 8 months
JBossWS SVN: r11936 - in stack/native/trunk/modules: core/src/main/java/org/jboss/ws/core/server and 8 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2010-04-05 02:09:33 -0400 (Mon, 05 Apr 2010)
New Revision: 11936
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/Endpoint.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/EndpointImpl.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/jboss-web.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/web.xml
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws871/JBWS871TestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java
Log:
[JBWS-2969]:Added rpc/lit paramter is null check
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java 2010-04-05 04:29:32 UTC (rev 11935)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java 2010-04-05 06:09:33 UTC (rev 11936)
@@ -38,6 +38,7 @@
import javax.xml.soap.MessageFactory;
import javax.xml.soap.SOAPException;
import javax.xml.ws.ProtocolException;
+import javax.xml.ws.WebServiceException;
import javax.xml.ws.addressing.AddressingProperties;
import javax.xml.ws.addressing.JAXWSAConstants;
import javax.xml.ws.handler.MessageContext;
@@ -286,6 +287,21 @@
// Create the invocation and sync the input parameters
epInv = new EndpointInvocation(opMetaData);
epInv.initInputParams(inputParams);
+
+ if (opMetaData.getEndpointMetaData().getType() != Type.JAXRPC && opMetaData.isRPCLiteral()
+ && epInv.getRequestParamNames() != null)
+ {
+ for (QName qname : epInv.getRequestParamNames())
+ {
+ ParameterMetaData paramMetaData = opMetaData.getParameter(qname);
+ if ((paramMetaData.getMode().equals(ParameterMode.IN) || paramMetaData.getMode().equals(ParameterMode.INOUT))
+ && epInv.getRequestParamValue(qname) == null)
+ {
+ throw new WebServiceException("The RPC/Literal Operation [" + opMetaData.getQName()
+ + "] parameters can not be null");
+ }
+ }
+ }
// Set the required outbound properties
setOutboundContextProperties();
@@ -531,6 +547,9 @@
retValue = epInv.getReturnValue();
if (opMetaData.isDocumentWrapped() && retMetaData.isMessageType() == false)
retValue = ParameterWrapping.unwrapResponseParameters(retMetaData, retValue, inParams);
+ if (opMetaData.getEndpointMetaData().getType() != Type.JAXRPC && opMetaData.isRPCLiteral() && retValue == null)
+ throw new WebServiceException("The RPC/Literal Operation [" + opMetaData.getQName()
+ + "] return value can not be null, it's WS-BP:2211 violation)");
}
// Set the holder values for INOUT parameters
@@ -543,6 +562,15 @@
{
QName xmlName = paramMetaData.getXmlName();
Object value = epInv.getResponseParamValue(xmlName);
+ //JBWS-2969:Check if reponse parameter or return value is null
+ if (opMetaData.getEndpointMetaData().getType() != Type.JAXRPC && opMetaData.isRPCLiteral())
+ {
+ if (value == null)
+ {
+ throw new WebServiceException("The RPC/Literal Operation [" + opMetaData.getQName()
+ + "] response parameter value can not be null, it's WS-BP:2211 violation)");
+ }
+ }
// document/literal wrapped return value header
if (index == -1)
{
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2010-04-05 04:29:32 UTC (rev 11935)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2010-04-05 06:09:33 UTC (rev 11936)
@@ -28,6 +28,7 @@
import javax.activation.DataHandler;
import javax.xml.namespace.QName;
+import javax.xml.rpc.ParameterMode;
import javax.xml.rpc.server.ServiceLifecycle;
import javax.xml.rpc.server.ServletEndpointContext;
import javax.xml.soap.Name;
@@ -35,6 +36,7 @@
import javax.xml.soap.SOAPException;
import javax.xml.soap.SOAPHeader;
import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
import javax.xml.ws.handler.MessageContext;
import javax.xml.ws.http.HTTPBinding;
@@ -64,6 +66,7 @@
import org.jboss.ws.extensions.xop.XOPContext;
import org.jboss.ws.metadata.umdm.EndpointMetaData;
import org.jboss.ws.metadata.umdm.OperationMetaData;
+import org.jboss.ws.metadata.umdm.ParameterMetaData;
import org.jboss.ws.metadata.umdm.ServerEndpointMetaData;
import org.jboss.wsf.common.JavaUtils;
import org.jboss.wsf.spi.SPIProvider;
@@ -212,6 +215,21 @@
reqMessage = msgContext.getMessageAbstraction();
sepInv = binding.unbindRequestMessage(opMetaData, reqMessage);
}
+ //JBWS-2969:check if the RPC/Lit input paramter is null
+ if (opMetaData.getEndpointMetaData().getType() != EndpointMetaData.Type.JAXRPC
+ && opMetaData.isRPCLiteral() && sepInv.getRequestParamNames() != null)
+ {
+
+ for (QName qname : sepInv.getRequestParamNames())
+ {
+ ParameterMetaData paramMetaData = opMetaData.getParameter(qname);
+ if ((paramMetaData.getMode().equals(ParameterMode.IN) || paramMetaData.getMode().equals(ParameterMode.INOUT)) && sepInv.getRequestParamValue(qname) == null)
+ {
+ throw new WebServiceException("The RPC/Literal Operation [" + opMetaData.getQName()
+ + "] parameters can not be null");
+ }
+ }
+ }
// Invoke an instance of the SEI implementation bean
Invocation inv = setupInvocation(endpoint, sepInv, invContext);
Modified: stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-04-05 04:29:32 UTC (rev 11935)
+++ stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-04-05 06:09:33 UTC (rev 11936)
@@ -620,7 +620,18 @@
</webinf>
</war>
- <!-- jaxws-jbws2978 -->
+ <!-- jaxws-jbws2969 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2969.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2969/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2969/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2969/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
+
+ <!-- jaxws-jbws2978 -->
<war warfile="${tests.output.dir}/test-libs/jaxws-jbws2978.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2978/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
<include name="org/jboss/test/ws/jaxws/jbws2978/AddNumbers.class"/>
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/Endpoint.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/Endpoint.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/Endpoint.java 2010-04-05 06:09:33 UTC (rev 11936)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2969;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.Holder;
+
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface Endpoint
+{
+
+ /**
+ *
+ * @param in
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(name = "out", partName = "out")
+ public String testPassNull(@WebParam(name = "in", partName = "in") String in);
+
+ /**
+ *
+ * @param in
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(name = "out", partName = "out")
+ public String testReturnNull(@WebParam(name = "in", partName = "in") String in);
+
+ @WebMethod
+ public void testInHolderNull(@WebParam(name = "arg0", partName = "arg0") String arg0,
+ @WebParam(name = "arg1", mode = WebParam.Mode.INOUT, partName = "arg1") Holder<String> arg1,
+ @WebParam(name = "arg2", mode = WebParam.Mode.OUT, partName = "arg2") Holder<String> arg2,
+ @WebParam(name = "arg3", mode = WebParam.Mode.OUT, partName = "arg3") Holder<String> arg3);
+
+ /**
+ *
+ * @param arg3
+ * @param arg2
+ * @param arg1
+ * @param arg0
+ */
+ @WebMethod
+ public void testInOutHolderNull(@WebParam(name = "arg0", partName = "arg0") String arg0,
+ @WebParam(name = "arg1", mode = WebParam.Mode.INOUT, partName = "arg1") Holder<String> arg1,
+ @WebParam(name = "arg2", mode = WebParam.Mode.OUT, partName = "arg2") Holder<String> arg2,
+ @WebParam(name = "arg3", mode = WebParam.Mode.OUT, partName = "arg3") Holder<String> arg3);
+
+ /**
+ *
+ * @param arg3
+ * @param arg2
+ * @param arg1
+ * @param arg0
+ */
+ @WebMethod
+ public void testOutHolderNull(@WebParam(name = "arg0", partName = "arg0") String arg0,
+ @WebParam(name = "arg1", mode = WebParam.Mode.INOUT, partName = "arg1") Holder<String> arg1,
+ @WebParam(name = "arg2", mode = WebParam.Mode.OUT, partName = "arg2") Holder<String> arg2,
+ @WebParam(name = "arg3", mode = WebParam.Mode.OUT, partName = "arg3") Holder<String> arg3);
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/EndpointImpl.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/EndpointImpl.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/EndpointImpl.java 2010-04-05 06:09:33 UTC (rev 11936)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2969;
+
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+
+@WebService(name = "Endpoint", serviceName= "EndpointService" , targetNamespace = "http://ws.jboss.org", endpointInterface = "org.jboss.test.ws.jaxws.jbws2969.Endpoint")
+public class EndpointImpl implements Endpoint
+{
+ public String testPassNull(String in)
+ {
+ return "helloworld";
+ }
+
+ public String testReturnNull(String in) {
+ return null;
+ }
+
+
+ public void testInHolderNull(String arg0, Holder<String> arg1,Holder<String> arg2, Holder<String> arg3)
+ {
+ arg2.value = "arg2";
+ arg3.value = "arg3";
+
+ }
+
+ public void testInOutHolderNull(String arg0, Holder<String> arg1,Holder<String> arg2, Holder<String> arg3)
+ {
+ arg1.value = null;
+ arg2.value = "arg2";
+ arg3.value = "arg3";
+ }
+
+ public void testOutHolderNull(String arg0, Holder<String> arg1,Holder<String> arg2, Holder<String> arg3)
+ {
+ arg2.value = "arg2";
+ arg3.value = null;
+ }
+
+}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.java 2010-04-05 06:09:33 UTC (rev 11936)
@@ -0,0 +1,135 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2969;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Holder;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceException;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+
+
+/**
+ * A JBWS2969TestCase.
+ *
+ * @author <a href="ema(a)redhat.com">Jim Ma</a>
+ */
+public class JBWS2969TestCase extends JBossWSTest
+{
+
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2969/";
+
+ private static Endpoint port;
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2969TestCase.class, "jaxws-jbws2969.war");
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ QName serviceName = new QName("http://ws.jboss.org", "EndpointService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ port = service.getPort(Endpoint.class);
+ }
+
+ public void testRpcLitPassNull() throws Exception
+ {
+ // this should be successful
+ assertEquals("helloworld",port.testPassNull("hello"));
+ //Throw WebServiceException
+ try
+ {
+ port.testPassNull(null);
+ fail("WebServiceException is expected when the rpc lit pass in prameter is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+
+ try
+ {
+ port.testReturnNull("hello");
+ fail("WebServiceException is expected when the rpc lit return value is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+
+ //should be successful
+ Holder<String> arg1 = new Holder<String>();
+ arg1.value = "arg1";
+ port.testInHolderNull("arg0", arg1, new Holder<String>(), new Holder<String>());
+
+
+ //Throw WebServiceException, inout holder pass in parameter is null
+ try
+ {
+ port.testInHolderNull("arg0", new Holder<String>() , new Holder<String>(), new Holder<String>());
+ fail("WebServiceException is expected when the rpc lit pass in holder value is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+
+
+ //Throw WebServiceException, inout holder response parameter is null
+ try
+ {
+ Holder<String> arg = new Holder<String>();
+ arg.value = "arg";
+ port.testInOutHolderNull("arg0", arg , new Holder<String>(), new Holder<String>());
+ fail("WebServiceException is expected when the rpc lit inout holder return value is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+
+
+ //Throw WebServiceException, inout holder response parameter is null
+ try
+ {
+ Holder<String> tmpArg = new Holder<String>();
+ tmpArg.value = "arg";
+ port.testOutHolderNull("arg0", tmpArg , new Holder<String>(), new Holder<String>());
+ fail("WebServiceException is expected when the rpc lit out holder return value is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+ }
+}
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws871/JBWS871TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws871/JBWS871TestCase.java 2010-04-05 04:29:32 UTC (rev 11935)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws871/JBWS871TestCase.java 2010-04-05 06:09:33 UTC (rev 11936)
@@ -151,18 +151,13 @@
assertEquals(intArr, jbel.getValue());
}
- public void testEchoNullArray() throws Exception
+ //Comment out this test , it is BP-2211 violation, see JBWS-2969
+ /*public void testEchoNullArray() throws Exception
{
Integer[] outArr = endpoint.intArr("null", null);
assertNull(outArr);
- }
+ }*/
- public void testEchoEmptyArray() throws Exception
- {
- Integer[] outArr = endpoint.intArr("empty", new Integer[]{});
- assertEquals(0, outArr.length);
- }
-
public void testEchoSingleValueArray() throws Exception
{
Integer[] outArr = endpoint.intArr("single", new Integer[] {new Integer(1)} );
Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java 2010-04-05 04:29:32 UTC (rev 11935)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/samples/dar/AddressingClientTestCase.java 2010-04-05 06:09:33 UTC (rev 11936)
@@ -68,7 +68,18 @@
URL wsdlURL = new URL("http://" + getServerHost() + ":8080/dar?wsdl");
AddressingClient client = new AddressingClient(wsdlURL, getServerHost());
Date start = new Date();
- client.run(false);
+ try
+ {
+ client.run(true);
+ }
+ catch (Exception e)
+ {
+ if (e.getMessage().indexOf("return value can not be null") == -1)
+ {
+ throw e ;
+ }
+ // do nothing, ingore the expected WebServiceException, See JBWS2969
+ }
Date stop = new Date();
assertTrue(stop.getTime() - start.getTime() > TEST_RUN_TIME / 2);
}
@@ -78,7 +89,18 @@
URL wsdlURL = new URL("http://" + getServerHost() + ":8080/dar?wsdl");
AddressingClient client = new AddressingClient(wsdlURL, getServerHost());
Date start = new Date();
- client.run(true);
+ try
+ {
+ client.run(true);
+ }
+ catch (Exception e)
+ {
+ if (e.getMessage().indexOf("return value can not be null") == -1)
+ {
+ throw e ;
+ }
+ //do nothing, ingore the expected WebServiceException, See JBWS2969
+ }
Date stop = new Date();
assertTrue(stop.getTime() - start.getTime() > TEST_RUN_TIME / 2);
}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/jboss-web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/jboss-web.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/jboss-web.xml 2010-04-05 06:09:33 UTC (rev 11936)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-jbws2969</context-root>
+</jboss-web>
\ No newline at end of file
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/web.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/web.xml 2010-04-05 06:09:33 UTC (rev 11936)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2969.EndpointImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
14 years, 8 months
JBossWS SVN: r11935 - in stack/native/branches/jbossws-native-3.1.2/modules: core/src/main/java/org/jboss/ws/core/server and 6 other directories.
by jbossws-commits@lists.jboss.org
Author: jim.ma
Date: 2010-04-05 00:29:32 -0400 (Mon, 05 Apr 2010)
New Revision: 11935
Added:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/Endpoint.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/EndpointImpl.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/jboss-web.xml
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/web.xml
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
Log:
[JBPAPP-3984]: Add rpc/lit parameter null check to holder class
Modified: stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java 2010-04-02 16:10:22 UTC (rev 11934)
+++ stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/CommonClient.java 2010-04-05 04:29:32 UTC (rev 11935)
@@ -289,7 +289,8 @@
for (QName qname : epInv.getRequestParamNames())
{
ParameterMetaData paramMetaData = opMetaData.getParameter(qname);
- if (paramMetaData.getMode().equals(ParameterMode.IN) && epInv.getRequestParamValue(qname) == null)
+ if ((paramMetaData.getMode().equals(ParameterMode.IN) || paramMetaData.getMode().equals(ParameterMode.INOUT))
+ && epInv.getRequestParamValue(qname) == null)
{
throw new WebServiceException("The RPC/Literal Operation [" + opMetaData.getQName()
+ "] parameters can not be null");
@@ -400,20 +401,9 @@
MessageAbstraction resMessage = msgContext.getMessageAbstraction();
binding.unbindResponseMessage(opMetaData, resMessage, epInv, unboundHeaders);
}
-
- //JBWS-2969: check if the RPC/Lit output paramter is null
- if (opMetaData.getEndpointMetaData().getType() != Type.JAXRPC && opMetaData.isRPCLiteral())
- {
- if (opMetaData.getReturnParameter() != null && epInv.getReturnValue() == null)
- {
- throw new WebServiceException("The RPC/Literal Operation [" + opName
- + "] return value can not be null");
- }
- }
-
retObj = syncOutputParams(inputParams, epInv);
}
-
+
return retObj;
}
catch (Exception ex)
@@ -535,6 +525,10 @@
retValue = epInv.getReturnValue();
if (opMetaData.isDocumentWrapped() && retMetaData.isMessageType() == false)
retValue = ParameterWrapping.unwrapResponseParameters(retMetaData, retValue, inParams);
+ if (opMetaData.getEndpointMetaData().getType() != Type.JAXRPC && opMetaData.isRPCLiteral() && retValue == null)
+ throw new WebServiceException("The RPC/Literal Operation [" + opMetaData.getQName()
+ + "] return value can not be null, it's WS-BP:2211 violation)");
+
}
// Set the holder values for INOUT parameters
@@ -547,6 +541,15 @@
{
QName xmlName = paramMetaData.getXmlName();
Object value = epInv.getResponseParamValue(xmlName);
+ //JBWS-2969:Check if reponse parameter or return value is null
+ if (opMetaData.getEndpointMetaData().getType() != Type.JAXRPC && opMetaData.isRPCLiteral())
+ {
+ if (value == null)
+ {
+ throw new WebServiceException("The RPC/Literal Operation [" + opMetaData.getQName()
+ + "] response parameter value can not be null, it's WS-BP:2211 violation)");
+ }
+ }
// document/literal wrapped return value header
if (index == -1)
{
Modified: stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2010-04-02 16:10:22 UTC (rev 11934)
+++ stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2010-04-05 04:29:32 UTC (rev 11935)
@@ -223,7 +223,7 @@
for (QName qname : sepInv.getRequestParamNames())
{
ParameterMetaData paramMetaData = opMetaData.getParameter(qname);
- if (paramMetaData.getMode().equals(ParameterMode.IN) && sepInv.getRequestParamValue(qname) == null)
+ if ((paramMetaData.getMode().equals(ParameterMode.IN) || paramMetaData.getMode().equals(ParameterMode.INOUT)) && sepInv.getRequestParamValue(qname) == null)
{
throw new WebServiceException("The RPC/Literal Operation [" + opMetaData.getQName()
+ "] parameters can not be null");
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-04-02 16:10:22 UTC (rev 11934)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-04-05 04:29:32 UTC (rev 11935)
@@ -625,7 +625,19 @@
<include name="jboss-web.xml"/>
</webinf>
</war>
+
+ <!-- jaxws-jbws2969 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2969.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2969/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2969/*.class"/>
+ <exclude name="org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.class"/>
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2969/WEB-INF">
+ <include name="jboss-web.xml"/>
+ </webinf>
+ </war>
+
<!-- jaxws-jbws2977 -->
<war warfile="${tests.output.dir}/test-libs/jaxws-jbws2977.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2977/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/Endpoint.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/Endpoint.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/Endpoint.java 2010-04-05 04:29:32 UTC (rev 11935)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2969;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.Holder;
+
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface Endpoint
+{
+
+ /**
+ *
+ * @param in
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(name = "out", partName = "out")
+ public String testPassNull(@WebParam(name = "in", partName = "in") String in);
+
+ /**
+ *
+ * @param in
+ * @return
+ * returns java.lang.String
+ */
+ @WebMethod
+ @WebResult(name = "out", partName = "out")
+ public String testReturnNull(@WebParam(name = "in", partName = "in") String in);
+
+ @WebMethod
+ public void testInHolderNull(@WebParam(name = "arg0", partName = "arg0") String arg0,
+ @WebParam(name = "arg1", mode = WebParam.Mode.INOUT, partName = "arg1") Holder<String> arg1,
+ @WebParam(name = "arg2", mode = WebParam.Mode.OUT, partName = "arg2") Holder<String> arg2,
+ @WebParam(name = "arg3", mode = WebParam.Mode.OUT, partName = "arg3") Holder<String> arg3);
+
+ /**
+ *
+ * @param arg3
+ * @param arg2
+ * @param arg1
+ * @param arg0
+ */
+ @WebMethod
+ public void testInOutHolderNull(@WebParam(name = "arg0", partName = "arg0") String arg0,
+ @WebParam(name = "arg1", mode = WebParam.Mode.INOUT, partName = "arg1") Holder<String> arg1,
+ @WebParam(name = "arg2", mode = WebParam.Mode.OUT, partName = "arg2") Holder<String> arg2,
+ @WebParam(name = "arg3", mode = WebParam.Mode.OUT, partName = "arg3") Holder<String> arg3);
+
+ /**
+ *
+ * @param arg3
+ * @param arg2
+ * @param arg1
+ * @param arg0
+ */
+ @WebMethod
+ public void testOutHolderNull(@WebParam(name = "arg0", partName = "arg0") String arg0,
+ @WebParam(name = "arg1", mode = WebParam.Mode.INOUT, partName = "arg1") Holder<String> arg1,
+ @WebParam(name = "arg2", mode = WebParam.Mode.OUT, partName = "arg2") Holder<String> arg2,
+ @WebParam(name = "arg3", mode = WebParam.Mode.OUT, partName = "arg3") Holder<String> arg3);
+}
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/EndpointImpl.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/EndpointImpl.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/EndpointImpl.java 2010-04-05 04:29:32 UTC (rev 11935)
@@ -0,0 +1,60 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2969;
+
+import javax.jws.WebService;
+import javax.xml.ws.Holder;
+
+@WebService(name = "Endpoint", serviceName= "EndpointService" , targetNamespace = "http://ws.jboss.org", endpointInterface = "org.jboss.test.ws.jaxws.jbws2969.Endpoint")
+public class EndpointImpl implements Endpoint
+{
+ public String testPassNull(String in)
+ {
+ return "helloworld";
+ }
+
+ public String testReturnNull(String in) {
+ return null;
+ }
+
+
+ public void testInHolderNull(String arg0, Holder<String> arg1,Holder<String> arg2, Holder<String> arg3)
+ {
+ arg2.value = "arg2";
+ arg3.value = "arg3";
+
+ }
+
+ public void testInOutHolderNull(String arg0, Holder<String> arg1,Holder<String> arg2, Holder<String> arg3)
+ {
+ arg1.value = null;
+ arg2.value = "arg2";
+ arg3.value = "arg3";
+ }
+
+ public void testOutHolderNull(String arg0, Holder<String> arg1,Holder<String> arg2, Holder<String> arg3)
+ {
+ arg2.value = "arg2";
+ arg3.value = null;
+ }
+
+}
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2969/JBWS2969TestCase.java 2010-04-05 04:29:32 UTC (rev 11935)
@@ -0,0 +1,135 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2969;
+
+import java.net.URL;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.Holder;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceException;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+
+
+/**
+ * A JBWS2969TestCase.
+ *
+ * @author <a href="ema(a)redhat.com">Jim Ma</a>
+ */
+public class JBWS2969TestCase extends JBossWSTest
+{
+
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2969/";
+
+ private static Endpoint port;
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2969TestCase.class, "jaxws-jbws2969.war");
+ }
+
+ public void setUp() throws Exception
+ {
+ super.setUp();
+ URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+ QName serviceName = new QName("http://ws.jboss.org", "EndpointService");
+
+ Service service = Service.create(wsdlURL, serviceName);
+ port = service.getPort(Endpoint.class);
+ }
+
+ public void testRpcLitPassNull() throws Exception
+ {
+ // this should be successful
+ assertEquals("helloworld",port.testPassNull("hello"));
+ //Throw WebServiceException
+ try
+ {
+ port.testPassNull(null);
+ fail("WebServiceException is expected when the rpc lit pass in prameter is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+
+ try
+ {
+ port.testReturnNull("hello");
+ fail("WebServiceException is expected when the rpc lit return value is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+
+ //should be successful
+ Holder<String> arg1 = new Holder<String>();
+ arg1.value = "arg1";
+ port.testInHolderNull("arg0", arg1, new Holder<String>(), new Holder<String>());
+
+
+ //Throw WebServiceException, inout holder pass in parameter is null
+ try
+ {
+ port.testInHolderNull("arg0", new Holder<String>() , new Holder<String>(), new Holder<String>());
+ fail("WebServiceException is expected when the rpc lit pass in holder value is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+
+
+ //Throw WebServiceException, inout holder response parameter is null
+ try
+ {
+ Holder<String> arg = new Holder<String>();
+ arg.value = "arg";
+ port.testInOutHolderNull("arg0", arg , new Holder<String>(), new Holder<String>());
+ fail("WebServiceException is expected when the rpc lit inout holder return value is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+
+
+ //Throw WebServiceException, inout holder response parameter is null
+ try
+ {
+ Holder<String> tmpArg = new Holder<String>();
+ tmpArg.value = "arg";
+ port.testOutHolderNull("arg0", tmpArg , new Holder<String>(), new Holder<String>());
+ fail("WebServiceException is expected when the rpc lit out holder return value is null");
+ }
+ catch (WebServiceException e)
+ {
+ //do nothing
+ }
+ }
+}
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/jboss-web.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/jboss-web.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/jboss-web.xml 2010-04-05 04:29:32 UTC (rev 11935)
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.4//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_4_0.dtd">
+
+<jboss-web>
+ <context-root>/jaxws-jbws2969</context-root>
+</jboss-web>
\ No newline at end of file
Added: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/web.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/web.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2969/WEB-INF/web.xml 2010-04-05 04:29:32 UTC (rev 11935)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
+
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2969.EndpointImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
14 years, 8 months
JBossWS SVN: r11934 - stack/cxf/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-04-02 12:10:22 -0400 (Fri, 02 Apr 2010)
New Revision: 11934
Modified:
stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt
Log:
[JBWS-2983][JBWS-2987] Update excludes
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-04-02 16:09:45 UTC (rev 11933)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-04-02 16:10:22 UTC (rev 11934)
@@ -58,5 +58,5 @@
org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
-# [JBWS-2983] Fix regressions due to HornetQ update
-org/jboss/test/ws/jaxws/samples/jmstransport/**
+# [JBWS-2987] Review JMS integration
+org/jboss/test/ws/jaxws/samples/jmstransport/FromJavaJMSTransportTestCase.*
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-04-02 16:09:45 UTC (rev 11933)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-04-02 16:10:22 UTC (rev 11934)
@@ -58,5 +58,5 @@
org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
-# [JBWS-2983] Fix regressions due to HornetQ update
-org/jboss/test/ws/jaxws/samples/jmstransport/**
+# [JBWS-2987] Review JMS integration
+org/jboss/test/ws/jaxws/samples/jmstransport/FromJavaJMSTransportTestCase.*
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-04-02 16:09:45 UTC (rev 11933)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-04-02 16:10:22 UTC (rev 11934)
@@ -58,5 +58,5 @@
org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
-# [JBWS-2983] Fix regressions due to HornetQ update
-org/jboss/test/ws/jaxws/samples/jmstransport/**
+# [JBWS-2987] Review JMS integration
+org/jboss/test/ws/jaxws/samples/jmstransport/FromJavaJMSTransportTestCase.*
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-04-02 16:09:45 UTC (rev 11933)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-04-02 16:10:22 UTC (rev 11934)
@@ -54,5 +54,5 @@
org/jboss/test/ws/jaxws/jbws2960/*TestCase.*
org/jboss/test/ws/jaxws/handlerscope/*TestCase.*
-# [JBWS-2983] Fix regressions due to HornetQ update
-org/jboss/test/ws/jaxws/samples/jmstransport/**
+# [JBWS-2987] Review JMS integration
+org/jboss/test/ws/jaxws/samples/jmstransport/FromJavaJMSTransportTestCase.*
14 years, 8 months