[jbossws-commits] JBossWS SVN: r9585 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772: src/main/java/org/jboss/ws/core/soap/attachment and 5 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu Mar 12 08:47:10 EDT 2009


Author: darran.lofthouse at jboss.com
Date: 2009-03-12 08:47:09 -0400 (Thu, 12 Mar 2009)
New Revision: 9585

Added:
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF/
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF/web.xml
Removed:
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF/
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF/web.xml
Modified:
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/ant-import-tests/build-jars-jaxws.xml
   stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java
Log:
[JBPAPP-1772] MTOM/XOP message always sets start-info as "text/xml".


Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/ant-import-tests/build-jars-jaxws.xml	2009-03-12 12:43:43 UTC (rev 9584)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/ant-import-tests/build-jars-jaxws.xml	2009-03-12 12:47:09 UTC (rev 9585)
@@ -570,6 +570,20 @@
       </webinf>
     </war>
 
+    <!-- jaxws-jbws2419 -->
+    <war warfile="${tests.output.dir}/libs/jaxws-jbws2419.war" webxml="${tests.output.dir}/resources/jaxws/jbws2419/WEB-INF/web.xml">
+      <classes dir="${tests.output.dir}/classes">
+        <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.class"/>
+        <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.class"/>
+        <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.class"/>
+        <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.class"/>
+        <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.class"/>
+        <include name="org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.class"/>
+        <include name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml"/>
+        <include name="org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml"/>
+      </classes>
+    </war>
+
     <!-- jaxws-jbws2437 -->
     <jar destfile="${tests.output.dir}/libs/jaxws-jbws2437.jar">
       <fileset dir="${tests.output.dir}/classes">

Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java	2009-03-12 12:43:43 UTC (rev 9584)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/ws/core/soap/attachment/MultipartRelatedXOPEncoder.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -27,6 +27,7 @@
 import javax.mail.internet.MimeBodyPart;
 import javax.mail.internet.MimeMultipart;
 import javax.mail.internet.ParameterList;
+import javax.xml.soap.SOAPConstants;
 import javax.xml.soap.SOAPEnvelope;
 import javax.xml.soap.SOAPException;
 
@@ -57,10 +58,14 @@
 
    public void encodeMultipartRelatedMessage() throws SOAPException, MessagingException
    {
+      SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
+      boolean isSoap12 = SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE.equals(soapEnv.getElementQName().getNamespaceURI());
+      String soapType = isSoap12 ? MimeConstants.TYPE_SOAP12 : MimeConstants.TYPE_SOAP11;
+
       ParameterList p = new ParameterList();
       p.set("type", MimeConstants.TYPE_APPLICATION_XOP_XML);
       p.set("start", MimeConstants.ROOTPART_CID);
-      p.set("start-info", MimeConstants.START_INFO_XOP);
+      p.set("start-info", soapType);
       
       MimeMultipart multipart = new MimeMultipart("related" + p);
       MimeBodyPart rootPart = new MimeBodyPart();
@@ -71,12 +76,11 @@
        * to marshall the message. In this way the root part can be lazily written to the output
        * stream.
        */
-      SOAPEnvelope soapEnv = soapMessage.getSOAPPart().getEnvelope();
       String envStr = SOAPElementWriter.writeElement((SOAPElementImpl)soapEnv, false);
       rootPart.setText(envStr, "UTF-8");
 
       rootPart.setContentID(MimeConstants.ROOTPART_CID);
-      rootPart.setHeader(MimeConstants.CONTENT_TYPE, MimeConstants.TYPE_APPLICATION_XOP_XML + "; type=\"text/xml\""); 
+      rootPart.setHeader(MimeConstants.CONTENT_TYPE, MimeConstants.TYPE_APPLICATION_XOP_XML + "; type=\"" + soapType + "\""); 
       rootPart.setHeader(MimeConstants.CONTENT_TRANSFER_ENCODING, MimeConstants.TEXT_8BIT_ENCODING);
 
       multipart.addBodyPart(rootPart);

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419 (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419)

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,119 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2419;
-
-import java.io.BufferedReader;
-import java.io.IOException;
-import java.io.InputStream;
-import java.io.InputStreamReader;
-import java.net.URL;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.activation.DataHandler;
-import javax.wsdl.Binding;
-import javax.wsdl.Definition;
-import javax.xml.namespace.QName;
-import javax.xml.soap.SOAPConstants;
-import javax.xml.ws.BindingProvider;
-import javax.xml.ws.Service;
-import javax.xml.ws.handler.Handler;
-import javax.xml.ws.soap.SOAPBinding;
-
-import junit.framework.Test;
-
-import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.wsf.test.JBossWSTestSetup;
-
-/**
- * Test SOAP 1.2 and SOAP 1.1 MTOM/XOP request/response content type and start-info
- *
- * @author mageshbk at jboss.com
- * @since 20-Feb-2009
- */
-public class JBWS2419TestCase extends JBossWSTest
-{
-   public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2419";
-
-   public static Test suite()
-   {
-      return new JBossWSTestSetup(JBWS2419TestCase.class, "jaxws-jbws2419.war");
-   }
-
-   public void testSOAP12ClientAccess() throws Exception
-   {
-      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "/soap12?wsdl");
-      QName qname = new QName("http://org.jboss.ws/jaxws/jbws2419", "SOAP12EndpointBeanService");
-      Service service = Service.create(wsdlURL, qname);
-      SOAP12Endpoint port = (SOAP12Endpoint)service.getPort(SOAP12Endpoint.class);
-
-      BindingProvider provider = (BindingProvider)port;
-      List<Handler> handlerChain = new ArrayList<Handler>();
-      handlerChain.addAll(provider.getBinding().getHandlerChain());
-      handlerChain.add(new SOAP12ClientHandler());
-      provider.getBinding().setHandlerChain(handlerChain);
-      ((SOAPBinding)provider.getBinding()).setMTOMEnabled(true);
-
-      DataHandler response = port.namespace(new DataHandler("Jimbo","text/plain"));
-      Object nsURI = getContent(response);
-      assertEquals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE, nsURI);
-   }
-
-   public void testSOAP11ClientAccess() throws Exception
-   {
-      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "/soap11?wsdl");
-      QName qname = new QName("http://org.jboss.ws/jaxws/jbws2419", "SOAP11EndpointBeanService");
-      Service service = Service.create(wsdlURL, qname);
-      SOAP11Endpoint port = (SOAP11Endpoint)service.getPort(SOAP11Endpoint.class);
-
-      BindingProvider provider = (BindingProvider)port;
-      List<Handler> handlerChain = new ArrayList<Handler>();
-      handlerChain.addAll(provider.getBinding().getHandlerChain());
-      handlerChain.add(new SOAP11ClientHandler());
-      provider.getBinding().setHandlerChain(handlerChain);
-      ((SOAPBinding)provider.getBinding()).setMTOMEnabled(true);
-
-      DataHandler response = port.namespace(new DataHandler("Jimbo","text/plain"));
-      Object nsURI = getContent(response);
-      assertEquals(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, nsURI);
-   }
-
-   protected Object getContent(DataHandler dh) throws IOException
-   {
-      Object content = dh.getContent();
-
-      // Metro returns an ByteArrayInputStream
-      if (content instanceof InputStream)
-      {
-         try
-         {
-            BufferedReader br = new BufferedReader(new InputStreamReader((InputStream)content));
-            return br.readLine();
-         }
-         finally
-         {
-            ((InputStream)content).close();
-         }
-      }
-      return content;
-   }
-}

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/JBWS2419TestCase.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,119 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.net.URL;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.activation.DataHandler;
+import javax.wsdl.Binding;
+import javax.wsdl.Definition;
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.handler.Handler;
+import javax.xml.ws.soap.SOAPBinding;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * Test SOAP 1.2 and SOAP 1.1 MTOM/XOP request/response content type and start-info
+ *
+ * @author mageshbk at jboss.com
+ * @since 20-Feb-2009
+ */
+public class JBWS2419TestCase extends JBossWSTest
+{
+   public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2419";
+
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(JBWS2419TestCase.class, "jaxws-jbws2419.war");
+   }
+
+   public void testSOAP12ClientAccess() throws Exception
+   {
+      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "/soap12?wsdl");
+      QName qname = new QName("http://org.jboss.ws/jaxws/jbws2419", "SOAP12EndpointBeanService");
+      Service service = Service.create(wsdlURL, qname);
+      SOAP12Endpoint port = (SOAP12Endpoint)service.getPort(SOAP12Endpoint.class);
+
+      BindingProvider provider = (BindingProvider)port;
+      List<Handler> handlerChain = new ArrayList<Handler>();
+      handlerChain.addAll(provider.getBinding().getHandlerChain());
+      handlerChain.add(new SOAP12ClientHandler());
+      provider.getBinding().setHandlerChain(handlerChain);
+      ((SOAPBinding)provider.getBinding()).setMTOMEnabled(true);
+
+      DataHandler response = port.namespace(new DataHandler("Jimbo","text/plain"));
+      Object nsURI = getContent(response);
+      assertEquals(SOAPConstants.URI_NS_SOAP_1_2_ENVELOPE, nsURI);
+   }
+
+   public void testSOAP11ClientAccess() throws Exception
+   {
+      URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "/soap11?wsdl");
+      QName qname = new QName("http://org.jboss.ws/jaxws/jbws2419", "SOAP11EndpointBeanService");
+      Service service = Service.create(wsdlURL, qname);
+      SOAP11Endpoint port = (SOAP11Endpoint)service.getPort(SOAP11Endpoint.class);
+
+      BindingProvider provider = (BindingProvider)port;
+      List<Handler> handlerChain = new ArrayList<Handler>();
+      handlerChain.addAll(provider.getBinding().getHandlerChain());
+      handlerChain.add(new SOAP11ClientHandler());
+      provider.getBinding().setHandlerChain(handlerChain);
+      ((SOAPBinding)provider.getBinding()).setMTOMEnabled(true);
+
+      DataHandler response = port.namespace(new DataHandler("Jimbo","text/plain"));
+      Object nsURI = getContent(response);
+      assertEquals(SOAPConstants.URI_NS_SOAP_1_1_ENVELOPE, nsURI);
+   }
+
+   protected Object getContent(DataHandler dh) throws IOException
+   {
+      Object content = dh.getContent();
+
+      // Metro returns an ByteArrayInputStream
+      if (content instanceof InputStream)
+      {
+         try
+         {
+            BufferedReader br = new BufferedReader(new InputStreamReader((InputStream)content));
+            return br.readLine();
+         }
+         finally
+         {
+            ((InputStream)content).close();
+         }
+      }
+      return content;
+   }
+}

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,101 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2419;
-
-import javax.mail.internet.ContentType;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPConstants;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.MessageContext;
-import javax.xml.ws.handler.soap.SOAPMessageContext;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
-
-/**
- * A SOAP 1.1 client side handler
- *
- * @author mageshbk at jboss.com
- * @since 20-Feb-2009
- */
-public class SOAP11ClientHandler extends GenericSOAPHandler
-{
-   private static Logger log = Logger.getLogger(SOAP11ClientHandler.class);
-
-   public boolean handleInbound(MessageContext msgContext)
-   {
-      log.info("handleInbound");
-
-      SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
-
-      MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
-      String[] ct = mimeHeaders.getHeader("Content-Type");
-      ContentType contentType;
-      if (ct != null)
-      {
-         try
-         {
-            contentType = new ContentType(ct[0]);
-            log.info("contentType="+contentType);
-            String startInfo = contentType.getParameter("start-info");
-            if (startInfo.equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
-            {
-               return true;
-            }
-         }
-         catch(Exception e)
-         {
-            throw new WebServiceException(e);
-         }
-      }
-      return false;
-   }
-
-   protected boolean handleOutbound(MessageContext msgContext)
-   {
-      log.info("handleOutbound");
-
-      try
-      {
-         SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
-         soapMessage.saveChanges();
-
-         MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
-         String[] ct = mimeHeaders.getHeader("Content-Type");
-         ContentType contentType;
-         if (ct != null)
-         {
-            contentType = new ContentType(ct[0]);
-            log.info("contentType="+contentType);
-            if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
-               return true;
-         }
-         return false;
-      }
-      catch (Exception ex)
-      {
-         throw new WebServiceException(ex);
-      }
-   }
-}

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ClientHandler.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,101 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import javax.mail.internet.ContentType;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
+
+/**
+ * A SOAP 1.1 client side handler
+ *
+ * @author mageshbk at jboss.com
+ * @since 20-Feb-2009
+ */
+public class SOAP11ClientHandler extends GenericSOAPHandler
+{
+   private static Logger log = Logger.getLogger(SOAP11ClientHandler.class);
+
+   public boolean handleInbound(MessageContext msgContext)
+   {
+      log.info("handleInbound");
+
+      SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+
+      MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+      String[] ct = mimeHeaders.getHeader("Content-Type");
+      ContentType contentType;
+      if (ct != null)
+      {
+         try
+         {
+            contentType = new ContentType(ct[0]);
+            log.info("contentType="+contentType);
+            String startInfo = contentType.getParameter("start-info");
+            if (startInfo.equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
+            {
+               return true;
+            }
+         }
+         catch(Exception e)
+         {
+            throw new WebServiceException(e);
+         }
+      }
+      return false;
+   }
+
+   protected boolean handleOutbound(MessageContext msgContext)
+   {
+      log.info("handleOutbound");
+
+      try
+      {
+         SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+         soapMessage.saveChanges();
+
+         MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+         String[] ct = mimeHeaders.getHeader("Content-Type");
+         ContentType contentType;
+         if (ct != null)
+         {
+            contentType = new ContentType(ct[0]);
+            log.info("contentType="+contentType);
+            if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
+               return true;
+         }
+         return false;
+      }
+      catch (Exception ex)
+      {
+         throw new WebServiceException(ex);
+      }
+   }
+}

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2419;
-
-import static javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING;
-
-import javax.activation.DataHandler;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-import javax.jws.soap.SOAPBinding.Style;
-import javax.xml.bind.annotation.XmlMimeType;
-import javax.xml.ws.BindingType;
-
- at WebService(name = "SOAP11Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
- at SOAPBinding(style = Style.RPC)
- at BindingType(SOAP11HTTP_MTOM_BINDING)
-
-public interface SOAP11Endpoint
-{
-   @XmlMimeType("text/plain")
-   public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data);
-}

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11Endpoint.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import static javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING;
+
+import javax.activation.DataHandler;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.ws.BindingType;
+
+ at WebService(name = "SOAP11Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
+ at SOAPBinding(style = Style.RPC)
+ at BindingType(SOAP11HTTP_MTOM_BINDING)
+
+public interface SOAP11Endpoint
+{
+   @XmlMimeType("text/plain")
+   public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data);
+}

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,82 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2419;
-
-import static javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING;
-
-import java.io.IOException;
-
-import javax.activation.DataHandler;
-import javax.annotation.Resource;
-import javax.jws.HandlerChain;
-import javax.jws.WebService;
-import javax.xml.bind.annotation.XmlMimeType;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.BindingType;
-import javax.xml.ws.WebServiceContext;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.soap.SOAPMessageContext;
-import javax.xml.ws.soap.MTOM;
-
-import org.jboss.logging.Logger;
-
- at WebService(name="SOAP11Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419", 
-      endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP11Endpoint")
- at BindingType(SOAP11HTTP_MTOM_BINDING)
- at HandlerChain(file = "jaxws-server-handlers1.xml")
-public class SOAP11EndpointBean implements SOAP11Endpoint
-{
-   private static Logger log = Logger.getLogger(SOAP11EndpointBean.class);
-
-   @Resource
-   public WebServiceContext context;
-
-   @XmlMimeType("text/plain")
-   public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data)
-   {
-      try
-      {
-         String name = (String)data.getContent();
-         String type = (String)data.getContentType();
-         log.info("User " + name + " requested namespace with content type ["+ type +"]");
-
-         SOAPMessageContext msgContext = (SOAPMessageContext)context.getMessageContext();
-         SOAPMessage soapMessage = msgContext.getMessage();
-         SOAPEnvelope soapEnvelope = (SOAPEnvelope)soapMessage.getSOAPPart().getEnvelope();
-         String nsURI = soapEnvelope.getNamespaceURI();
-
-         log.info(nsURI);
-
-         return new DataHandler(nsURI, "text/plain");
-      }
-      catch (IOException e)
-      {
-         throw new WebServiceException(e);
-      }
-      catch (SOAPException ex)
-      {
-         throw new WebServiceException(ex);
-      }
-   }
-}

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11EndpointBean.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import static javax.xml.ws.soap.SOAPBinding.SOAP11HTTP_MTOM_BINDING;
+
+import java.io.IOException;
+
+import javax.activation.DataHandler;
+import javax.annotation.Resource;
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+import javax.xml.ws.soap.MTOM;
+
+import org.jboss.logging.Logger;
+
+ at WebService(name="SOAP11Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419", 
+      endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP11Endpoint")
+ at BindingType(SOAP11HTTP_MTOM_BINDING)
+ at HandlerChain(file = "jaxws-server-handlers1.xml")
+public class SOAP11EndpointBean implements SOAP11Endpoint
+{
+   private static Logger log = Logger.getLogger(SOAP11EndpointBean.class);
+
+   @Resource
+   public WebServiceContext context;
+
+   @XmlMimeType("text/plain")
+   public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data)
+   {
+      try
+      {
+         String name = (String)data.getContent();
+         String type = (String)data.getContentType();
+         log.info("User " + name + " requested namespace with content type ["+ type +"]");
+
+         SOAPMessageContext msgContext = (SOAPMessageContext)context.getMessageContext();
+         SOAPMessage soapMessage = msgContext.getMessage();
+         SOAPEnvelope soapEnvelope = (SOAPEnvelope)soapMessage.getSOAPPart().getEnvelope();
+         String nsURI = soapEnvelope.getNamespaceURI();
+
+         log.info(nsURI);
+
+         return new DataHandler(nsURI, "text/plain");
+      }
+      catch (IOException e)
+      {
+         throw new WebServiceException(e);
+      }
+      catch (SOAPException ex)
+      {
+         throw new WebServiceException(ex);
+      }
+   }
+}

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,101 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2419;
-
-import javax.mail.internet.ContentType;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPConstants;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.MessageContext;
-import javax.xml.ws.handler.soap.SOAPMessageContext;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
-
-/**
- * A SOAP 1.1 server side handler
- *
- * @author mageshbk at jboss.com
- * @since 20-Feb-2009
- */
-public class SOAP11ServerHandler extends GenericSOAPHandler
-{
-   private static Logger log = Logger.getLogger(SOAP11ServerHandler.class);
-
-   public boolean handleInbound(MessageContext msgContext)
-   {
-      log.info("handleInbound");
-
-      SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
-
-      MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
-      String[] ct = mimeHeaders.getHeader("Content-Type");
-      ContentType contentType;
-      if (ct != null)
-      {
-         try
-         {
-            contentType = new ContentType(ct[0]);
-            log.info("contentType="+contentType);
-            String startInfo = contentType.getParameter("start-info");
-            if (startInfo.equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
-            {
-               return true;
-            }
-         }
-         catch(Exception e)
-         {
-            throw new WebServiceException(e);
-         }
-      }
-      return false;
-   }
-
-   protected boolean handleOutbound(MessageContext msgContext)
-   {
-      log.info("handleOutbound");
-
-      try
-      {
-         SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
-         soapMessage.saveChanges();
-
-         MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
-         String[] ct = mimeHeaders.getHeader("Content-Type");
-         ContentType contentType;
-         if (ct != null)
-         {
-            contentType = new ContentType(ct[0]);
-            log.info("contentType="+contentType);
-            if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
-               return true;
-         }
-         return false;
-      }
-      catch (Exception ex)
-      {
-         throw new WebServiceException(ex);
-      }
-   }
-}

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP11ServerHandler.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,101 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import javax.mail.internet.ContentType;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
+
+/**
+ * A SOAP 1.1 server side handler
+ *
+ * @author mageshbk at jboss.com
+ * @since 20-Feb-2009
+ */
+public class SOAP11ServerHandler extends GenericSOAPHandler
+{
+   private static Logger log = Logger.getLogger(SOAP11ServerHandler.class);
+
+   public boolean handleInbound(MessageContext msgContext)
+   {
+      log.info("handleInbound");
+
+      SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+
+      MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+      String[] ct = mimeHeaders.getHeader("Content-Type");
+      ContentType contentType;
+      if (ct != null)
+      {
+         try
+         {
+            contentType = new ContentType(ct[0]);
+            log.info("contentType="+contentType);
+            String startInfo = contentType.getParameter("start-info");
+            if (startInfo.equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
+            {
+               return true;
+            }
+         }
+         catch(Exception e)
+         {
+            throw new WebServiceException(e);
+         }
+      }
+      return false;
+   }
+
+   protected boolean handleOutbound(MessageContext msgContext)
+   {
+      log.info("handleOutbound");
+
+      try
+      {
+         SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+         soapMessage.saveChanges();
+
+         MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+         String[] ct = mimeHeaders.getHeader("Content-Type");
+         ContentType contentType;
+         if (ct != null)
+         {
+            contentType = new ContentType(ct[0]);
+            log.info("contentType="+contentType);
+            if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_1_CONTENT_TYPE))
+               return true;
+         }
+         return false;
+      }
+      catch (Exception ex)
+      {
+         throw new WebServiceException(ex);
+      }
+   }
+}

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,101 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2419;
-
-import javax.mail.internet.ContentType;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPConstants;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.MessageContext;
-import javax.xml.ws.handler.soap.SOAPMessageContext;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
-
-/**
- * A SOAP 1.2 client side handler
- *
- * @author mageshbk at jboss.com
- * @since 20-Feb-2009
- */
-public class SOAP12ClientHandler extends GenericSOAPHandler
-{
-   private static Logger log = Logger.getLogger(SOAP12ClientHandler.class);
-
-   public boolean handleInbound(MessageContext msgContext)
-   {
-      log.info("handleInbound");
-
-      SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
-
-      MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
-      String[] ct = mimeHeaders.getHeader("Content-Type");
-      ContentType contentType;
-      if (ct != null)
-      {
-         try
-         {
-            contentType = new ContentType(ct[0]);
-            log.info("contentType="+contentType);
-            String startInfo = contentType.getParameter("start-info");
-            if (startInfo.equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
-            {
-               return true;
-            }
-         }
-         catch(Exception e)
-         {
-            throw new WebServiceException(e);
-         }
-      }
-      return false;
-   }
-
-   protected boolean handleOutbound(MessageContext msgContext)
-   {
-      log.info("handleOutbound");
-
-      try
-      {
-         SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
-         soapMessage.saveChanges();
-
-         MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
-         String[] ct = mimeHeaders.getHeader("Content-Type");
-         ContentType contentType;
-         if (ct != null)
-         {
-            contentType = new ContentType(ct[0]);
-            log.info("contentType="+contentType);
-            if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
-               return true;
-         }
-         return false;
-      }
-      catch (Exception ex)
-      {
-         throw new WebServiceException(ex);
-      }
-   }
-}

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ClientHandler.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,101 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import javax.mail.internet.ContentType;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
+
+/**
+ * A SOAP 1.2 client side handler
+ *
+ * @author mageshbk at jboss.com
+ * @since 20-Feb-2009
+ */
+public class SOAP12ClientHandler extends GenericSOAPHandler
+{
+   private static Logger log = Logger.getLogger(SOAP12ClientHandler.class);
+
+   public boolean handleInbound(MessageContext msgContext)
+   {
+      log.info("handleInbound");
+
+      SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+
+      MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+      String[] ct = mimeHeaders.getHeader("Content-Type");
+      ContentType contentType;
+      if (ct != null)
+      {
+         try
+         {
+            contentType = new ContentType(ct[0]);
+            log.info("contentType="+contentType);
+            String startInfo = contentType.getParameter("start-info");
+            if (startInfo.equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
+            {
+               return true;
+            }
+         }
+         catch(Exception e)
+         {
+            throw new WebServiceException(e);
+         }
+      }
+      return false;
+   }
+
+   protected boolean handleOutbound(MessageContext msgContext)
+   {
+      log.info("handleOutbound");
+
+      try
+      {
+         SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+         soapMessage.saveChanges();
+
+         MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+         String[] ct = mimeHeaders.getHeader("Content-Type");
+         ContentType contentType;
+         if (ct != null)
+         {
+            contentType = new ContentType(ct[0]);
+            log.info("contentType="+contentType);
+            if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
+               return true;
+         }
+         return false;
+      }
+      catch (Exception ex)
+      {
+         throw new WebServiceException(ex);
+      }
+   }
+}

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,41 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2419;
-
-import static javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING;
-
-import javax.activation.DataHandler;
-import javax.jws.WebService;
-import javax.jws.soap.SOAPBinding;
-import javax.jws.soap.SOAPBinding.Style;
-import javax.xml.bind.annotation.XmlMimeType;
-import javax.xml.ws.BindingType;
-
- at WebService(name = "SOAP12Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
- at SOAPBinding(style = Style.RPC)
- at BindingType(SOAP12HTTP_MTOM_BINDING)
-
-public interface SOAP12Endpoint
-{
-   @XmlMimeType("text/plain")
-   public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data);
-}

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12Endpoint.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import static javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING;
+
+import javax.activation.DataHandler;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.ws.BindingType;
+
+ at WebService(name = "SOAP12Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
+ at SOAPBinding(style = Style.RPC)
+ at BindingType(SOAP12HTTP_MTOM_BINDING)
+
+public interface SOAP12Endpoint
+{
+   @XmlMimeType("text/plain")
+   public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data);
+}

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,82 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2419;
-
-import static javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING;
-
-import java.io.IOException;
-
-import javax.activation.DataHandler;
-import javax.annotation.Resource;
-import javax.jws.HandlerChain;
-import javax.jws.WebService;
-import javax.xml.bind.annotation.XmlMimeType;
-import javax.xml.soap.SOAPEnvelope;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.BindingType;
-import javax.xml.ws.WebServiceContext;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.soap.SOAPMessageContext;
-import javax.xml.ws.soap.MTOM;
-
-import org.jboss.logging.Logger;
-
- at WebService(name="SOAP12Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419", 
-      endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP12Endpoint")
- at BindingType(SOAP12HTTP_MTOM_BINDING)
- at HandlerChain(file = "jaxws-server-handlers2.xml")
-public class SOAP12EndpointBean implements SOAP12Endpoint
-{
-   private static Logger log = Logger.getLogger(SOAP12EndpointBean.class);
-
-   @Resource
-   public WebServiceContext context;
-
-   @XmlMimeType("text/plain")
-   public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data)
-   {
-      try
-      {
-         String name = (String)data.getContent();
-         String type = (String)data.getContentType();
-         log.info("User " + name + " requested namespace with content type ["+ type +"]");
-
-         SOAPMessageContext msgContext = (SOAPMessageContext)context.getMessageContext();
-         SOAPMessage soapMessage = msgContext.getMessage();
-         SOAPEnvelope soapEnvelope = (SOAPEnvelope)soapMessage.getSOAPPart().getEnvelope();
-         String nsURI = soapEnvelope.getNamespaceURI();
-
-         log.info(nsURI);
-
-         return new DataHandler(nsURI, "text/plain");
-      }
-      catch (IOException e)
-      {
-         throw new WebServiceException(e);
-      }
-      catch (SOAPException ex)
-      {
-         throw new WebServiceException(ex);
-      }
-   }
-}

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12EndpointBean.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,82 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import static javax.xml.ws.soap.SOAPBinding.SOAP12HTTP_MTOM_BINDING;
+
+import java.io.IOException;
+
+import javax.activation.DataHandler;
+import javax.annotation.Resource;
+import javax.jws.HandlerChain;
+import javax.jws.WebService;
+import javax.xml.bind.annotation.XmlMimeType;
+import javax.xml.soap.SOAPEnvelope;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.BindingType;
+import javax.xml.ws.WebServiceContext;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+import javax.xml.ws.soap.MTOM;
+
+import org.jboss.logging.Logger;
+
+ at WebService(name="SOAP12Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419", 
+      endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP12Endpoint")
+ at BindingType(SOAP12HTTP_MTOM_BINDING)
+ at HandlerChain(file = "jaxws-server-handlers2.xml")
+public class SOAP12EndpointBean implements SOAP12Endpoint
+{
+   private static Logger log = Logger.getLogger(SOAP12EndpointBean.class);
+
+   @Resource
+   public WebServiceContext context;
+
+   @XmlMimeType("text/plain")
+   public DataHandler namespace(@XmlMimeType("text/plain") DataHandler data)
+   {
+      try
+      {
+         String name = (String)data.getContent();
+         String type = (String)data.getContentType();
+         log.info("User " + name + " requested namespace with content type ["+ type +"]");
+
+         SOAPMessageContext msgContext = (SOAPMessageContext)context.getMessageContext();
+         SOAPMessage soapMessage = msgContext.getMessage();
+         SOAPEnvelope soapEnvelope = (SOAPEnvelope)soapMessage.getSOAPPart().getEnvelope();
+         String nsURI = soapEnvelope.getNamespaceURI();
+
+         log.info(nsURI);
+
+         return new DataHandler(nsURI, "text/plain");
+      }
+      catch (IOException e)
+      {
+         throw new WebServiceException(e);
+      }
+      catch (SOAPException ex)
+      {
+         throw new WebServiceException(ex);
+      }
+   }
+}

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,106 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2006, Red Hat Middleware LLC, and individual contributors
- * as indicated by the @author tags. See the copyright.txt file in the
- * distribution for a full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
-package org.jboss.test.ws.jaxws.jbws2419;
-
-import javax.mail.internet.ContentType;
-import javax.mail.internet.ParseException;
-import javax.xml.soap.MimeHeaders;
-import javax.xml.soap.SOAPConstants;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-import javax.xml.ws.WebServiceException;
-import javax.xml.ws.handler.MessageContext;
-import javax.xml.ws.handler.soap.SOAPMessageContext;
-
-import org.jboss.logging.Logger;
-import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
-
-/**
- * A SOAP 1.2 server side handler
- *
- * @author mageshbk at jboss.com
- * @since 20-Feb-2009
- */
-public class SOAP12ServerHandler extends GenericSOAPHandler
-{
-   private static Logger log = Logger.getLogger(SOAP12ServerHandler.class);
-
-   public boolean handleInbound(MessageContext msgContext)
-   {
-      log.info("handleInbound");
-
-      SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
-
-      MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
-      String[] ct = mimeHeaders.getHeader("Content-Type");
-      ContentType contentType;
-      if (ct != null)
-      {
-         try
-         {
-            contentType = new ContentType(ct[0]);
-            log.info("contentType="+contentType);
-            String startInfo = contentType.getParameter("start-info");
-            if (startInfo.equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
-            {
-               return true;
-            }
-         }
-         catch(Exception e)
-         {
-            throw new WebServiceException(e);
-         }
-      }
-      return false;
-   }
-
-   protected boolean handleOutbound(MessageContext msgContext)
-   {
-      log.info("handleOutbound");
-
-      try
-      {
-         SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
-         soapMessage.saveChanges();
-
-         MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
-         String[] ct = mimeHeaders.getHeader("Content-Type");
-         ContentType contentType;
-         if (ct != null)
-         {
-            contentType = new ContentType(ct[0]);
-            log.info("contentType="+contentType);
-            if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
-               return true;
-         }
-         return false;
-      }
-      catch (ParseException e)
-      {
-         throw new WebServiceException(e);
-      }
-      catch (SOAPException ex)
-      {
-         throw new WebServiceException(ex);
-      }
-   }
-}

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/SOAP12ServerHandler.java	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,106 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws2419;
+
+import javax.mail.internet.ContentType;
+import javax.mail.internet.ParseException;
+import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPConstants;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+import javax.xml.ws.WebServiceException;
+import javax.xml.ws.handler.MessageContext;
+import javax.xml.ws.handler.soap.SOAPMessageContext;
+
+import org.jboss.logging.Logger;
+import org.jboss.ws.core.jaxws.handler.GenericSOAPHandler;
+
+/**
+ * A SOAP 1.2 server side handler
+ *
+ * @author mageshbk at jboss.com
+ * @since 20-Feb-2009
+ */
+public class SOAP12ServerHandler extends GenericSOAPHandler
+{
+   private static Logger log = Logger.getLogger(SOAP12ServerHandler.class);
+
+   public boolean handleInbound(MessageContext msgContext)
+   {
+      log.info("handleInbound");
+
+      SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+
+      MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+      String[] ct = mimeHeaders.getHeader("Content-Type");
+      ContentType contentType;
+      if (ct != null)
+      {
+         try
+         {
+            contentType = new ContentType(ct[0]);
+            log.info("contentType="+contentType);
+            String startInfo = contentType.getParameter("start-info");
+            if (startInfo.equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
+            {
+               return true;
+            }
+         }
+         catch(Exception e)
+         {
+            throw new WebServiceException(e);
+         }
+      }
+      return false;
+   }
+
+   protected boolean handleOutbound(MessageContext msgContext)
+   {
+      log.info("handleOutbound");
+
+      try
+      {
+         SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+         soapMessage.saveChanges();
+
+         MimeHeaders mimeHeaders = soapMessage.getMimeHeaders();
+         String[] ct = mimeHeaders.getHeader("Content-Type");
+         ContentType contentType;
+         if (ct != null)
+         {
+            contentType = new ContentType(ct[0]);
+            log.info("contentType="+contentType);
+            if (contentType.getBaseType().equals(SOAPConstants.SOAP_1_2_CONTENT_TYPE))
+               return true;
+         }
+         return false;
+      }
+      catch (ParseException e)
+      {
+         throw new WebServiceException(e);
+      }
+      catch (SOAPException ex)
+      {
+         throw new WebServiceException(ex);
+      }
+   }
+}

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xmlns:ns1="http://org.jboss.ws/jaxws/handlerscope"
-  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
-
-	<handler-chain>
-		<handler>
-			<handler-name> SOAP11ServerHandler </handler-name>
-			<handler-class> org.jboss.test.ws.jaxws.jbws2419.SOAP11ServerHandler </handler-class>
-		</handler>
-	</handler-chain>
-  
-</handler-chains>
\ No newline at end of file

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers1.xml	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:ns1="http://org.jboss.ws/jaxws/handlerscope"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+
+	<handler-chain>
+		<handler>
+			<handler-name> SOAP11ServerHandler </handler-name>
+			<handler-class> org.jboss.test.ws.jaxws.jbws2419.SOAP11ServerHandler </handler-class>
+		</handler>
+	</handler-chain>
+  
+</handler-chains>
\ No newline at end of file

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,15 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xmlns:ns1="http://org.jboss.ws/jaxws/handlerscope"
-  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
-
-	<handler-chain>
-		<handler>
-			<handler-name> SOAP12ServerHandler </handler-name>
-			<handler-class> org.jboss.test.ws.jaxws.jbws2419.SOAP12ServerHandler </handler-class>
-		</handler>
-	</handler-chain>
-  
-</handler-chains>
\ No newline at end of file

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/jbws2419/jaxws-server-handlers2.xml	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<handler-chains xmlns="http://java.sun.com/xml/ns/javaee"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xmlns:ns1="http://org.jboss.ws/jaxws/handlerscope"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+
+	<handler-chain>
+		<handler>
+			<handler-name> SOAP12ServerHandler </handler-name>
+			<handler-class> org.jboss.test.ws.jaxws.jbws2419.SOAP12ServerHandler </handler-class>
+		</handler>
+	</handler-chain>
+  
+</handler-chains>
\ No newline at end of file

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419 (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/resources/jaxws/jbws2419)

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/resources/jaxws/jbws2419/WEB-INF)

Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF/web.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/resources/jaxws/jbws2419/WEB-INF/web.xml	2009-03-02 12:10:56 UTC (rev 9468)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF/web.xml	2009-03-12 12:47:09 UTC (rev 9585)
@@ -1,29 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-
-<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
-  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
-  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
-  version="2.4">
-
-  <servlet>
-    <servlet-name>TestSOAP12Service</servlet-name>
-    <servlet-class>org.jboss.test.ws.jaxws.jbws2419.SOAP12EndpointBean</servlet-class>
-  </servlet>
-
-  <servlet>
-    <servlet-name>TestSOAP11Service</servlet-name>
-    <servlet-class>org.jboss.test.ws.jaxws.jbws2419.SOAP11EndpointBean</servlet-class>
-  </servlet>
-
-  <servlet-mapping>
-    <servlet-name>TestSOAP12Service</servlet-name>
-    <url-pattern>/soap12/*</url-pattern>
-  </servlet-mapping>
-
-  <servlet-mapping>
-    <servlet-name>TestSOAP11Service</servlet-name>
-    <url-pattern>/soap11/*</url-pattern>
-  </servlet-mapping>
-
-</web-app>
-

Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF/web.xml (from rev 9468, stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1730/src/test/resources/jaxws/jbws2419/WEB-INF/web.xml)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF/web.xml	                        (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/resources/jaxws/jbws2419/WEB-INF/web.xml	2009-03-12 12:47:09 UTC (rev 9585)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
+  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+  xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
+  version="2.4">
+
+  <servlet>
+    <servlet-name>TestSOAP12Service</servlet-name>
+    <servlet-class>org.jboss.test.ws.jaxws.jbws2419.SOAP12EndpointBean</servlet-class>
+  </servlet>
+
+  <servlet>
+    <servlet-name>TestSOAP11Service</servlet-name>
+    <servlet-class>org.jboss.test.ws.jaxws.jbws2419.SOAP11EndpointBean</servlet-class>
+  </servlet>
+
+  <servlet-mapping>
+    <servlet-name>TestSOAP12Service</servlet-name>
+    <url-pattern>/soap12/*</url-pattern>
+  </servlet-mapping>
+
+  <servlet-mapping>
+    <servlet-name>TestSOAP11Service</servlet-name>
+    <url-pattern>/soap11/*</url-pattern>
+  </servlet-mapping>
+
+</web-app>
+




More information about the jbossws-commits mailing list