JBossWS SVN: r15214 - stack/native/branches.
by jbossws-commits@lists.jboss.org
Author: bmaxwell
Date: 2011-11-08 14:48:02 -0500 (Tue, 08 Nov 2011)
New Revision: 15214
Added:
stack/native/branches/jbossws-native-3.1.2.SP11_JBPAPP-7499/
Log:
JBPAPP-7499 create one off patch branch
13 years, 1 month
JBossWS SVN: r15213 - stack/native/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-11-08 11:23:13 -0500 (Tue, 08 Nov 2011)
New Revision: 15213
Modified:
stack/native/trunk/modules/testsuite/pom.xml
Log:
Updating excludes
Modified: stack/native/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/native/trunk/modules/testsuite/pom.xml 2011-11-08 15:39:46 UTC (rev 15212)
+++ stack/native/trunk/modules/testsuite/pom.xml 2011-11-08 16:23:13 UTC (rev 15213)
@@ -1133,7 +1133,6 @@
<exclude>org/jboss/test/ws/jaxrpc/overloaded/OverloadedTestCase*</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/dynamichandler/DynamicHandlerTestCase*</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/dynamichandler/StaticHandlerTestCase*</exclude>
- <exclude>org/jboss/test/ws/jaxrpc/samples/mtom/MTOMTestCase*</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/secureejb/SecureEJBTestCase*</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/serviceref/ServiceRefClientTestCase*</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/serviceref/ServiceRefEJBTestCase*</exclude>
@@ -1165,7 +1164,8 @@
<!-- # unpackaged EAR deployment failure -->
<exclude>org/jboss/test/ws/jaxrpc/jbws358/JBWS358TestCase*</exclude>
- <!-- # javaType [javax.xml.transform.Source] is not assignable from attachment content: java.lang.String -->
+ <!-- # [AS7-2550] javax.activation.api module needs access to jbossws-native data content handlers -->
+ <exclude>org/jboss/test/ws/jaxrpc/samples/mtom/MTOMTestCase*</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/swa/AttachmentSAAJTestCase*</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/swa/AttachmentProxyTestCase*</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/swa/AttachmentDIITestCase*</exclude>
13 years, 1 month
JBossWS SVN: r15212 - stack/cxf/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-11-08 10:39:46 -0500 (Tue, 08 Nov 2011)
New Revision: 15212
Modified:
stack/cxf/trunk/modules/testsuite/pom.xml
Log:
Updating excludes
Modified: stack/cxf/trunk/modules/testsuite/pom.xml
===================================================================
--- stack/cxf/trunk/modules/testsuite/pom.xml 2011-11-08 15:36:00 UTC (rev 15211)
+++ stack/cxf/trunk/modules/testsuite/pom.xml 2011-11-08 15:39:46 UTC (rev 15212)
@@ -1271,7 +1271,7 @@
<!-- Lib below required just for jaxrpc tests; listed here to prevent CXF stack from depending on Native stack -->
<!-- JBossWS Native Core version available on 710 -->
<additionalClasspathElement>${jboss.home}/modules/org/jboss/ws/native/jbossws-native-core/main/jbossws-native-core-4.0.0.Beta3.jar</additionalClasspathElement>
- <!-- JBossWS Native Core version overwritte by jbossws-native stack install -->
+ <!-- JBossWS Native Core version overwritten by jbossws-native stack install -->
<additionalClasspathElement>${jboss.home}/modules/org/jboss/ws/native/jbossws-native-core/main/jbossws-native-core.jar</additionalClasspathElement>
<!-- JBossWS Native Core version specified through system property -->
<additionalClasspathElement>${jboss.home}/modules/org/jboss/ws/native/jbossws-native-core/main/${jbossws-native-core.filename}</additionalClasspathElement>
@@ -1343,7 +1343,7 @@
<exclude>org/jboss/test/ws/jaxrpc/samples/serviceref/ServiceRefClientTestCase*</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/serviceref/ServiceRefEJBTestCase*</exclude>
- <!-- TODO: investigate jaxrpc attachments -->
+ <!-- [AS7-2550] javax.activation.api module needs access to jbossws-native data content handlers -->
<exclude>org/jboss/test/ws/jaxrpc/samples/mtom/**</exclude>
<exclude>org/jboss/test/ws/jaxrpc/samples/swa/**</exclude>
13 years, 1 month
JBossWS SVN: r15211 - shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-11-08 10:36:00 -0500 (Tue, 08 Nov 2011)
New Revision: 15211
Modified:
shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentProxyTestCase.java
Log:
Rewriting jaxrpc swa test to use jaxrpc ServiceFactory
Modified: shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentProxyTestCase.java
===================================================================
--- shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentProxyTestCase.java 2011-11-08 13:36:38 UTC (rev 15210)
+++ shared-testsuite/trunk/testsuite/src/test/java/org/jboss/test/ws/jaxrpc/samples/swa/AttachmentProxyTestCase.java 2011-11-08 15:36:00 UTC (rev 15211)
@@ -31,7 +31,9 @@
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMultipart;
import javax.naming.InitialContext;
+import javax.xml.namespace.QName;
import javax.xml.rpc.Service;
+import javax.xml.rpc.ServiceFactory;
import javax.xml.transform.stream.StreamSource;
import junit.framework.Test;
@@ -48,6 +50,8 @@
*/
public class AttachmentProxyTestCase extends JBossWSTest
{
+ public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxrpc-samples-swa";
+ private static final String TARGET_NAMESPACE = "http://org.jboss.ws/samples/swa";
private static Attachment port;
/** Deploy the test ear */
@@ -62,11 +66,15 @@
if (port == null)
{
- InitialContext iniCtx = getInitialContext();
- Service service = (Service)iniCtx.lookup("java:comp/env/service/AttachmentService");
- port = (Attachment)service.getPort(Attachment.class);
+ port = getService(Attachment.class, "Attachment", "AttachmentPort");
}
}
+
+ protected <T> T getService(final Class<T> clazz, final String serviceName, final String portName) throws Exception {
+ ServiceFactory serviceFactory = ServiceFactory.newInstance();
+ Service service = serviceFactory.createService(new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl"), new QName(TARGET_NAMESPACE, serviceName));
+ return (T) service.getPort(new QName(TARGET_NAMESPACE, portName), clazz);
+ }
/** Send a multipart message with a text/plain attachment part
*/
13 years, 1 month
JBossWS SVN: r15210 - stack/native/trunk.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-11-08 08:36:38 -0500 (Tue, 08 Nov 2011)
New Revision: 15210
Modified:
stack/native/trunk/pom.xml
Log:
Updating jaxws api version
Modified: stack/native/trunk/pom.xml
===================================================================
--- stack/native/trunk/pom.xml 2011-11-08 13:36:01 UTC (rev 15209)
+++ stack/native/trunk/pom.xml 2011-11-08 13:36:38 UTC (rev 15210)
@@ -58,7 +58,7 @@
<codehaus.jettison.version>1.0-RC2</codehaus.jettison.version>
<commons.logging.version>1.1.1</commons.logging.version>
<javassist.version>3.12.1.GA</javassist.version>
- <jaxws.api.version>1.0.0.Final</jaxws.api.version>
+ <jaxws.api.version>2.0.0.Final</jaxws.api.version>
<jaxrpc.api.version>1.0.0.Final</jaxrpc.api.version>
<saaj.api.version>1.0.0.Final</saaj.api.version>
<jsr181.api.version>1.0-MR1</jsr181.api.version>
13 years, 1 month
JBossWS SVN: r15209 - stack/cxf/trunk.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-11-08 08:36:01 -0500 (Tue, 08 Nov 2011)
New Revision: 15209
Modified:
stack/cxf/trunk/pom.xml
Log:
Updating some dependencies
Modified: stack/cxf/trunk/pom.xml
===================================================================
--- stack/cxf/trunk/pom.xml 2011-11-08 13:22:02 UTC (rev 15208)
+++ stack/cxf/trunk/pom.xml 2011-11-08 13:36:01 UTC (rev 15209)
@@ -60,17 +60,17 @@
<cxf.xjcplugins.version>2.4.0</cxf.xjcplugins.version>
<fastinfoset.api.version>1.2.7</fastinfoset.api.version>
<jboss.common.core.version>2.2.16.GA</jboss.common.core.version>
- <jboss.logging.version>3.0.0.Beta5</jboss.logging.version>
+ <jboss.logging.version>3.1.0.Beta3</jboss.logging.version>
<jboss.security.spi.version>2.0.4.SP4</jboss.security.spi.version>
<jboss.security.sx.version>2.0.4</jboss.security.sx.version>
<jboss.xb.version>2.0.3.GA</jboss.xb.version>
- <picketbox.version>3.0.0.Beta5</picketbox.version>
+ <picketbox.version>4.0.6.Beta1</picketbox.version>
<jaxws-jboss-httpserver-httpspi.version>1.0.0.GA</jaxws-jboss-httpserver-httpspi.version>
<httpserver.version>1.0.0.Beta1</httpserver.version>
<jaxb.api.version>1.0.0.Final</jaxb.api.version>
<jaxb.impl.version>2.2</jaxb.impl.version>
<jaxrpc.api.version>1.0.0.Final</jaxrpc.api.version>
- <jaxws.api.version>2.0.0.Alpha1</jaxws.api.version>
+ <jaxws.api.version>2.0.0.Final</jaxws.api.version>
<jboss.jaxr.version>2.0.3</jboss.jaxr.version>
<jsr181.api.version>1.0-MR1</jsr181.api.version>
<apache.scout.version>1.1.1</apache.scout.version>
13 years, 1 month
JBossWS SVN: r15207 - stack/cxf/trunk.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-11-08 05:57:43 -0500 (Tue, 08 Nov 2011)
New Revision: 15207
Modified:
stack/cxf/trunk/pom.xml
Log:
[JBWS-3379] Moving to Apache CXF 2.4.4
Modified: stack/cxf/trunk/pom.xml
===================================================================
--- stack/cxf/trunk/pom.xml 2011-11-08 10:13:47 UTC (rev 15206)
+++ stack/cxf/trunk/pom.xml 2011-11-08 10:57:43 UTC (rev 15207)
@@ -55,7 +55,7 @@
<jbossws.jboss700.version>4.0.0-SNAPSHOT</jbossws.jboss700.version>
<jboss700.version>7.0.0.Final</jboss700.version>
<ejb.api.version>1.0.1.Final</ejb.api.version>
- <cxf.version>2.4.4-SNAPSHOT</cxf.version>
+ <cxf.version>2.4.4</cxf.version>
<cxf.asm.version>3.3</cxf.asm.version>
<cxf.xjcplugins.version>2.4.0</cxf.xjcplugins.version>
<fastinfoset.api.version>1.2.7</fastinfoset.api.version>
@@ -80,15 +80,15 @@
<commons.logging.version>1.1.1</commons.logging.version>
<log4j.version>1.2.14</log4j.version>
<mail.version>1.4.2</mail.version>
- <neethi.version>3.0.0</neethi.version>
+ <neethi.version>3.0.1</neethi.version>
<saaj.api.version>1.0.0.Final</saaj.api.version>
<stax.api.version>1.0-2</stax.api.version>
<jms.api.version>1.0.0.Final</jms.api.version>
<velocity.version>1.5</velocity.version>
<xerces.version>2.9.1</xerces.version>
- <xmlsec.version>1.4.4</xmlsec.version>
+ <xmlsec.version>1.4.5</xmlsec.version>
<wstx.version>3.2.9</wstx.version>
- <spring.version>3.0.5.RELEASE</spring.version>
+ <spring.version>3.0.6.RELEASE</spring.version>
</properties>
13 years, 1 month
JBossWS SVN: r15206 - in stack/native/branches/jbossws-native-3.1.2/modules: testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-11-08 05:13:47 -0500 (Tue, 08 Nov 2011)
New Revision: 15206
Added:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java
Removed:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java
Log:
[JBPAPP-7498] Porting fix to avoid NPE wih default namespace on soap envelope
Modified: stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java 2011-11-08 09:28:55 UTC (rev 15205)
+++ stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java 2011-11-08 10:13:47 UTC (rev 15206)
@@ -194,7 +194,7 @@
DOMUtils.copyAttributes(soapHeader, domHeader);
- if (!soapHeader.getPrefix().equals(domHeader.getPrefix()))
+ if (!checkEquals(soapHeader.getPrefix(), domHeader.getPrefix()))
{
soapHeader.setPrefix(domHeader.getPrefix());
}
@@ -235,7 +235,7 @@
DOMUtils.copyAttributes(soapBody, domBody);
- if (!soapBody.getPrefix().equals(domBody.getPrefix()))
+ if (!checkEquals(soapBody.getPrefix(), domBody.getPrefix()))
{
soapBody.setPrefix(domBody.getPrefix());
}
@@ -444,4 +444,16 @@
String nodeValue = child.getNodeValue();
soapElement.addTextNode(nodeValue);
}
+
+ private boolean checkEquals(final String lhs, final String rhs)
+ {
+ if (lhs == null)
+ {
+ return (rhs == null);
+ }
+ else
+ {
+ return (lhs.equals(rhs));
+ }
+ }
}
Deleted: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java 2011-11-08 09:28:55 UTC (rev 15205)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java 2011-11-08 10:13:47 UTC (rev 15206)
@@ -1,56 +0,0 @@
-/*
- * JBoss, Home of Professional Open Source.
- * Copyright 2010, 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.jbws3380;
-
-import java.io.ByteArrayInputStream;
-import java.io.IOException;
-
-import javax.xml.soap.MessageFactory;
-import javax.xml.soap.SOAPException;
-import javax.xml.soap.SOAPMessage;
-
-import org.jboss.wsf.test.JBossWSTest;
-
-/**
- * [JBWS-3380] NPE when dealing with default namespace on SOAP Envelope
- *
- * @author alessio.soldano(a)jboss.com
- */
-public class JBWS3380TestCase extends JBossWSTest
-{
- private final String requestMessage = "<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:rep=\"http://jbws3380.jaxws.ws.test.jboss.org/\">"
- + " <Header/>"
- + " <Body>"
- + " <rep:helloWorld>"
- + " <!--Optional:-->"
- + " <name>?</name>"
- + " </rep:helloWorld>"
- + " </Body>"
- + "</Envelope>";
-
- public void testParseRequestMessage() throws SOAPException, IOException
- {
- MessageFactory msgFactory = MessageFactory.newInstance();
- SOAPMessage reqMsg = msgFactory.createMessage(null, new ByteArrayInputStream(requestMessage.getBytes()));
- assertNotNull(reqMsg);
- }
-}
\ No newline at end of file
Copied: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java (from rev 15205, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java 2011-11-08 10:13:47 UTC (rev 15206)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jbws3380;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.wsf.test.JBossWSTest;
+
+/**
+ * [JBWS-3380] NPE when dealing with default namespace on SOAP Envelope
+ *
+ * @author alessio.soldano(a)jboss.com
+ */
+public class JBWS3380TestCase extends JBossWSTest
+{
+ private final String requestMessage = "<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:rep=\"http://jbws3380.jaxws.ws.test.jboss.org/\">"
+ + " <Header/>"
+ + " <Body>"
+ + " <rep:helloWorld>"
+ + " <!--Optional:-->"
+ + " <name>?</name>"
+ + " </rep:helloWorld>"
+ + " </Body>"
+ + "</Envelope>";
+
+ public void testParseRequestMessage() throws SOAPException, IOException
+ {
+ MessageFactory msgFactory = MessageFactory.newInstance();
+ SOAPMessage reqMsg = msgFactory.createMessage(null, new ByteArrayInputStream(requestMessage.getBytes()));
+ assertNotNull(reqMsg);
+ }
+}
\ No newline at end of file
13 years, 1 month
JBossWS SVN: r15205 - in stack/native/trunk/modules: testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws and 1 other directories.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2011-11-08 04:28:55 -0500 (Tue, 08 Nov 2011)
New Revision: 15205
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java
Log:
[JBWS-3380] Applying Kev's patch
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java 2011-11-07 14:12:18 UTC (rev 15204)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/core/soap/EnvelopeBuilderDOM.java 2011-11-08 09:28:55 UTC (rev 15205)
@@ -189,7 +189,7 @@
DOMUtils.copyAttributes(soapHeader, domHeader);
- if (!soapHeader.getPrefix().equals(domHeader.getPrefix()))
+ if (!checkEquals(soapHeader.getPrefix(), domHeader.getPrefix()))
{
soapHeader.setPrefix(domHeader.getPrefix());
}
@@ -234,7 +234,7 @@
DOMUtils.copyAttributes(soapBody, domBody);
- if (!soapBody.getPrefix().equals(domBody.getPrefix()))
+ if (!checkEquals(soapBody.getPrefix(), domBody.getPrefix()))
{
soapBody.setPrefix(domBody.getPrefix());
}
@@ -443,4 +443,16 @@
String nodeValue = child.getNodeValue();
soapElement.addTextNode(nodeValue);
}
+
+ private boolean checkEquals(final String lhs, final String rhs)
+ {
+ if (lhs == null)
+ {
+ return (rhs == null);
+ }
+ else
+ {
+ return (lhs.equals(rhs));
+ }
+ }
}
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws3380/JBWS3380TestCase.java 2011-11-08 09:28:55 UTC (rev 15205)
@@ -0,0 +1,56 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2010, 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.jbws3380;
+
+import java.io.ByteArrayInputStream;
+import java.io.IOException;
+
+import javax.xml.soap.MessageFactory;
+import javax.xml.soap.SOAPException;
+import javax.xml.soap.SOAPMessage;
+
+import org.jboss.wsf.test.JBossWSTest;
+
+/**
+ * [JBWS-3380] NPE when dealing with default namespace on SOAP Envelope
+ *
+ * @author alessio.soldano(a)jboss.com
+ */
+public class JBWS3380TestCase extends JBossWSTest
+{
+ private final String requestMessage = "<Envelope xmlns=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:rep=\"http://jbws3380.jaxws.ws.test.jboss.org/\">"
+ + " <Header/>"
+ + " <Body>"
+ + " <rep:helloWorld>"
+ + " <!--Optional:-->"
+ + " <name>?</name>"
+ + " </rep:helloWorld>"
+ + " </Body>"
+ + "</Envelope>";
+
+ public void testParseRequestMessage() throws SOAPException, IOException
+ {
+ MessageFactory msgFactory = MessageFactory.newInstance();
+ SOAPMessage reqMsg = msgFactory.createMessage(null, new ByteArrayInputStream(requestMessage.getBytes()));
+ assertNotNull(reqMsg);
+ }
+}
\ No newline at end of file
13 years, 1 month