[jbossws-commits] JBossWS SVN: r16182 - in stack/native/trunk: modules and 21 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Thu Apr 19 00:47:38 EDT 2012


Author: ropalka
Date: 2012-04-19 00:47:36 -0400 (Thu, 19 Apr 2012)
New Revision: 16182

Removed:
   stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java
   stack/native/trunk/modules/endorsed/
   stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/ws/native/jbossws-native-factories/
   stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/ws/saaj-impl/
   stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/soap/
   stack/native/trunk/modules/testsuite/native-tests/src/test/resources/common/soap/
Modified:
   stack/native/trunk/modules/core/pom.xml
   stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java
   stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java
   stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/utils/SOAPUtils.java
   stack/native/trunk/modules/dist/pom.xml
   stack/native/trunk/modules/dist/src/main/distro/build.xml
   stack/native/trunk/modules/dist/src/main/scripts/assembly-deploy-artifacts.xml
   stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/as/webservices/server/integration/main/module.xml
   stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/ws/native/jbossws-native-core/main/module.xml
   stack/native/trunk/modules/resources/src/main/resources/resources/jbossws-deploy-macros.xml
   stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java
   stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/jbws1692/JBWS1692TestCase.java
   stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/encoded/href/HRefHandler.java
   stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/JBWS1093TestCase.java
   stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws425/JBWS425TestCase.java
   stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws707/JBWS707TestCase.java
   stack/native/trunk/modules/testsuite/pom.xml
   stack/native/trunk/pom.xml
Log:
[JBWS-3486] removing endorsed module

Modified: stack/native/trunk/modules/core/pom.xml
===================================================================
--- stack/native/trunk/modules/core/pom.xml	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/core/pom.xml	2012-04-19 04:47:36 UTC (rev 16182)
@@ -36,11 +36,6 @@
       <artifactId>jboss-saaj-api_1.3_spec</artifactId>
     </dependency>
     <dependency>
-      <groupId>org.jboss.ws.native</groupId>
-      <artifactId>jbossws-native-factories</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-    <dependency>
       <groupId>org.jboss.spec.javax.ejb</groupId>
       <artifactId>jboss-ejb-api_3.1_spec</artifactId>
     </dependency>

Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/CommonSOAPBinding.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -54,7 +54,6 @@
 import org.jboss.ws.core.jaxrpc.ParameterWrapping;
 import org.jboss.ws.core.soap.SOAPBodyElementDoc;
 import org.jboss.ws.core.soap.SOAPBodyElementRpc;
-import org.jboss.ws.core.soap.SOAPBodyImpl;
 import org.jboss.ws.core.soap.SOAPContentElement;
 import org.jboss.ws.core.soap.SOAPElementImpl;
 import org.jboss.ws.core.soap.SOAPFaultImpl;
@@ -439,8 +438,8 @@
             throw new WSException(BundleUtils.getMessage(bundle, "MESSAGECONTEXT_NOT_AVAILABLE"));
 
          SOAPHeader soapHeader = soapEnvelope.getHeader();
-         SOAPBodyImpl soapBody = (SOAPBodyImpl)soapEnvelope.getBody();
-         SOAPBodyElement soapBodyElement = soapBody.getBodyElement();
+         SOAPBody soapBody = (SOAPBody)soapEnvelope.getBody();
+         SOAPBodyElement soapBodyElement = SOAPUtils.getFirstSOAPBodyElement(soapBody);
 
          // Translate the SOAPFault to an exception and throw it
          if (soapBodyElement instanceof SOAPFaultImpl)

Deleted: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SAAJVisitable.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -1,30 +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.ws.core.soap;
-
-/**
- * @author Heiko Braun <heiko.braun at jboss.com>
- * @since Sep 26, 2006
- */
-public interface SAAJVisitable {
-   public void accept(SAAJVisitor visitor);
-}

Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/SOAPElementImpl.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -60,7 +60,7 @@
  *
  * @author Thomas.Diesler at jboss.org
  */
-public class SOAPElementImpl extends NodeImpl implements SOAPElement, SAAJVisitable
+public class SOAPElementImpl extends NodeImpl implements SOAPElement
 {
    private static final ResourceBundle bundle = BundleUtils.getBundle(SOAPElementImpl.class);
    // The org.w3c.dom.Element
@@ -868,11 +868,6 @@
       this.element.setIdAttributeNS(namespaceURI, localName, isId);
    }
 
-   public void accept(SAAJVisitor visitor)
-   {
-      visitor.visitSOAPElement(this);
-   }
-      
    @Override
    public void setPrefix(String prefix) throws DOMException
    {

Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/utils/SOAPUtils.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/utils/SOAPUtils.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/utils/SOAPUtils.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -21,8 +21,13 @@
  */
 package org.jboss.ws.core.soap.utils;
 
+import java.util.Iterator;
+
 import javax.xml.namespace.QName;
 import javax.xml.soap.Name;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPBodyElement;
+import javax.xml.soap.SOAPConnectionFactory;
 import javax.xml.soap.SOAPConstants;
 import javax.xml.soap.SOAPEnvelope;
 import javax.xml.soap.SOAPException;
@@ -31,6 +36,7 @@
 import javax.xml.soap.SOAPMessage;
 
 import org.jboss.ws.core.soap.MessageFactoryImpl;
+import org.jboss.ws.core.soap.SOAPConnectionFactoryImpl;
 import org.jboss.ws.core.soap.SOAPFactoryImpl;
 
 /**
@@ -69,6 +75,24 @@
 		return newSOAPFactory(SOAPConstants.SOAP_1_2_PROTOCOL);
 	}
 
+	public static SOAPConnectionFactory newSOAPConnectionFactory() throws SOAPException {
+		return new SOAPConnectionFactoryImpl();
+		// TODO: use standard SOAP API to create objects
+		//return SOAPConnectionFactory.newInstance();
+	}
+	
+    public static SOAPBodyElement getFirstSOAPBodyElement(final SOAPBody soapBody) {
+    	SOAPBodyElement bodyElement = null;
+    	final Iterator<?> it = soapBody.getChildElements();
+    	while (bodyElement == null && it.hasNext())
+    	{
+    		Object next = it.next();
+    		if (next instanceof SOAPBodyElement)
+    			bodyElement = (SOAPBodyElement)next;
+    	}
+    	return bodyElement;
+    }
+
 	private static SOAPFactory newSOAPFactory(final String protocol) {
 		try {
 			return new SOAPFactoryImpl(protocol);

Modified: stack/native/trunk/modules/dist/pom.xml
===================================================================
--- stack/native/trunk/modules/dist/pom.xml	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/dist/pom.xml	2012-04-19 04:47:36 UTC (rev 16182)
@@ -19,12 +19,6 @@
   <dependencies>
     <dependency>
       <groupId>org.jboss.ws.native</groupId>
-      <artifactId>jbossws-native-factories</artifactId>
-      <version>${project.version}</version>
-    </dependency>
-
-    <dependency>
-      <groupId>org.jboss.ws.native</groupId>
       <artifactId>jbossws-native-services</artifactId>
       <version>${project.version}</version>
     </dependency>

Modified: stack/native/trunk/modules/dist/src/main/distro/build.xml
===================================================================
--- stack/native/trunk/modules/dist/src/main/distro/build.xml	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/dist/src/main/distro/build.xml	2012-04-19 04:47:36 UTC (rev 16182)
@@ -74,7 +74,6 @@
       <!-- Move the native API to the front of the classpath -->
       <pathelement location="${thirdparty.dir}/jaxrpc-api.jar"/>
       <pathelement location="${thirdparty.dir}/saaj-api.jar"/>
-      <pathelement location="${thirdparty.dir}/jbossws-native-factories.jar"/>
       <fileset dir="${thirdparty.dir}">
         <exclude name="**/jbossws-jboss*.jar"/>
       </fileset>

Modified: stack/native/trunk/modules/dist/src/main/scripts/assembly-deploy-artifacts.xml
===================================================================
--- stack/native/trunk/modules/dist/src/main/scripts/assembly-deploy-artifacts.xml	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/dist/src/main/scripts/assembly-deploy-artifacts.xml	2012-04-19 04:47:36 UTC (rev 16182)
@@ -24,7 +24,6 @@
         <include>**/module.xml</include>
       </includes>
     </fileSet>
-    
   </fileSets>
 
   <dependencySets>
@@ -32,7 +31,6 @@
       <outputDirectory>deploy-artifacts/lib</outputDirectory>
       <unpack>false</unpack>
       <includes>
-        <include>org.jboss.ws.native:jbossws-native-factories:jar</include>
         <include>org.jboss.ws.native:jbossws-native-services:jar</include>
         <include>org.jboss.ws.native:jbossws-native-core</include>
         <include>org.jboss.ws:jbossws-api:jar</include>
@@ -60,7 +58,7 @@
 
     <dependencySet>
        <outputDirectory>deploy-artifacts/lib</outputDirectory>
-       <unpack>false</unpack>           
+       <unpack>false</unpack>
        <includes>
          <include>org.jboss.ws:jbossws-jboss*:jar</include>
        </includes>
@@ -71,7 +69,7 @@
 
     <dependencySet>
        <outputDirectory>deploy-artifacts/lib</outputDirectory>
-       <unpack>false</unpack>           
+       <unpack>false</unpack>
        <includes>
           <include>org.jboss.ws.native:jbossws-native-resources:jar:*:jboss*</include>
        </includes>

Modified: stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/as/webservices/server/integration/main/module.xml
===================================================================
--- stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/as/webservices/server/integration/main/module.xml	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/as/webservices/server/integration/main/module.xml	2012-04-19 04:47:36 UTC (rev 16182)
@@ -29,13 +29,10 @@
 
     <dependencies>
         <module name="javax.api" export="true"/>
-        <module name="javax.jws.api" export="true"/>
         <module name="javax.wsdl4j.api" export="true"/>
-        <module name="javax.xml.ws.api" export="true"/>
         <module name="org.jboss.ws.api" export="true"/>
         <module name="org.jboss.ws.spi" export="true"/>
         <module name="org.jboss.ws.common" services="import" export="true"/>
-        <module name="org.jboss.ws.native.jbossws-native-factories" services="export" export="true"/>
         <module name="org.jboss.ws.native.jbossws-native-core" services="export" export="true">
           <imports>
             <include path="META-INF"/>
@@ -49,8 +46,8 @@
           </exports>
         </module>
         <module name="org.jboss.ws.native.jbossws-native-services" services="export" export="true"/>
-        <module name="org.apache.xalan" services="export" export="true"/>
         <module name="org.apache.xerces" services="export" export="true"/>
         <module name="org.jboss.as.webservices" services="export" export="true"/>
     </dependencies>
+
 </module>

Modified: stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/ws/native/jbossws-native-core/main/module.xml
===================================================================
--- stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/ws/native/jbossws-native-core/main/module.xml	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/resources/src/main/resources/modules/jboss710/org/jboss/ws/native/jbossws-native-core/main/module.xml	2012-04-19 04:47:36 UTC (rev 16182)
@@ -42,7 +42,6 @@
         <module name="org.jboss.ws.api" />
         <module name="org.jboss.ws.spi" />
         <module name="org.jboss.ws.common" />
-        <module name="org.jboss.ws.native.jbossws-native-factories" services="import"/>
         <module name="org.jboss.ws.native.jbossws-native-services" services="import"/>
         <module name="org.jboss.common-core" />
         <module name="org.jboss.logging" />

Modified: stack/native/trunk/modules/resources/src/main/resources/resources/jbossws-deploy-macros.xml
===================================================================
--- stack/native/trunk/modules/resources/src/main/resources/resources/jbossws-deploy-macros.xml	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/resources/src/main/resources/resources/jbossws-deploy-macros.xml	2012-04-19 04:47:36 UTC (rev 16182)
@@ -40,11 +40,6 @@
           <include name="**/jbossws-native-core.jar"/>
         </fileset>
       </copy>
-      <copy todir="@{targetdir}/org/jboss/ws/native/jbossws-native-factories/main" flatten="false" overwrite="true">
-        <fileset dir="@{thirdpartydir}/lib">
-          <include name="**/jbossws-native-factories.jar"/>
-        </fileset>
-      </copy>
       <copy todir="@{targetdir}/org/jboss/ws/native/jbossws-native-services/main" flatten="false" overwrite="true">
         <fileset dir="@{thirdpartydir}/lib">
           <include name="**/jbossws-native-services.jar"/>

Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/binding/SOAPBindingTestCase.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -40,9 +40,8 @@
 import org.jboss.ws.core.EndpointInvocation;
 import org.jboss.ws.core.jaxrpc.client.CallImpl;
 import org.jboss.ws.core.jaxrpc.handler.SOAPMessageContextJAXRPC;
-import org.jboss.ws.core.soap.MessageFactoryImpl;
-import org.jboss.ws.core.soap.SOAPMessageImpl;
 import org.jboss.ws.core.soap.utils.MessageContextAssociation;
+import org.jboss.ws.core.soap.utils.SOAPUtils;
 import org.jboss.ws.metadata.umdm.OperationMetaData;
 import org.jboss.ws.metadata.umdm.ParameterMetaData;
 import org.jboss.ws.common.DOMUtils;
@@ -226,8 +225,8 @@
 
       ByteArrayInputStream inputStream = new ByteArrayInputStream(reqEnvelope.getBytes());
 
-      MessageFactory factory = new MessageFactoryImpl();
-      SOAPMessageImpl reqMessage = (SOAPMessageImpl)factory.createMessage(null, inputStream);
+      MessageFactory factory = SOAPUtils.newSOAP12MessageFactory();
+      SOAPMessage reqMessage = (SOAPMessage)factory.createMessage(null, inputStream);
 
       CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
       msgContext.setSOAPMessage(reqMessage);
@@ -253,8 +252,8 @@
 
       ByteArrayInputStream inputStream = new ByteArrayInputStream(reqEnvelopeWithBoundHeader.getBytes());
 
-      MessageFactory factory = new MessageFactoryImpl();
-      SOAPMessageImpl reqMessage = (SOAPMessageImpl)factory.createMessage(null, inputStream);
+      MessageFactory factory = SOAPUtils.newSOAP12MessageFactory();
+      SOAPMessage reqMessage = factory.createMessage(null, inputStream);
 
       CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
       msgContext.setSOAPMessage(reqMessage);
@@ -276,8 +275,8 @@
    {
       ByteArrayInputStream inputStream = new ByteArrayInputStream(reqEnvelopeWithUnboundHeader.getBytes());
 
-      MessageFactory factory = new MessageFactoryImpl();
-      SOAPMessageImpl reqMessage = (SOAPMessageImpl)factory.createMessage(null, inputStream);
+      MessageFactory factory = SOAPUtils.newSOAP12MessageFactory();
+      SOAPMessage reqMessage = (SOAPMessage)factory.createMessage(null, inputStream);
 
       CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
       msgContext.setSOAPMessage(reqMessage);
@@ -320,8 +319,8 @@
 
       ByteArrayInputStream inputStream = new ByteArrayInputStream(resEnvelope.getBytes());
 
-      MessageFactory factory = new MessageFactoryImpl();
-      SOAPMessageImpl resMessage = (SOAPMessageImpl)factory.createMessage(null, inputStream);
+      MessageFactory factory = SOAPUtils.newSOAP12MessageFactory();
+      SOAPMessage resMessage = factory.createMessage(null, inputStream);
 
       CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
       msgContext.setSOAPMessage(resMessage);
@@ -340,8 +339,8 @@
 
       ByteArrayInputStream inputStream = new ByteArrayInputStream(resEnvelopeWithBoundHeader.getBytes());
 
-      MessageFactory factory = new MessageFactoryImpl();
-      SOAPMessageImpl resMessage = (SOAPMessageImpl)factory.createMessage(null, inputStream);
+      MessageFactory factory = SOAPUtils.newSOAP12MessageFactory();
+      SOAPMessage resMessage = factory.createMessage(null, inputStream);
 
       CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
       msgContext.setSOAPMessage(resMessage);
@@ -371,8 +370,8 @@
 
       ByteArrayInputStream inputStream = new ByteArrayInputStream(resEnvelopeWithFault.getBytes());
 
-      MessageFactory factory = new MessageFactoryImpl();
-      SOAPMessageImpl resMessage = (SOAPMessageImpl)factory.createMessage(null, inputStream);
+      MessageFactory factory = SOAPUtils.newSOAP12MessageFactory();
+      SOAPMessage resMessage = factory.createMessage(null, inputStream);
 
       CommonMessageContext msgContext = MessageContextAssociation.peekMessageContext();
       msgContext.setSOAPMessage(resMessage);

Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/jbws1692/JBWS1692TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/jbws1692/JBWS1692TestCase.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/common/jbws1692/JBWS1692TestCase.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -29,6 +29,7 @@
 import javax.xml.soap.MessageFactory;
 import javax.xml.soap.SOAPMessage;
 
+import org.jboss.ws.core.soap.utils.SOAPUtils;
 import org.jboss.wsf.test.JBossWSTest;
 import org.w3c.dom.Document;
 import org.w3c.dom.Node;
@@ -46,7 +47,7 @@
 {
    public void testImportNode() throws Exception
    {
-      MessageFactory factory = MessageFactory.newInstance();
+      MessageFactory factory = SOAPUtils.newSOAP11MessageFactory();
       File soapreqfile = getResourceFile("common/jbws1692/soap-request-template.xml");
       SOAPMessage msg = factory.createMessage(null, new FileInputStream(soapreqfile));
 

Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/encoded/href/HRefHandler.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/encoded/href/HRefHandler.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/encoded/href/HRefHandler.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -33,6 +33,7 @@
 import javax.xml.soap.SOAPMessage;
 
 import org.jboss.logging.Logger;
+import org.jboss.ws.core.soap.utils.SOAPUtils;
 
 public class HRefHandler extends GenericHandler
 {
@@ -77,7 +78,7 @@
                 "</env:Body>" +
               "</env:Envelope>";
            
-           MessageFactory factory = MessageFactory.newInstance();
+           MessageFactory factory = SOAPUtils.newSOAP11MessageFactory();
            SOAPMessage reqMessage = factory.createMessage(null, new ByteArrayInputStream(envStr.getBytes()));
            ((SOAPMessageContext)msgContext).setMessage(reqMessage);
         }
@@ -109,7 +110,7 @@
                 "</env:Body>" +
               "</env:Envelope>";
            
-           MessageFactory factory = MessageFactory.newInstance();
+           MessageFactory factory = SOAPUtils.newSOAP11MessageFactory();
            SOAPMessage resMessage = factory.createMessage(null, new ByteArrayInputStream(envStr.getBytes()));
            ((SOAPMessageContext)msgContext).setMessage(resMessage);
         }

Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/JBWS1093TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/JBWS1093TestCase.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws1093/JBWS1093TestCase.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -39,6 +39,7 @@
 import org.jboss.wsf.test.JBossWSTest;
 import org.jboss.wsf.test.JBossWSTestSetup;
 import org.jboss.ws.common.DOMWriter;
+import org.jboss.ws.core.soap.utils.SOAPUtils;
 
 /**
  * Deploying a war that also contains normal servlets the web.xml is modified as if they are all endpoints
@@ -117,7 +118,7 @@
    {
       URL servletURL = new URL("http://" + getServerHost() + ":8080" + "/jaxrpc-jbws1093/ServletTest?type=soapMessage");
 
-      SOAPConnection con = SOAPConnectionFactory.newInstance().createConnection();
+      SOAPConnection con = SOAPUtils.newSOAPConnectionFactory().createConnection();
       SOAPMessage resMessage = con.get(servletURL);
       SOAPEnvelope env = resMessage.getSOAPPart().getEnvelope();
 

Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws425/JBWS425TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws425/JBWS425TestCase.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws425/JBWS425TestCase.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -38,6 +38,7 @@
 
 import junit.framework.Test;
 
+import org.jboss.ws.core.soap.utils.SOAPUtils;
 import org.jboss.wsf.test.CleanupOperation;
 import org.jboss.wsf.test.JBossWSTest;
 import org.jboss.wsf.test.JBossWSTestSetup;
@@ -120,7 +121,7 @@
          "  </soapenv:Body>" +
          "</soapenv:Envelope>";
 
-      MessageFactory msgFactory = MessageFactory.newInstance();
+      MessageFactory msgFactory = SOAPUtils.newSOAP11MessageFactory();
       SOAPConnection con = SOAPConnectionFactory.newInstance().createConnection();
 
       MimeHeaders mimeHeaders = new MimeHeaders();

Modified: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws707/JBWS707TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws707/JBWS707TestCase.java	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxrpc/jbws707/JBWS707TestCase.java	2012-04-19 04:47:36 UTC (rev 16182)
@@ -28,13 +28,14 @@
 import javax.xml.rpc.Service;
 import javax.xml.soap.MessageFactory;
 import javax.xml.soap.MimeHeaders;
+import javax.xml.soap.SOAPBody;
 import javax.xml.soap.SOAPElement;
 import javax.xml.soap.SOAPException;
 import javax.xml.soap.SOAPMessage;
 
 import junit.framework.Test;
 
-import org.jboss.ws.core.soap.SOAPBodyImpl;
+import org.jboss.ws.core.soap.utils.SOAPUtils;
 import org.jboss.wsf.test.CleanupOperation;
 import org.jboss.wsf.test.JBossWSTest;
 import org.jboss.wsf.test.JBossWSTestSetup;
@@ -201,8 +202,8 @@
       mimeHeaders.addHeader("Content-Type", "text/xml; charset=UTF-8");
 
       SOAPMessage soapMessage = mf.createMessage(mimeHeaders, new ByteArrayInputStream(xmlStr.getBytes()));
-      SOAPBodyImpl soapBody = (SOAPBodyImpl)soapMessage.getSOAPBody();
-      SOAPElement soapElement = soapBody.getBodyElement();
+      SOAPBody soapBody = (SOAPBody)soapMessage.getSOAPBody();
+      SOAPElement soapElement = SOAPUtils.getFirstSOAPBodyElement(soapBody);
       
       StringBuffer builder = new StringBuffer();
       NodeList nlist = soapElement.getChildNodes();

Modified: stack/native/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/native/trunk/modules/testsuite/pom.xml	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/modules/testsuite/pom.xml	2012-04-19 04:47:36 UTC (rev 16182)
@@ -98,35 +98,6 @@
       </testResource>
     </testResources>
     <plugins>
-      <plugin> <!-- This copies jbossws-native-factories jar to endorsed dir before the integration-tests are run -->
-        <artifactId>maven-resources-plugin</artifactId>
-        <executions>
-          <execution>
-            <id>copy-factories-jar</id>
-            <phase>pre-integration-test</phase>
-            <goals>
-              <goal>copy-resources</goal>
-            </goals>
-            <configuration>
-              <outputDirectory>${project.build.directory}/endorsed</outputDirectory>
-              <resources>
-                <resource>
-                  <directory>${basedir}/../endorsed/target/</directory>
-                  <includes>
-                    <include>jbossws-native-factories-${project.version}.jar</include>
-                  </includes>
-                </resource>
-                <resource>
-                  <directory>${basedir}/../../endorsed/target/</directory>
-                  <includes>
-                    <include>jbossws-native-factories-${project.version}.jar</include>
-                  </includes>
-                </resource>
-              </resources>
-            </configuration>
-          </execution>
-        </executions>
-      </plugin>
       <plugin>
         <groupId>org.codehaus.mojo</groupId>
         <artifactId>build-helper-maven-plugin</artifactId>
@@ -287,7 +258,6 @@
       <properties>
         <jboss.version>${jboss711.version}</jboss.version>
         <jbossws.integration.target>jboss711</jbossws.integration.target>
-        <endorsed.dirs>${project.build.directory}/endorsed</endorsed.dirs>
       </properties>
       <dependencies>
         <dependency>
@@ -355,15 +325,9 @@
       <build>
         <plugins>
           <plugin>
-            <artifactId>maven-compiler-plugin</artifactId>
-            <configuration>
-              <compilerArgument>-Djava.endorsed.dirs=${endorsed.dirs}</compilerArgument>
-            </configuration>
-          </plugin>
-          <plugin>
             <artifactId>maven-surefire-plugin</artifactId>
             <configuration>
-              <argLine>${surefire.jvm.args} ${surefire.default-mgmt-serurity.args} -Djava.endorsed.dirs=${endorsed.dirs}</argLine>
+              <argLine>${surefire.jvm.args} ${surefire.default-mgmt-serurity.args}</argLine>
               <excludes>
                  <!-- no excludes ATM -->
               </excludes>
@@ -382,7 +346,6 @@
       <properties>
         <jboss.version>${jboss712.version}</jboss.version>
         <jbossws.integration.target>jboss712</jbossws.integration.target>
-        <endorsed.dirs>${project.build.directory}/endorsed</endorsed.dirs>
       </properties>
       <dependencies>
         <dependency>
@@ -450,15 +413,9 @@
       <build>
         <plugins>
           <plugin>
-            <artifactId>maven-compiler-plugin</artifactId>
-            <configuration>
-              <compilerArgument>-Djava.endorsed.dirs=${endorsed.dirs}</compilerArgument>
-            </configuration>
-          </plugin>
-          <plugin>
             <artifactId>maven-surefire-plugin</artifactId>
             <configuration>
-              <argLine>${surefire.jvm.args} ${surefire.default-mgmt-serurity.args} -Djava.endorsed.dirs=${endorsed.dirs}</argLine>
+              <argLine>${surefire.jvm.args} ${surefire.default-mgmt-serurity.args}</argLine>
               <excludes>
                  <!-- no excludes ATM -->
               </excludes>

Modified: stack/native/trunk/pom.xml
===================================================================
--- stack/native/trunk/pom.xml	2012-04-18 07:56:53 UTC (rev 16181)
+++ stack/native/trunk/pom.xml	2012-04-19 04:47:36 UTC (rev 16182)
@@ -49,7 +49,6 @@
 
   <!-- Modules -->
   <modules>
-    <module>modules/endorsed</module>
     <module>modules/core</module>
     <module>modules/resources</module>
     <module>modules/services</module>



More information about the jbossws-commits mailing list