JBossWS SVN: r9590 - in framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test: java/org/jboss/test/ws/jaxws/samples/exception and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-03-12 08:57:35 -0400 (Thu, 12 Mar 2009)
New Revision: 9590
Added:
framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/TestHandler.java
framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml
Modified:
framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/ant-import/build-jars-jaxws.xml
framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java
framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java
Log:
[JBPAPP-1772] Fault handler chain is not called when user application exceptions are thrown.
Modified: framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/ant-import/build-jars-jaxws.xml
===================================================================
--- framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/ant-import/build-jars-jaxws.xml 2009-03-12 12:57:23 UTC (rev 9589)
+++ framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/ant-import/build-jars-jaxws.xml 2009-03-12 12:57:35 UTC (rev 9590)
@@ -90,6 +90,8 @@
<include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpoint.class"/>
<include name="org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.class"/>
<include name="org/jboss/test/ws/jaxws/samples/exception/server/UserException.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/TestHandler.class"/>
+ <include name="org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml"/>
</classes>
</war>
Modified: framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java
===================================================================
--- framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java 2009-03-12 12:57:23 UTC (rev 9589)
+++ framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/ExceptionTestCase.java 2009-03-12 12:57:35 UTC (rev 9590)
@@ -91,7 +91,7 @@
catch (SOAPFaultException e)
{
String faultString = e.getFault().getFaultString();
- assertTrue(faultString.indexOf("oh no, a runtime exception occured.") >= 0);
+ assertTrue(faultString.indexOf("OH NO, A RUNTIME EXCEPTION OCCURED.") >= 0);
}
}
@@ -104,7 +104,7 @@
}
catch (SOAPFaultException e)
{
- assertEquals("this is a fault string!", e.getFault().getFaultString());
+ assertEquals("THIS IS A FAULT STRING!", e.getFault().getFaultString());
assertEquals("mr.actor", e.getFault().getFaultActor());
assertEquals("FooCode", e.getFault().getFaultCodeAsName().getLocalName());
assertEquals("http://foo", e.getFault().getFaultCodeAsName().getURI());
@@ -128,7 +128,7 @@
catch (UserException_Exception e)
{
UserException ue = e.getFaultInfo();
- assertEquals("Some validation error", ue.getMessage());
+ assertEquals("SOME VALIDATION ERROR", ue.getMessage());
assertEquals("validation", ue.getErrorCategory());
assertEquals(123, ue.getErrorCode());
}
Modified: framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java
===================================================================
--- framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java 2009-03-12 12:57:23 UTC (rev 9589)
+++ framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/ExceptionEndpointImpl.java 2009-03-12 12:57:35 UTC (rev 9590)
@@ -21,6 +21,7 @@
*/
package org.jboss.test.ws.jaxws.samples.exception.server;
+import javax.jws.HandlerChain;
import javax.jws.WebService;
import javax.xml.namespace.QName;
import javax.xml.soap.SOAPException;
@@ -30,6 +31,7 @@
@WebService(endpointInterface = "org.jboss.test.ws.jaxws.samples.exception.server.ExceptionEndpoint")
+@HandlerChain(file = "jaxws-handlers-server.xml")
public class ExceptionEndpointImpl implements ExceptionEndpoint
{
public void throwRuntimeException()
Copied: framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/TestHandler.java (from rev 9515, framework/branches/jbossws-framework-2.0.1.GA_CP/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/TestHandler.java)
===================================================================
--- framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/TestHandler.java (rev 0)
+++ framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/TestHandler.java 2009-03-12 12:57:35 UTC (rev 9590)
@@ -0,0 +1,72 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.samples.exception.server;
+
+import java.util.Iterator;
+
+import javax.xml.namespace.QName;
+import javax.xml.soap.SOAPBody;
+import javax.xml.soap.SOAPBodyElement;
+import javax.xml.soap.SOAPElement;
+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.wsf.test.GenericSOAPHandler;
+
+/**
+ * A simple server side handler applying uppercase function to the error message strings.
+ *
+ * @author alessio.soldano(a)jboss.org
+ * @since 12-Feb-2008
+ */
+public class TestHandler extends GenericSOAPHandler
+{
+ @SuppressWarnings("unchecked")
+ public boolean handleFault(MessageContext msgContext)
+ {
+ try
+ {
+ SOAPMessage soapMessage = ((SOAPMessageContext)msgContext).getMessage();
+ SOAPBody soapBody = soapMessage.getSOAPBody();
+ SOAPBodyElement soapBodyElement = (SOAPBodyElement)soapBody.getChildElements().next();
+ SOAPElement faultStringElement = (SOAPElement)soapBodyElement.getChildElements(new QName("faultstring")).next();
+ faultStringElement.setValue(faultStringElement.getValue().toUpperCase());
+ Iterator<SOAPElement> itDetail = soapBodyElement.getChildElements(new QName("detail"));
+ if (itDetail.hasNext())
+ {
+ Iterator<SOAPElement> itException = itDetail.next().getChildElements(new QName("http://server.exception.samples.jaxws.ws.test.jboss.org/","UserException"));
+ if (itException.hasNext())
+ {
+ SOAPElement messageElement = (SOAPElement)itException.next().getChildElements(new QName("message")).next();
+ messageElement.setValue(messageElement.getValue().toUpperCase());
+ }
+ }
+ }
+ catch (Exception e)
+ {
+ throw new WebServiceException(e);
+ }
+ return true;
+ }
+}
Copied: framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml (from rev 9515, framework/branches/jbossws-framework-2.0.1.GA_CP/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml)
===================================================================
--- framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml (rev 0)
+++ framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxws/samples/exception/server/jaxws-handlers-server.xml 2009-03-12 12:57:35 UTC (rev 9590)
@@ -0,0 +1,14 @@
+<?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"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/javaee javaee_web_services_1_2.xsd">
+
+ <handler-chain>
+ <protocol-bindings>##SOAP11_HTTP</protocol-bindings>
+ <handler>
+ <handler-name>TestHandler</handler-name>
+ <handler-class>org.jboss.test.ws.jaxws.samples.exception.server.TestHandler</handler-class>
+ </handler>
+ </handler-chain>
+</handler-chains>
\ No newline at end of file
17 years, 1 month
JBossWS SVN: r9589 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src: main/java/org/jboss/wsf/stack/jbws and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-03-12 08:57:23 -0400 (Thu, 12 Mar 2009)
New Revision: 9589
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxrpc/samples/exception/ServerHandler.java
Log:
[JBPAPP-1772] Fault handler chain is not called when user application exceptions are thrown.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2009-03-12 12:53:40 UTC (rev 9588)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/ws/core/server/ServiceEndpointInvoker.java 2009-03-12 12:57:23 UTC (rev 9589)
@@ -221,8 +221,8 @@
}
catch (InvocationTargetException th)
{
- // Unwrap the throwable raised by the service endpoint implementation
- Throwable targetEx = ((InvocationTargetException)th).getTargetException();
+ //Unwrap the throwable raised by the service endpoint implementation
+ Throwable targetEx = th.getTargetException();
throw (targetEx instanceof Exception ? (Exception)targetEx : new UndeclaredThrowableException(targetEx));
}
@@ -266,14 +266,14 @@
faultType[0] = null;
}
}
- catch (RuntimeException ex)
+ catch (Exception ex)
{
// Reverse the message direction
processPivotInternal(msgContext, direction);
-
+
+ CommonBinding binding = bindingProvider.getCommonBinding();
try
{
- CommonBinding binding = bindingProvider.getCommonBinding();
binding.bindFaultMessage(ex);
// call the fault handler chain
@@ -288,6 +288,7 @@
catch (RuntimeException subEx)
{
log.warn("Exception while processing handleFault: ", ex);
+ binding.bindFaultMessage(subEx);
ex = subEx;
}
throw ex;
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2009-03-12 12:53:40 UTC (rev 9588)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/main/java/org/jboss/wsf/stack/jbws/RequestHandlerImpl.java 2009-03-12 12:57:23 UTC (rev 9589)
@@ -433,7 +433,7 @@
}
catch (Exception ex)
{
- MessageAbstraction resMessage = msgContext.getMessageAbstraction();
+ MessageAbstraction resMessage = MessageContextAssociation.peekMessageContext().getMessageAbstraction();
// In case we have an exception before the invoker is called
// we create the fault message here.
@@ -453,7 +453,7 @@
{
try
{
- MessageAbstraction resMessage = msgContext.getMessageAbstraction();
+ MessageAbstraction resMessage = MessageContextAssociation.peekMessageContext().getMessageAbstraction();
if (resMessage != null)
{
if (resMessage.isFaultMessage())
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxrpc/samples/exception/ServerHandler.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxrpc/samples/exception/ServerHandler.java 2009-03-12 12:53:40 UTC (rev 9588)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/src/test/java/org/jboss/test/ws/jaxrpc/samples/exception/ServerHandler.java 2009-03-12 12:57:23 UTC (rev 9589)
@@ -48,7 +48,7 @@
SOAPFault soapFault = soapMessage.getSOAPBody().getFault();
String faultString = soapFault.getFaultString();
- if (!faultString.equals("Don't worry it's just a test") && !faultString.equals("org.jboss.test.ws.jaxrpc.exception.UserException"))
+ if (!faultString.equals("Don't worry it's just a test") && !faultString.equals("org.jboss.test.ws.jaxrpc.samples.exception.UserException"))
throw new JAXRPCException("Unexpected fault string: " + faultString);
return true;
17 years, 1 month
JBossWS SVN: r9587 - in framework: tags and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-03-12 08:52:18 -0400 (Thu, 12 Mar 2009)
New Revision: 9587
Added:
framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/
Removed:
framework/tags/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/
Log:
[JBPAPP-1772] Move to branches.
Copied: framework/branches/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772 (from rev 9586, framework/tags/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772)
17 years, 1 month
JBossWS SVN: r9586 - framework/tags.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-03-12 08:50:47 -0400 (Thu, 12 Mar 2009)
New Revision: 9586
Added:
framework/tags/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772/
Log:
[JBPAPP-1772] Branch framework for patch.
Copied: framework/tags/jbossws-framework-2.0.1.GA_CP03_JBPAPP-1772 (from rev 9585, framework/tags/jbossws-framework-2.0.1.GA_CP03)
17 years, 1 month
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.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)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(a)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(a)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(a)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(a)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;
-
-@WebService(name = "SOAP11Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
-@SOAPBinding(style = Style.RPC)
-@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;
+
+@WebService(name = "SOAP11Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
+@SOAPBinding(style = Style.RPC)
+@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;
-
-@WebService(name="SOAP11Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419",
- endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP11Endpoint")
-@BindingType(SOAP11HTTP_MTOM_BINDING)
-@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;
+
+@WebService(name="SOAP11Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419",
+ endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP11Endpoint")
+@BindingType(SOAP11HTTP_MTOM_BINDING)
+@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(a)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(a)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(a)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(a)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;
-
-@WebService(name = "SOAP12Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
-@SOAPBinding(style = Style.RPC)
-@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;
+
+@WebService(name = "SOAP12Endpoint", targetNamespace = "http://org.jboss.ws/jaxws/jbws2419")
+@SOAPBinding(style = Style.RPC)
+@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;
-
-@WebService(name="SOAP12Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419",
- endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP12Endpoint")
-@BindingType(SOAP12HTTP_MTOM_BINDING)
-@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;
+
+@WebService(name="SOAP12Endpoint", targetNamespace="http://org.jboss.ws/jaxws/jbws2419",
+ endpointInterface = "org.jboss.test.ws.jaxws.jbws2419.SOAP12Endpoint")
+@BindingType(SOAP12HTTP_MTOM_BINDING)
+@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(a)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(a)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>
+
17 years, 1 month
JBossWS SVN: r9584 - stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-03-12 08:43:43 -0400 (Thu, 12 Mar 2009)
New Revision: 9584
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/version.properties
Log:
[JBPAPP-1772] Set patch version.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/version.properties
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/version.properties 2009-03-12 12:37:04 UTC (rev 9583)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/version.properties 2009-03-12 12:43:43 UTC (rev 9584)
@@ -5,8 +5,8 @@
specification.vendor=JBoss (http://www.jboss.org)
specification.version=jbossws-2.0
-version.id=2.0.1.SP2_CP05
-repository.id=2.0.1.SP2_CP05
+version.id=2.0.1.SP2_CP05_JBPAPP-1772
+repository.id=2.0.1.SP2_CP05_JBPAPP-1772
implementation.title=JBoss Web Services - Native
implementation.url=http://www.jboss.org/products/jbossws
17 years, 1 month
JBossWS SVN: r9583 - stack/native/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2009-03-12 08:37:04 -0400 (Thu, 12 Mar 2009)
New Revision: 9583
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772/
Log:
[JBPAPP-1772] Create patch branch.
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP05_JBPAPP-1772 (from rev 9582, stack/native/tags/jbossws-native-2.0.1.SP2_CP05)
17 years, 1 month
JBossWS SVN: r9582 - in stack/native/trunk: src/main/scripts and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-03-12 06:38:25 -0400 (Thu, 12 Mar 2009)
New Revision: 9582
Modified:
stack/native/trunk/modules/management/pom.xml
stack/native/trunk/src/main/scripts/assembly-bin-dist.xml
stack/native/trunk/src/main/scripts/assembly-deploy-artifacts.xml
stack/native/trunk/src/main/scripts/assembly-src-dist.xml
Log:
[JBWS-2573] fix
Modified: stack/native/trunk/modules/management/pom.xml
===================================================================
--- stack/native/trunk/modules/management/pom.xml 2009-03-12 10:13:53 UTC (rev 9581)
+++ stack/native/trunk/modules/management/pom.xml 2009-03-12 10:38:25 UTC (rev 9582)
@@ -15,35 +15,35 @@
<dependencies>
<!--
- These runtime dependencies are picked up by the assembly-deploy-artifacts
- descriptor. They have no real relevants to this module.
+ These dependencies are picked up by the assembly-deploy-artifacts
+ descriptor. They have no real and relevant meaning for this module
-->
<dependency>
<groupId>org.jboss.ws</groupId>
<artifactId>jbossws-framework</artifactId>
- <scope>runtime</scope>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.ws</groupId>
<artifactId>jbossws-framework</artifactId>
<classifier>testsuite</classifier>
- <scope>runtime</scope>
+ <scope>provided</scope>
<type>zip</type>
</dependency>
<dependency>
<groupId>org.jboss.ws</groupId>
<artifactId>jbossws-jboss423</artifactId>
- <scope>runtime</scope>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.ws</groupId>
<artifactId>jbossws-jboss500</artifactId>
- <scope>runtime</scope>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.ws</groupId>
<artifactId>jbossws-jboss501</artifactId>
- <scope>runtime</scope>
+ <scope>provided</scope>
</dependency>
<!-- [JBWS-2505] -->
<!-- START -->
@@ -51,19 +51,19 @@
<dependency>
<groupId>org.jboss.ws</groupId>
<artifactId>jbossws-jboss510x</artifactId>
- <scope>runtime</scope>
+ <scope>provided</scope>
</dependency>
<dependency>
<groupId>org.jboss.ws</groupId>
<artifactId>jbossws-jboss600x</artifactId>
- <scope>runtime</scope>
+ <scope>provided</scope>
</dependency>
-->
<!-- END -->
<dependency>
<groupId>org.jboss.jaxr</groupId>
<artifactId>juddi-service</artifactId>
- <scope>runtime</scope>
+ <scope>provided</scope>
<type>sar</type>
</dependency>
</dependencies>
@@ -94,7 +94,6 @@
<plugin>
<artifactId>maven-war-plugin</artifactId>
<configuration>
- <warSourceExcludes>WEB-INF/lib/*.jar</warSourceExcludes>
<webResources>
<resource>
<directory>src/main/webapp</directory>
Modified: stack/native/trunk/src/main/scripts/assembly-bin-dist.xml
===================================================================
--- stack/native/trunk/src/main/scripts/assembly-bin-dist.xml 2009-03-12 10:13:53 UTC (rev 9581)
+++ stack/native/trunk/src/main/scripts/assembly-bin-dist.xml 2009-03-12 10:38:25 UTC (rev 9582)
@@ -89,7 +89,7 @@
<dependencySet>
<outputDirectory>tests</outputDirectory>
<useStrictFiltering>true</useStrictFiltering>
- <scope>runtime</scope>
+ <scope>provided</scope>
<unpack>true</unpack>
<includes>
<include>*:jbossws-framework:zip:testsuite</include>
Modified: stack/native/trunk/src/main/scripts/assembly-deploy-artifacts.xml
===================================================================
--- stack/native/trunk/src/main/scripts/assembly-deploy-artifacts.xml 2009-03-12 10:13:53 UTC (rev 9581)
+++ stack/native/trunk/src/main/scripts/assembly-deploy-artifacts.xml 2009-03-12 10:38:25 UTC (rev 9582)
@@ -78,7 +78,7 @@
<outputDirectory>lib</outputDirectory>
<outputFileNameMapping>${module.artifactId}.${module.extension}</outputFileNameMapping>
<useStrictFiltering>true</useStrictFiltering>
- <scope>runtime</scope>
+ <scope>provided</scope>
<unpack>false</unpack>
<includes>
<include>org.jboss.ws:jbossws-framework:jar</include>
@@ -93,7 +93,7 @@
<outputDirectory>lib</outputDirectory>
<outputFileNameMapping>jbossws-jboss501.${module.extension}</outputFileNameMapping>
<useStrictFiltering>true</useStrictFiltering>
- <scope>runtime</scope>
+ <scope>provided</scope>
<unpack>false</unpack>
<includes>
<include>org.jboss.ws:jbossws-jboss501:jar</include>
@@ -106,7 +106,7 @@
<outputDirectory>lib</outputDirectory>
<outputFileNameMapping>jbossws-jboss510.${module.extension}</outputFileNameMapping>
<useStrictFiltering>true</useStrictFiltering>
- <scope>runtime</scope>
+ <scope>provided</scope>
<unpack>false</unpack>
<includes>
<include>org.jboss.ws:jbossws-jboss510x:jar</include>
@@ -116,7 +116,7 @@
<outputDirectory>lib</outputDirectory>
<outputFileNameMapping>jbossws-jboss600.${module.extension}</outputFileNameMapping>
<useStrictFiltering>true</useStrictFiltering>
- <scope>runtime</scope>
+ <scope>provided</scope>
<unpack>false</unpack>
<includes>
<include>org.jboss.ws:jbossws-jboss600x:jar</include>
Modified: stack/native/trunk/src/main/scripts/assembly-src-dist.xml
===================================================================
--- stack/native/trunk/src/main/scripts/assembly-src-dist.xml 2009-03-12 10:13:53 UTC (rev 9581)
+++ stack/native/trunk/src/main/scripts/assembly-src-dist.xml 2009-03-12 10:38:25 UTC (rev 9582)
@@ -57,7 +57,7 @@
<dependencySet>
<outputDirectory>modules/testsuite/framework-tests/src/test</outputDirectory>
<useStrictFiltering>true</useStrictFiltering>
- <scope>runtime</scope>
+ <scope>provided</scope>
<unpack>true</unpack>
<includes>
<include>*:jbossws-framework:zip:testsuite</include>
17 years, 1 month
JBossWS SVN: r9581 - in framework/trunk/hudson/hudson-home/jobs: AS-5.0.1 and 2 other directories.
by jbossws-commits@lists.jboss.org
Author: richard.opalka(a)jboss.com
Date: 2009-03-12 06:13:53 -0400 (Thu, 12 Mar 2009)
New Revision: 9581
Modified:
framework/trunk/hudson/hudson-home/jobs/AS-5.0.0/config.xml
framework/trunk/hudson/hudson-home/jobs/AS-5.0.1/config.xml
framework/trunk/hudson/hudson-home/jobs/AS-5.1.0/config.xml
framework/trunk/hudson/hudson-home/jobs/AS-6.0.0/config.xml
Log:
optimizing hudson speed - we do not need sources on QA machine
Modified: framework/trunk/hudson/hudson-home/jobs/AS-5.0.0/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/AS-5.0.0/config.xml 2009-03-12 09:22:31 UTC (rev 9580)
+++ framework/trunk/hudson/hudson-home/jobs/AS-5.0.0/config.xml 2009-03-12 10:13:53 UTC (rev 9581)
@@ -21,7 +21,7 @@
# build jboss
#
cd $SVNBASE
-./build/build.sh clean main
+./build/build.sh -Dthirdparty.maven.opts=-Dskip-download-sources clean main
#
# Verify build
Modified: framework/trunk/hudson/hudson-home/jobs/AS-5.0.1/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/AS-5.0.1/config.xml 2009-03-12 09:22:31 UTC (rev 9580)
+++ framework/trunk/hudson/hudson-home/jobs/AS-5.0.1/config.xml 2009-03-12 10:13:53 UTC (rev 9581)
@@ -21,7 +21,7 @@
# build jboss
#
cd $SVNBASE
-./build/build.sh clean main
+./build/build.sh -Dthirdparty.maven.opts=-Dskip-download-sources clean main
#
# Verify build
Modified: framework/trunk/hudson/hudson-home/jobs/AS-5.1.0/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/AS-5.1.0/config.xml 2009-03-12 09:22:31 UTC (rev 9580)
+++ framework/trunk/hudson/hudson-home/jobs/AS-5.1.0/config.xml 2009-03-12 10:13:53 UTC (rev 9581)
@@ -21,7 +21,7 @@
# build jboss
#
cd $SVNBASE
-./build/build.sh clean main
+./build/build.sh -Dthirdparty.maven.opts=-Dskip-download-sources clean main
#
# Verify build
Modified: framework/trunk/hudson/hudson-home/jobs/AS-6.0.0/config.xml
===================================================================
--- framework/trunk/hudson/hudson-home/jobs/AS-6.0.0/config.xml 2009-03-12 09:22:31 UTC (rev 9580)
+++ framework/trunk/hudson/hudson-home/jobs/AS-6.0.0/config.xml 2009-03-12 10:13:53 UTC (rev 9581)
@@ -21,7 +21,7 @@
# build jboss
#
cd $SVNBASE
-./build/build.sh clean main
+./build/build.sh -Dthirdparty.maven.opts=-Dskip-download-sources clean main
#
# Verify build
17 years, 1 month