Author: thomas.diesler(a)jboss.com
Date: 2007-02-16 04:11:04 -0500 (Fri, 16 Feb 2007)
New Revision: 2377
Modified:
branches/jbossws-1.2.0/jbossws-tests/ant-import/build-jars-jaxws.xml
branches/jbossws-1.2.0/jbossws-tests/ant-import/build-samples-jaxws.xml
branches/jbossws-1.2.0/jbossws-tests/build.xml
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpoint.java
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpointBean.java
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPBase.java
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPHandlerTestCase.java
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPTestCase.java
branches/jbossws-1.2.0/jbossws-tests/src/main/resources/tests-tomcat-excludes.txt
Log:
[JBWS-1503] Support XOP samples in tomcat
Modified: branches/jbossws-1.2.0/jbossws-tests/ant-import/build-jars-jaxws.xml
===================================================================
--- branches/jbossws-1.2.0/jbossws-tests/ant-import/build-jars-jaxws.xml 2007-02-15
21:13:50 UTC (rev 2376)
+++ branches/jbossws-1.2.0/jbossws-tests/ant-import/build-jars-jaxws.xml 2007-02-16
09:11:04 UTC (rev 2377)
@@ -194,126 +194,6 @@
</webinf>
</war>
- <!-- jaxws-webserviceref -->
- <war warfile="${tests.output.dir}/libs/jaxws-samples-webserviceref.war"
webxml="${tests.output.dir}/resources/jaxws/samples/webserviceref/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointImpl.class"/>
- </classes>
- </war>
- <jar
destfile="${tests.output.dir}/libs/jaxws-samples-webserviceref-client.jar">
- <fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientOne.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointService.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpoint.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/resources/jaxws/samples/webserviceref/META-INF">
- <include name="application-client.xml"/>
- <include name="jboss-client.xml"/>
- <include name="wsdl/**"/>
- </metainf>
- <manifest>
- <attribute name="main-class"
value="org.jboss.test.ws.jaxws.samples.webserviceref.TestEndpointClientOne"/>
- </manifest>
- </jar>
- <war
destfile="${tests.output.dir}/libs/jaxws-samples-webserviceref-servlet-client.war"
-
webxml="${tests.output.dir}/resources/jaxws/samples/webserviceref/WEB-INF-client/web.xml">
- <classes dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/ServletClient.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointService.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/EchoResponse.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/Echo.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/resources/jaxws/samples/webserviceref/META-INF">
- <include name="jboss-web.xml"/>
- <include name="wsdl/**"/>
- </webinf>
- </war>
- <jar
destfile="${tests.output.dir}/libs/jaxws-samples-webserviceref-ejb3-client.jar">
- <fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/EJB3Client.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/EJB3Remote.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointService.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/EchoResponse.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/Echo.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/resources/jaxws/samples/webserviceref/META-INF">
- <include name="jboss.xml"/>
- <include name="wsdl/**"/>
- </metainf>
- </jar>
- <jar
destfile="${tests.output.dir}/libs/jaxws-samples-webserviceref-secure.jar">
- <fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/SecureEndpointImpl.class"/>
- </fileset>
- </jar>
- <jar
destfile="${tests.output.dir}/libs/jaxws-samples-webserviceref-secure-client.jar">
- <fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/SecureEndpointClient.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/SecureEndpointService.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/SecureEndpoint.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/resources/jaxws/samples/webserviceref/META-INF-secure">
- <include name="application-client.xml"/>
- <include name="jboss-client.xml"/>
- </metainf>
- <manifest>
- <attribute name="main-class"
value="org.jboss.test.ws.jaxws.samples.webserviceref.SecureEndpointClient"/>
- </manifest>
- </jar>
- <jar
destfile="${tests.output.dir}/libs/jaxws-samples-webserviceref-override-client.jar">
- <fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointClientTwo.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpointService.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/webserviceref/TestEndpoint.class"/>
- </fileset>
- <metainf
dir="${tests.output.dir}/resources/jaxws/samples/webserviceref/META-INF-override">
- <include name="jbossws-client-config.xml"/>
- <include name="application-client.xml"/>
- <include name="jboss-client.xml"/>
- </metainf>
- <metainf
dir="${tests.output.dir}/resources/jaxws/samples/webserviceref/META-INF">
- <include name="wsdl/**"/>
- </metainf>
- <manifest>
- <attribute name="main-class"
value="org.jboss.test.ws.jaxws.samples.webserviceref.TestEndpointClientTwo"/>
- </manifest>
- </jar>
-
- <!-- jaxws-samples-wsaddressing -->
- <war warfile="${tests.output.dir}/libs/jaxws-samples-wsaddressing.war"
webxml="${tests.output.dir}/resources/jaxws/samples/wsaddressing/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/wsaddressing/StatefulEndpointImpl.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/wsaddressing/StatefulEndpoint.class"/>
- <include
name="org/jboss/test/ws/jaxws/samples/wsaddressing/ServerHandler.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/resources/jaxws/samples/wsaddressing/WEB-INF">
- <include name="jaxws-handlers.xml"/>
- </webinf>
- </war>
-
- <!-- jaxws-samples-wseventing.war -->
- <war warfile="${tests.output.dir}/libs/jaxws-samples-wseventing.war"
webxml="${tests.output.dir}/resources/jaxws/samples/wseventing/WEB-INF/web.xml">
- <classes dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/wseventing/*.class"/>
- </classes>
- <webinf
dir="${tests.output.dir}/resources/jaxws/samples/wseventing/WEB-INF">
- <include name="wsdl/jboss-web.xml"/>
- <include name="wsdl/sysmon.wsdl"/>
- <include name="wsdl/ws-eventing.wsdl"/>
- <include name="wsdl/ws-eventing.xsd"/>
- <include name="wsdl/ws-addr.xsd"/>
- </webinf>
- </war>
-
- <!-- jaxws-samples-xop-doclit -->
- <jar
jarfile="${tests.output.dir}/libs/jaxws-samples-xop-doclit.jar">
- <fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/xop/doclit/**/*.class"/>
- </fileset>
- </jar>
-
<!-- jaxws-wrapped-accessor -->
<war warfile="${tests.output.dir}/libs/jaxws-wrapped-accessor.war"
webxml="${tests.output.dir}/resources/jaxws/wrapped/accessor/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/classes">
Modified: branches/jbossws-1.2.0/jbossws-tests/ant-import/build-samples-jaxws.xml
===================================================================
--- branches/jbossws-1.2.0/jbossws-tests/ant-import/build-samples-jaxws.xml 2007-02-15
21:13:50 UTC (rev 2376)
+++ branches/jbossws-1.2.0/jbossws-tests/ant-import/build-samples-jaxws.xml 2007-02-16
09:11:04 UTC (rev 2377)
@@ -440,11 +440,12 @@
</war>
<!-- jaxws-samples-xop-doclit -->
- <jar
jarfile="${tests.output.dir}/libs/jaxws-samples-xop-doclit.jar">
- <fileset dir="${tests.output.dir}/classes">
- <include
name="org/jboss/test/ws/jaxws/samples/xop/doclit/**/*.class"/>
- </fileset>
- </jar>
+ <war jarfile="${tests.output.dir}/libs/jaxws-samples-xop-doclit.war"
webxml="${tests.output.dir}/resources/jaxws/samples/xop/doclit/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include
name="org/jboss/test/ws/jaxws/samples/xop/doclit/*.class"/>
+ <exclude
name="org/jboss/test/ws/jaxws/samples/xop/doclit/*TestCase.class"/>
+ </classes>
+ </war>
<!-- Please add alphabetically -->
Modified: branches/jbossws-1.2.0/jbossws-tests/build.xml
===================================================================
--- branches/jbossws-1.2.0/jbossws-tests/build.xml 2007-02-15 21:13:50 UTC (rev 2376)
+++ branches/jbossws-1.2.0/jbossws-tests/build.xml 2007-02-16 09:11:04 UTC (rev 2377)
@@ -414,10 +414,10 @@
<!-- ================================================================== -->
<target name="main"
depends="wsconsume,compile,copy-resources,generate-resources"
description="Build the deployments.">
+ <ant antfile="${basedir}/ant-import/build-jars-jaxrpc.xml"
target="build-jars-jaxrpc" inheritall="true"/>
+ <ant antfile="${basedir}/ant-import/build-jars-jaxws.xml"
target="build-jars-jaxws" inheritall="true"/>
<ant antfile="${basedir}/ant-import/build-samples-jaxrpc.xml"
target="build-samples-jaxrpc" inheritall="true"/>
<ant antfile="${basedir}/ant-import/build-samples-jaxws.xml"
target="build-samples-jaxws" inheritall="true"/>
- <ant antfile="${basedir}/ant-import/build-jars-jaxrpc.xml"
target="build-jars-jaxrpc" inheritall="true"/>
- <ant antfile="${basedir}/ant-import/build-jars-jaxws.xml"
target="build-jars-jaxws" inheritall="true"/>
</target>
<!-- ================================================================== -->
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpoint.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpoint.java 2007-02-15
21:13:50 UTC (rev 2376)
+++
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpoint.java 2007-02-16
09:11:04 UTC (rev 2377)
@@ -1,17 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package org.jboss.test.ws.jaxws.samples.xop.doclit;
-import javax.ejb.Remote;
import javax.jws.WebService;
import javax.jws.soap.SOAPBinding;
import javax.xml.ws.BindingType;
-@Remote
@WebService(targetNamespace = "http://org.jboss.ws/xop/doclit")
@SOAPBinding(style = SOAPBinding.Style.DOCUMENT, parameterStyle =
SOAPBinding.ParameterStyle.BARE)
-@BindingType(value="http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
-public interface MTOMEndpoint {
+@BindingType(value = "http://schemas.xmlsoap.org/wsdl/soap/http?mtom=true")
+public interface MTOMEndpoint
+{
+ public DHResponse echoDataHandler(DHRequest request);
- public DHResponse echoDataHandler(DHRequest request);
public ImageResponse echoImage(ImageRequest request);
- public SourceResponse echoSource(SourceRequest request);
+
+ public SourceResponse echoSource(SourceRequest request);
}
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpointBean.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpointBean.java 2007-02-15
21:13:50 UTC (rev 2376)
+++
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/MTOMEndpointBean.java 2007-02-16
09:11:04 UTC (rev 2377)
@@ -1,56 +1,55 @@
/*
-* JBoss, Home of Professional Open Source
-* Copyright 2005, JBoss Inc., and individual contributors as indicated
-* by the @authors tag. See the copyright.txt in the distribution for a
-* full listing of individual contributors.
-*
-* This is free software; you can redistribute it and/or modify it
-* under the terms of the GNU Lesser General Public License as
-* published by the Free Software Foundation; either version 2.1 of
-* the License, or (at your option) any later version.
-*
-* This software is distributed in the hope that it will be useful,
-* but WITHOUT ANY WARRANTY; without even the implied warranty of
-* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-* Lesser General Public License for more details.
-*
-* You should have received a copy of the GNU Lesser General Public
-* License along with this software; if not, write to the Free
-* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-* 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
-*/
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ */
package org.jboss.test.ws.jaxws.samples.xop.doclit;
import java.io.IOException;
import javax.activation.DataHandler;
-import javax.ejb.Stateless;
import javax.jws.WebService;
import org.jboss.ws.WSException;
-@Stateless
-@WebService(name="MTOMEndpoint", serviceName = "MTOMService",
endpointInterface = "org.jboss.test.ws.jaxws.samples.xop.doclit.MTOMEndpoint")
-public class MTOMEndpointBean implements MTOMEndpoint {
-
- public DHResponse echoDataHandler(DHRequest request) {
+@WebService(name = "MTOMEndpoint", serviceName = "MTOMService",
endpointInterface = "org.jboss.test.ws.jaxws.samples.xop.doclit.MTOMEndpoint")
+public class MTOMEndpointBean implements MTOMEndpoint
+{
+ public DHResponse echoDataHandler(DHRequest request)
+ {
+
DataHandler dataHandler = request.getDataHandler();
try
{
System.out.println("Recv " + dataHandler.getContentType());
- System.out.println("Content is "+ dataHandler.getContent());
+ System.out.println("Content is " + dataHandler.getContent());
}
catch (IOException e)
{
throw new WSException(e);
}
- return new DHResponse( request.getDataHandler() );
+ return new DHResponse(request.getDataHandler());
}
-
public ImageResponse echoImage(ImageRequest request)
{
return new ImageResponse(request.getData());
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPBase.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPBase.java 2007-02-15
21:13:50 UTC (rev 2376)
+++
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPBase.java 2007-02-16
09:11:04 UTC (rev 2377)
@@ -44,9 +44,15 @@
protected MTOMEndpoint port;
protected SOAPBinding binding;
- protected abstract MTOMEndpoint getPort();
+ protected MTOMEndpoint getPort()
+ {
+ return port;
+ }
- protected abstract SOAPBinding getBinding();
+ protected SOAPBinding getBinding()
+ {
+ return binding;
+ }
public void testDHRoundtrip() throws Exception
{
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPHandlerTestCase.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPHandlerTestCase.java 2007-02-15
21:13:50 UTC (rev 2376)
+++
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPHandlerTestCase.java 2007-02-16
09:11:04 UTC (rev 2377)
@@ -42,12 +42,11 @@
*/
public class XOPHandlerTestCase extends XOPBase
{
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-samples-xop-doclit/MTOMService";
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-samples-xop-doclit/MTOMEndpointBean";
-
public static Test suite()
{
- return JBossWSTestSetup.newTestSetup(XOPHandlerTestCase.class,
"jaxws-samples-xop-doclit.jar");
+ return JBossWSTestSetup.newTestSetup(XOPHandlerTestCase.class,
"jaxws-samples-xop-doclit.war");
}
protected void setUp() throws Exception
@@ -68,15 +67,4 @@
handlerChain.add(new MTOMProtocolHandler());
binding.setHandlerChain(handlerChain);
}
-
- protected MTOMEndpoint getPort()
- {
- return port;
- }
-
- protected SOAPBinding getBinding()
- {
- return binding;
- }
-
}
\ No newline at end of file
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPTestCase.java
===================================================================
---
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPTestCase.java 2007-02-15
21:13:50 UTC (rev 2376)
+++
branches/jbossws-1.2.0/jbossws-tests/src/main/java/org/jboss/test/ws/jaxws/samples/xop/doclit/XOPTestCase.java 2007-02-16
09:11:04 UTC (rev 2377)
@@ -39,11 +39,11 @@
public class XOPTestCase extends XOPBase
{
- public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-samples-xop-doclit/MTOMEndpointBean";
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() +
":8080/jaxws-samples-xop-doclit/MTOMService";
public static Test suite()
{
- return JBossWSTestSetup.newTestSetup(XOPTestCase.class,
"jaxws-samples-xop-doclit.jar");
+ return JBossWSTestSetup.newTestSetup(XOPTestCase.class,
"jaxws-samples-xop-doclit.war");
}
protected void setUp() throws Exception
@@ -60,15 +60,4 @@
binding.setMTOMEnabled(true);
}
-
- protected MTOMEndpoint getPort()
- {
- return port;
- }
-
- protected SOAPBinding getBinding()
- {
- return binding;
- }
-
}
\ No newline at end of file
Modified:
branches/jbossws-1.2.0/jbossws-tests/src/main/resources/tests-tomcat-excludes.txt
===================================================================
---
branches/jbossws-1.2.0/jbossws-tests/src/main/resources/tests-tomcat-excludes.txt 2007-02-15
21:13:50 UTC (rev 2376)
+++
branches/jbossws-1.2.0/jbossws-tests/src/main/resources/tests-tomcat-excludes.txt 2007-02-16
09:11:04 UTC (rev 2377)
@@ -25,7 +25,3 @@
# [JBWS-1471] - Remove unwanted tomcat excludes
org/jboss/test/ws/jaxrpc/samples/wssecurity/StorePassEncryptTestCase.*
org/jboss/test/ws/jaxws/samples/wseventing/**
-
-# [JBWS-1503] - Support XOP samples in tomcat
-org/jboss/test/ws/jaxrpc/samples/xop/**
-org/jboss/test/ws/jaxws/samples/xop/**