geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ga...@apache.org
Subject svn commit: r723148 [1/2] - in /geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests: ./ mtom-ear/ mtom-ear/src/ mtom-ear/src/main/ mtom-ear/src/main/resources/ mtom-ear/src/main/resources/META-INF/ mtom-ear/src/test/ mtom-ear/src/tes...
Date Wed, 03 Dec 2008 23:45:02 GMT
Author: gawor
Date: Wed Dec  3 15:45:00 2008
New Revision: 723148

URL: http://svn.apache.org/viewvc?rev=723148&view=rev
Log:
webservices testsuite for mtom support. Patch from Ivan with slight modifications (GERONIMO-4439)

Added:
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/goals.txt   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/pom.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/META-INF/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/META-INF/geronimo-application.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/EJBMTOMTest.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/MTOMTest.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/WebMTOMTest.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/pom.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/AttachmentHandler.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/EchoBean.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/handlers.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/ejb-jar.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/openejb-jar.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/pom.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Echo.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytes.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytesResponse.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImage.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImageResponse.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoService.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Hello.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/HelloResponse.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/ObjectFactory.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/package-info.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/jaxws/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/jaxws/mtom/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/jaxws/mtom/TestServlet.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/jaxws/mtom/TestServletEJB.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/jaxws/mtom/TestServletWeb.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/resources/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/resources/image.jpg   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/webapp/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/webapp/WEB-INF/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/webapp/WEB-INF/geronimo-web.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/webapp/WEB-INF/web.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/webapp/WEB-INF/wsdl/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/webapp/WEB-INF/wsdl/echo.wsdl   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/pom.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/java/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/java/org/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/java/org/apache/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/java/org/apache/geronimo/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/java/org/apache/geronimo/jaxws/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/java/org/apache/geronimo/jaxws/test/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/java/org/apache/geronimo/jaxws/test/AttachmentHandler.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/java/org/apache/geronimo/jaxws/test/EchoImpl.java   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/java/org/apache/geronimo/jaxws/test/handlers.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/webapp/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/webapp/WEB-INF/
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/webapp/WEB-INF/geronimo-web.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-war/src/main/webapp/WEB-INF/web.xml   (with props)
    geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/pom.xml   (with props)

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/goals.txt
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/goals.txt?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/goals.txt (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/goals.txt Wed Dec  3 15:45:00 2008
@@ -0,0 +1 @@
+clean install

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/goals.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/goals.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/goals.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/pom.xml?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/pom.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/pom.xml Wed Dec  3 15:45:00 2008
@@ -0,0 +1,179 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>jaxws-mtom-tests</artifactId>
+        <version>2.2-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>mtom-ear</artifactId>
+    <name>Geronimo TestSuite :: WebServices TestSuite :: JAX-WS MTOM EAR</name>
+    <packaging>ear</packaging>
+
+    <description>This project executes testcases for your testsuite</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>org.apache.geronimo.testsuite</groupId>
+            <artifactId>mtom-war</artifactId>
+            <version>${version}</version>
+            <type>war</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.testsuite</groupId>
+            <artifactId>mtom-ejb</artifactId>
+            <version>${version}</version>
+            <type>ejb</type>
+        </dependency>
+
+        <dependency>
+            <groupId>org.apache.geronimo.testsuite</groupId>
+            <artifactId>mtom-test-war</artifactId>
+            <version>${version}</version>
+            <type>war</type>
+            <scope>test</scope>
+        </dependency>
+
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <plugins>
+            <plugin>
+                <artifactId>maven-ear-plugin</artifactId>
+                <configuration>
+                    <displayName>JAX-WS MTOM TestSuite EAR</displayName>
+                    <description>JAX-WS MTOM TestSuite EAR</description>
+                    <version>5</version>
+                    <modules>
+                        <webModule>
+                            <groupId>org.apache.geronimo.testsuite</groupId>
+                            <artifactId>mtom-war</artifactId>
+                            <contextRoot>/mtom</contextRoot>
+                            <bundleFileName>mtom-war-${version}.war</bundleFileName>
+                        </webModule>
+                        <ejbModule>
+                            <groupId>org.apache.geronimo.testsuite</groupId>
+                            <artifactId>mtom-ejb</artifactId>
+                            <bundleFileName>mtom-ejb-${version}.jar</bundleFileName>
+                        </ejbModule>
+                    </modules>
+                </configuration>
+            </plugin>
+            <plugin>
+                <artifactId>maven-compiler-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>testCompile</goal>
+                        </goals>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.geronimo.buildsupport</groupId>
+                <artifactId>testsuite-maven-plugin</artifactId>
+                <version>${version}</version>
+                <executions>
+                    <execution>
+                        <id>generate-surefire-xml</id>
+                        <phase>install</phase>
+                        <goals>
+                            <goal>generate-surefire-xml</goal>
+                        </goals>
+                        <!-- 
+                        Merging the configuration of this plugin with the one it inherits.
+                        Updating the reports in the grandparent directly as we'd have missed the boat for the parent's install phase.
+                        -->
+                        <configuration>
+                            <grandParent>true</grandParent>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-surefire-plugin</artifactId>
+                <configuration>
+                    <systemProperties>
+                        <property>
+                            <name>webAppName</name>
+                            <value>mtom-test-war</value>
+                        </property>
+                    </systemProperties>
+                </configuration>
+            </plugin>
+            <plugin>
+                <groupId>org.apache.geronimo.buildsupport</groupId>
+                <artifactId>geronimo-maven-plugin</artifactId>
+                <executions>
+                    <execution>
+                        <id>deploy-wars</id>
+                        <phase>pre-integration-test</phase>
+                        <goals>
+                            <goal>deploy-module</goal>
+                        </goals>
+                        <configuration>
+                            <modules>
+                                <module>
+                                    <groupId>org.apache.geronimo.testsuite</groupId>
+                                    <artifactId>mtom-test-war</artifactId>
+                                    <type>war</type>
+                                    <version>${version}</version>
+                                </module>
+                            </modules>
+                            <moduleArchive>${project.build.directory}/${artifactId}-${version}.ear</moduleArchive>
+                        </configuration>
+                    </execution>
+                            
+                    <execution>
+                        <id>undeploy-war-as-moduleId</id>
+                        <phase>post-integration-test</phase>
+                        <goals>
+                            <goal>undeploy-module</goal>
+                        </goals>
+                        <configuration>
+                            <modules>
+                                <module>
+                                    <groupId>org.apache.geronimo.testsuite</groupId>
+                                    <artifactId>mtom-test-war</artifactId>
+                                    <type>war</type>
+                                    <version>${version}</version>
+                                </module>
+                            </modules>
+                            <moduleId>${groupId}/${artifactId}/${version}/ear</moduleId>
+                        </configuration>
+                    </execution>
+                </executions>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
+

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/META-INF/geronimo-application.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/META-INF/geronimo-application.xml?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/META-INF/geronimo-application.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/META-INF/geronimo-application.xml Wed Dec  3 15:45:00 2008
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<application xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-2.0">
+
+    <environment xmlns="http://geronimo.apache.org/xml/ns/deployment-1.2">
+        <moduleId>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>${pom.artifactId}</artifactId>
+            <version>${version}</version>
+            <type>ear</type>
+        </moduleId>
+    </environment>
+
+</application>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/main/resources/META-INF/geronimo-application.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/EJBMTOMTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/EJBMTOMTest.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/EJBMTOMTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/EJBMTOMTest.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,27 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package org.apache.geronimo.jaxws.mtom;
+
+public class EJBMTOMTest extends MTOMTest {
+
+    protected String getTestServlet() {
+        return "/test-ejb";
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/EJBMTOMTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/EJBMTOMTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/EJBMTOMTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/MTOMTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/MTOMTest.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/MTOMTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/MTOMTest.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,92 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package org.apache.geronimo.jaxws.mtom;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+
+import org.apache.geronimo.testsupport.TestSupport;
+import org.testng.annotations.Test;
+
+public abstract class MTOMTest extends TestSupport {
+
+    private String baseURL = "http://localhost:8080/";
+
+    abstract String getTestServlet();
+
+    private String doGET(HttpURLConnection conn) throws IOException {
+        conn.setConnectTimeout(30 * 1000);
+        conn.setReadTimeout(30 * 1000);
+        InputStream is = null;
+        try {
+            is = conn.getInputStream();
+        } catch (IOException e) {
+            is = conn.getErrorStream();
+        }
+        StringBuffer buf = new StringBuffer();
+        BufferedReader in = new BufferedReader(new InputStreamReader(is));
+        String inputLine;
+        while ((inputLine = in.readLine()) != null) {
+            System.out.println(inputLine);
+            buf.append(inputLine);
+        }
+        in.close();
+        return buf.toString();
+    }
+
+    @Test
+    public void testEchoBytesWithMTOMSupport() throws Exception {
+        runTest("testEchoBytesWithMTOMSupport");
+    }
+
+    @Test
+    public void testEchoBytesWithoutMTOMSupport() throws Exception {
+        runTest("testEchoBytesWithoutMTOMSupport");
+    }
+
+    /*
+    @Test
+    public void testEchoImageWithMTOMSupport() throws Exception {
+        runTest("testEchoImageWithMTOMSupport");
+    }
+
+    @Test
+    public void testEchoImageWithoutMTOMSupport() throws Exception {
+        runTest("testEchoImageWithoutMTOMSupport");
+    }
+    */
+
+    protected void runTest(String testName) throws Exception {
+        String warName = System.getProperty("webAppName");
+        assertNotNull(warName);
+        URL url = new URL(baseURL + warName + getTestServlet() + "?test=" + testName);
+        HttpURLConnection connection = (HttpURLConnection) url.openConnection();
+        try {
+            String reply = doGET(connection);
+            assertEquals("responseCode", 200, connection.getResponseCode());
+        } finally {
+            connection.disconnect();
+        }
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/MTOMTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/MTOMTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/MTOMTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/WebMTOMTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/WebMTOMTest.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/WebMTOMTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/WebMTOMTest.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,27 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package org.apache.geronimo.jaxws.mtom;
+
+public class WebMTOMTest extends MTOMTest {
+
+    protected String getTestServlet() {
+        return "/test-web";
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/WebMTOMTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/WebMTOMTest.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ear/src/test/java/org/apache/geronimo/jaxws/mtom/WebMTOMTest.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/pom.xml?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/pom.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/pom.xml Wed Dec  3 15:45:00 2008
@@ -0,0 +1,79 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    
+    <modelVersion>4.0.0</modelVersion>
+
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>jaxws-mtom-tests</artifactId>
+        <version>2.2-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>mtom-ejb</artifactId>
+    <name>Geronimo TestSuite :: WebServices TestSuite :: JAX-WS MTOM EJB</name>
+    <packaging>jar</packaging>
+
+    <description>This project executes testcases for your testsuite</description>
+
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-ejb_3.0_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+
+    <build>
+        <resources>
+            <resource>
+                <directory>src/main/java</directory>
+                <includes>
+                    <include>**/*.xml</include>
+                </includes>
+             </resource>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>true</filtering>
+            </resource>
+        </resources>
+
+        <plugins>
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-jar-plugin</artifactId>
+                <configuration>
+                    <archive>
+                        <manifest>
+                            <addClasspath>true</addClasspath>
+                        </manifest>
+                    </archive>
+                </configuration>
+            </plugin>
+        </plugins>
+    </build>
+
+</project>
+

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/AttachmentHandler.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/AttachmentHandler.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/AttachmentHandler.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/AttachmentHandler.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,121 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.jaxws.test;
+
+import java.util.Set;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPHandler;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import junit.framework.Assert;
+
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+public class AttachmentHandler implements SOAPHandler<SOAPMessageContext> {
+
+    private static final Logger LOG = LoggerFactory.getLogger(AttachmentHandler.class);
+
+    public void close(MessageContext messageContext) {
+        // TODO Auto-generated method stub
+    }
+
+    public boolean handleFault(SOAPMessageContext soapMessageContext) {
+        // TODO Auto-generated method stub
+        return false;
+    }
+
+    public boolean handleMessage(SOAPMessageContext soapMessageContext) {
+        boolean outbound = (Boolean) soapMessageContext.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
+        SOAPMessage soapMessage = soapMessageContext.getMessage();
+        try {
+            if (outbound) {
+                //MTOM is always enabled
+                Element xopInclude = findElementNode(soapMessage.getSOAPBody(), "include");
+                //include element should be find in the soap message
+                Assert.assertNotNull(xopInclude);
+                //Attachment size should be 1
+                int attachments = soapMessage.countAttachments();
+                if (attachments == 0) {
+                    LOG.warn("Expected 1 attachment but got 0");
+                } else if (attachments == 1) {
+                    // that's what we expect
+                } else {
+                    Assert.fail("Unexpected number of attachments: " + attachments);
+                }
+            } else {
+                Element useMTOMElement = findElementNode(soapMessage.getSOAPBody(), "useMTOM");
+                if (useMTOMElement != null) {
+                    String sUseMTOM = getSubTextChildValue(useMTOMElement);
+                    //If the useMTOM is true, the attachment size should be 1, or the attachment size should be 0
+                    if (Boolean.parseBoolean(sUseMTOM))
+                        Assert.assertEquals(soapMessage.countAttachments(), 1);
+                    else
+                        Assert.assertEquals(soapMessage.countAttachments(), 0);
+                }
+            }
+        } catch (Exception e) {
+            return false;
+        }
+        return true;
+    }
+
+    private String getSubTextChildValue(Element element) {
+        NodeList childrenList = element.getChildNodes();
+        if (childrenList.getLength() == 0)
+            return null;
+        for (int i = 0; i < childrenList.getLength(); i++) {
+            Node node = childrenList.item(i);
+            if (node.getNodeType() == Node.TEXT_NODE)
+                return ((Text) node).getNodeValue();
+        }
+        return null;
+    }
+
+    private Element findElementNode(Element rootElement, String elementName) {
+        if (rootElement.getLocalName().equalsIgnoreCase(elementName))
+            return rootElement;
+        NodeList childrenList = rootElement.getChildNodes();
+        if (childrenList.getLength() > 0) {
+            for (int i = 0; i < childrenList.getLength(); i++) {
+                Node node = childrenList.item(i);
+                if (node.getNodeType() == Node.ELEMENT_NODE) {
+                    Element findElement = findElementNode((Element) node, elementName);
+                    if (findElement != null)
+                        return findElement;
+                }
+            }
+        }
+        return null;
+    }
+
+    public Set<QName> getHeaders() {
+        // TODO Auto-generated method stub
+        return null;
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/AttachmentHandler.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/AttachmentHandler.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/AttachmentHandler.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/EchoBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/EchoBean.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/EchoBean.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/EchoBean.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,69 @@
+/**
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+
+package org.apache.geronimo.jaxws.test;
+
+import javax.annotation.PostConstruct;
+import javax.annotation.PreDestroy;
+import javax.annotation.Resource;
+import javax.ejb.Stateless;
+import javax.jws.HandlerChain;
+import javax.jws.WebParam;
+import javax.jws.WebService;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.soap.MTOM;
+import javax.xml.ws.soap.SOAPBinding;
+
+@WebService(serviceName = "EchoService", portName = "EchoPort", name = "Echo", targetNamespace = "http://geronimo.apache.org/echo")
+@MTOM(enabled = true)
+@HandlerChain(file = "handlers.xml")
+@Stateless(mappedName = "EchoBean")
+@BindingType(value = SOAPBinding.SOAP11HTTP_BINDING)
+public class EchoBean {
+
+    @Resource
+    private WebServiceContext context;
+
+    public String hello(String name) {
+        return "Hello, " + name;
+    }
+
+    public byte[] echoBytes(
+            @WebParam(name = "useMTOM", targetNamespace = "") boolean useMTOM,
+            @WebParam(name = "bytes", targetNamespace = "") byte[] bytes) {
+        return bytes;
+    }
+
+    public byte[] echoImage(
+            @WebParam(name = "useMTOM", targetNamespace = "") boolean useMTOM,
+            @WebParam(name = "imageBytes", targetNamespace = "") byte[] imageBytes) {
+        return imageBytes;
+    }
+
+    @PostConstruct
+    private void myInit() {
+        System.out.println(this + " PostConstruct");
+    }
+
+    @PreDestroy()
+    private void myDestroy() {
+        System.out.println(this + " PreDestroy");
+    }
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/EchoBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/EchoBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/EchoBean.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/handlers.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/handlers.xml?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/handlers.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/handlers.xml Wed Dec  3 15:45:00 2008
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<jws:handler-chains xmlns:jws="http://java.sun.com/xml/ns/javaee">
+  <jws:handler-chain>
+    <jws:handler>
+      <jws:handler-name>Handler</jws:handler-name>
+      <jws:handler-class>org.apache.geronimo.jaxws.test.AttachmentHandler</jws:handler-class>
+    </jws:handler>    
+  </jws:handler-chain>
+</jws:handler-chains>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/handlers.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/handlers.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/java/org/apache/geronimo/jaxws/test/handlers.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/ejb-jar.xml?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/ejb-jar.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/ejb-jar.xml Wed Dec  3 15:45:00 2008
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<ejb-jar version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">
+  <display-name>JAX-WS MTOM Test</display-name>
+
+  <enterprise-beans>
+    <session>
+      <display-name>EchoBean</display-name>
+      <ejb-name>EchoBean</ejb-name>
+      <ejb-class>org.apache.geronimo.jaxws.test.EchoBean</ejb-class>
+      <session-type>Stateless</session-type>
+      <transaction-type>Container</transaction-type>
+    </session>
+  </enterprise-beans>
+
+</ejb-jar>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/openejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/openejb-jar.xml?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/openejb-jar.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/openejb-jar.xml Wed Dec  3 15:45:00 2008
@@ -0,0 +1,34 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements.  See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership.  The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License.  You may obtain a copy of the License at
+    
+     http://www.apache.org/licenses/LICENSE-2.0
+    
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied.  See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<openejb-jar xmlns="http://openejb.apache.org/xml/ns/openejb-jar-2.2"
+  xmlns:pkgen="http://openejb.apache.org/xml/ns/pkgen-2.1"
+  xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.2"
+  xmlns:sys="http://geronimo.apache.org/xml/ns/deployment-1.2">
+
+    <environment>
+        <moduleId>
+            <groupId>${pom.groupId}</groupId>
+            <artifactId>${pom.artifactId}</artifactId>
+            <version>${version}</version>
+            <type>jar</type>
+        </moduleId>
+   </environment>
+
+</openejb-jar>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-ejb/src/main/resources/META-INF/openejb-jar.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/pom.xml?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/pom.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/pom.xml Wed Dec  3 15:45:00 2008
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+-->
+
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>org.apache.geronimo.testsuite</groupId>
+        <artifactId>jaxws-mtom-tests</artifactId>
+        <version>2.2-SNAPSHOT</version>
+    </parent>
+    <artifactId>mtom-test-war</artifactId>
+    <name>Geronimo TestSuite :: WebServices TestSuite :: JAX-WS MTOM WAR Test Client</name>
+    <packaging>war</packaging>
+    <dependencies>
+        <dependency>
+            <groupId>junit</groupId>
+            <artifactId>junit</artifactId>
+        </dependency>
+        <dependency>
+            <groupId>org.apache.geronimo.specs</groupId>
+            <artifactId>geronimo-servlet_2.5_spec</artifactId>
+            <scope>provided</scope>
+        </dependency>
+    </dependencies>
+    <build>
+        <resources>
+            <resource>
+                <directory>src/main/resources</directory>
+                <filtering>false</filtering>
+            </resource>
+        </resources>
+    </build>
+</project>

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/pom.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/pom.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/pom.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Echo.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Echo.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Echo.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Echo.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,87 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package org.apache.geronimo.echo;
+
+import java.awt.Image;
+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.RequestWrapper;
+import javax.xml.ws.ResponseWrapper;
+
+@WebService(name = "Echo", targetNamespace = "http://geronimo.apache.org/echo")
+@XmlSeeAlso({
+    ObjectFactory.class
+})
+public interface Echo {
+
+
+    /**
+     * 
+     * @param arg0
+     * @return
+     *     returns java.lang.String
+     */
+    @WebMethod
+    @WebResult(targetNamespace = "")
+    @RequestWrapper(localName = "hello", targetNamespace = "http://geronimo.apache.org/echo", className = "org.apache.geronimo.echo.Hello")
+    @ResponseWrapper(localName = "helloResponse", targetNamespace = "http://geronimo.apache.org/echo", className = "org.apache.geronimo.echo.HelloResponse")
+    public String hello(
+        @WebParam(name = "arg0", targetNamespace = "")
+        String arg0);
+
+    /**
+     * 
+     * @param bytes
+     * @param useMTOM
+     * @return
+     *     returns byte[]
+     */
+    @WebMethod
+    @WebResult(targetNamespace = "")
+    @RequestWrapper(localName = "echoBytes", targetNamespace = "http://geronimo.apache.org/echo", className = "org.apache.geronimo.echo.EchoBytes")
+    @ResponseWrapper(localName = "echoBytesResponse", targetNamespace = "http://geronimo.apache.org/echo", className = "org.apache.geronimo.echo.EchoBytesResponse")
+    public byte[] echoBytes(
+        @WebParam(name = "useMTOM", targetNamespace = "")
+        boolean useMTOM,
+        @WebParam(name = "bytes", targetNamespace = "")
+        byte[] bytes);
+
+    /**
+     * 
+     * @param imageBytes
+     * @param useMTOM
+     * @return
+     *     returns java.awt.Image
+     */
+    @WebMethod
+    @WebResult(targetNamespace = "")
+    @RequestWrapper(localName = "echoImage", targetNamespace = "http://geronimo.apache.org/echo", className = "org.apache.geronimo.echo.EchoImage")
+    @ResponseWrapper(localName = "echoImageResponse", targetNamespace = "http://geronimo.apache.org/echo", className = "org.apache.geronimo.echo.EchoImageResponse")
+    public Image echoImage(
+        @WebParam(name = "useMTOM", targetNamespace = "")
+        boolean useMTOM,
+        @WebParam(name = "imageBytes", targetNamespace = "")
+        Image imageBytes);
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Echo.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Echo.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Echo.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytes.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytes.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytes.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytes.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,97 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.echo;
+
+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 echoBytes complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echoBytes">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="useMTOM" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         &lt;element name="bytes" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echoBytes", namespace = "http://geronimo.apache.org/echo", propOrder = {
+    "useMTOM",
+    "bytes"
+})
+public class EchoBytes {
+
+    protected boolean useMTOM;
+    @XmlElement(required = true)
+    protected byte[] bytes;
+
+    /**
+     * Gets the value of the useMTOM property.
+     * 
+     */
+    public boolean isUseMTOM() {
+        return useMTOM;
+    }
+
+    /**
+     * Sets the value of the useMTOM property.
+     * 
+     */
+    public void setUseMTOM(boolean value) {
+        this.useMTOM = value;
+    }
+
+    /**
+     * Gets the value of the bytes property.
+     * 
+     * @return
+     *     possible object is
+     *     byte[]
+     */
+    public byte[] getBytes() {
+        return bytes;
+    }
+
+    /**
+     * Sets the value of the bytes property.
+     * 
+     * @param value
+     *     allowed object is
+     *     byte[]
+     */
+    public void setBytes(byte[] value) {
+        this.bytes = ((byte[]) value);
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytes.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytes.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytes.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytesResponse.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytesResponse.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytesResponse.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytesResponse.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,79 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package org.apache.geronimo.echo;
+
+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 echoBytesResponse complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echoBytesResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echoBytesResponse", namespace = "http://geronimo.apache.org/echo", propOrder = {
+    "_return"
+})
+public class EchoBytesResponse {
+
+    @XmlElement(name = "return", required = true)
+    protected byte[] _return;
+
+    /**
+     * Gets the value of the return property.
+     * 
+     * @return
+     *     possible object is
+     *     byte[]
+     */
+    public byte[] getReturn() {
+        return _return;
+    }
+
+    /**
+     * Sets the value of the return property.
+     * 
+     * @param value
+     *     allowed object is
+     *     byte[]
+     */
+    public void setReturn(byte[] value) {
+        this._return = ((byte[]) value);
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytesResponse.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytesResponse.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoBytesResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImage.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImage.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImage.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImage.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,103 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package org.apache.geronimo.echo;
+
+import java.awt.Image;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for echoImage complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echoImage">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="useMTOM" type="{http://www.w3.org/2001/XMLSchema}boolean"/>
+ *         &lt;element name="imageBytes" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echoImage", namespace = "http://geronimo.apache.org/echo", propOrder = {
+    "useMTOM",
+    "imageBytes"
+})
+public class EchoImage {
+
+    protected boolean useMTOM;
+    @XmlElement(required = true)
+    @XmlMimeType("image/jpeg")
+    protected Image imageBytes;
+
+    /**
+     * Gets the value of the useMTOM property.
+     * 
+     */
+    public boolean isUseMTOM() {
+        return useMTOM;
+    }
+
+    /**
+     * Sets the value of the useMTOM property.
+     * 
+     */
+    public void setUseMTOM(boolean value) {
+        this.useMTOM = value;
+    }
+
+    /**
+     * Gets the value of the imageBytes property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Image }
+     *     
+     */
+    public Image getImageBytes() {
+        return imageBytes;
+    }
+
+    /**
+     * Sets the value of the imageBytes property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Image }
+     *     
+     */
+    public void setImageBytes(Image value) {
+        this.imageBytes = value;
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImage.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImage.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImage.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImageResponse.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImageResponse.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImageResponse.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImageResponse.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,83 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.echo;
+
+import java.awt.Image;
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.bind.annotation.XmlType;
+
+
+/**
+ * <p>Java class for echoImageResponse complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="echoImageResponse">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="return" type="{http://www.w3.org/2001/XMLSchema}base64Binary"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "echoImageResponse", namespace = "http://geronimo.apache.org/echo", propOrder = {
+    "_return"
+})
+public class EchoImageResponse {
+
+    @XmlElement(name = "return", required = true)
+    @XmlMimeType("image/jpeg")
+    protected Image _return;
+
+    /**
+     * Gets the value of the return property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link Image }
+     *     
+     */
+    public Image getReturn() {
+        return _return;
+    }
+
+    /**
+     * Sets the value of the return property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link Image }
+     *     
+     */
+    public void setReturn(Image value) {
+        this._return = value;
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImageResponse.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImageResponse.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoImageResponse.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoService.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoService.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoService.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoService.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,77 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.geronimo.echo;
+
+import java.net.MalformedURLException;
+import java.net.URL;
+import javax.xml.namespace.QName;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebEndpoint;
+import javax.xml.ws.WebServiceClient;
+import javax.xml.ws.WebServiceFeature;
+
+@WebServiceClient(name = "EchoService", targetNamespace = "http://geronimo.apache.org/echo", wsdlLocation = "http://localhost:8080/mtom-war/echo?wsdl")
+public class EchoService
+    extends Service
+{
+
+    private final static URL ECHOSERVICE_WSDL_LOCATION;
+
+    static {
+        URL url = null;
+        try {
+            url = new URL("http://localhost:8080/mtom-war/echo?wsdl");
+        } catch (MalformedURLException e) {
+            e.printStackTrace();
+        }
+        ECHOSERVICE_WSDL_LOCATION = url;
+    }
+
+    public EchoService(URL wsdlLocation, QName serviceName) {
+        super(wsdlLocation, serviceName);
+    }
+
+    public EchoService() {
+        super(ECHOSERVICE_WSDL_LOCATION, new QName("http://geronimo.apache.org/echo", "EchoService"));
+    }
+
+    /**
+     * 
+     * @return
+     *     returns Echo
+     */
+    @WebEndpoint(name = "EchoPort")
+    public Echo getEchoPort() {
+        return (Echo)super.getPort(new QName("http://geronimo.apache.org/echo", "EchoPort"), Echo.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 Echo
+     */
+    @WebEndpoint(name = "EchoPort")
+    public Echo getEchoPort(WebServiceFeature... features) {
+        return (Echo)super.getPort(new QName("http://geronimo.apache.org/echo", "EchoPort"), Echo.class, features);
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoService.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoService.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/EchoService.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Hello.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Hello.java?rev=723148&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Hello.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Hello.java Wed Dec  3 15:45:00 2008
@@ -0,0 +1,81 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+
+package org.apache.geronimo.echo;
+
+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 hello complex type.
+ * 
+ * <p>The following schema fragment specifies the expected content contained within this class.
+ * 
+ * <pre>
+ * &lt;complexType name="hello">
+ *   &lt;complexContent>
+ *     &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
+ *       &lt;sequence>
+ *         &lt;element name="arg0" type="{http://www.w3.org/2001/XMLSchema}string"/>
+ *       &lt;/sequence>
+ *     &lt;/restriction>
+ *   &lt;/complexContent>
+ * &lt;/complexType>
+ * </pre>
+ * 
+ * 
+ */
+@XmlAccessorType(XmlAccessType.FIELD)
+@XmlType(name = "hello", namespace = "http://geronimo.apache.org/echo", propOrder = {
+    "arg0"
+})
+public class Hello {
+
+    @XmlElement(required = true)
+    protected String arg0;
+
+    /**
+     * Gets the value of the arg0 property.
+     * 
+     * @return
+     *     possible object is
+     *     {@link String }
+     *     
+     */
+    public String getArg0() {
+        return arg0;
+    }
+
+    /**
+     * Sets the value of the arg0 property.
+     * 
+     * @param value
+     *     allowed object is
+     *     {@link String }
+     *     
+     */
+    public void setArg0(String value) {
+        this.arg0 = value;
+    }
+
+}

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Hello.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Hello.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-mtom-tests/mtom-test-war/src/main/java/org/apache/geronimo/echo/Hello.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain



Mime
View raw message