Author: jim.ma
Date: 2013-07-26 07:01:25 -0400 (Fri, 26 Jul 2013)
New Revision: 17819
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/ParserConstants.java
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesFactory.java
Log:
[JBWS-3674]:Allow WebSerivceFactory to parse new
{http://xmlns.jcp.org/xml/ns/javaee}webservice element
Modified: spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/ParserConstants.java
===================================================================
--- spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/ParserConstants.java 2013-07-26
11:00:15 UTC (rev 17818)
+++ spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/ParserConstants.java 2013-07-26
11:01:25 UTC (rev 17819)
@@ -153,4 +153,6 @@
public static final String TRANSPORT_GUARANTEE = "transport-guarantee";
+ public static final String JCP_JAVAEENS =
"http://xmlns.jcp.org/xml/ns/javaee";
+
}
Modified:
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesFactory.java
===================================================================
---
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesFactory.java 2013-07-26
11:00:15 UTC (rev 17818)
+++
spi/trunk/src/main/java/org/jboss/wsf/spi/metadata/webservices/WebservicesFactory.java 2013-07-26
11:01:25 UTC (rev 17819)
@@ -33,6 +33,7 @@
import static org.jboss.wsf.spi.metadata.ParserConstants.HANDLER_CHAINS;
import static org.jboss.wsf.spi.metadata.ParserConstants.J2EE_NS;
import static org.jboss.wsf.spi.metadata.ParserConstants.JAVAEE_NS;
+import static org.jboss.wsf.spi.metadata.ParserConstants.JCP_JAVAEENS;
import static org.jboss.wsf.spi.metadata.ParserConstants.JAXRPC_MAPPING_FILE;
import static org.jboss.wsf.spi.metadata.ParserConstants.MTOM_THRESHOLD;
import static org.jboss.wsf.spi.metadata.ParserConstants.PORT_COMPONENT;
@@ -180,7 +181,7 @@
}
case START_ELEMENT : {
- if (match(reader, JAVAEE_NS, WEBSERVICES) || match(reader, J2EE_NS,
WEBSERVICES))
+ if (match(reader, JAVAEE_NS, WEBSERVICES) || match(reader, J2EE_NS,
WEBSERVICES) || match(reader, JCP_JAVAEENS, WEBSERVICES))
{
String nsUri = reader.getNamespaceURI();
metadata = parseWebservices(reader, nsUri, descriptorURL);