JBossWS SVN: r12841 - stack/cxf/branches/cxf-2.3/modules/addons/transports/http/httpserver/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/httpserver.
by jbossws-commits@lists.jboss.org
Author: alessio.soldano(a)jboss.com
Date: 2010-08-24 07:11:27 -0400 (Tue, 24 Aug 2010)
New Revision: 12841
Modified:
stack/cxf/branches/cxf-2.3/modules/addons/transports/http/httpserver/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/httpserver/HttpServerEngine.java
Log:
[JBWS-3079] Fix address provided when building a context
Modified: stack/cxf/branches/cxf-2.3/modules/addons/transports/http/httpserver/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/httpserver/HttpServerEngine.java
===================================================================
--- stack/cxf/branches/cxf-2.3/modules/addons/transports/http/httpserver/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/httpserver/HttpServerEngine.java 2010-08-23 18:37:58 UTC (rev 12840)
+++ stack/cxf/branches/cxf-2.3/modules/addons/transports/http/httpserver/src/main/java/org/jboss/wsf/stack/cxf/addons/transports/httpserver/HttpServerEngine.java 2010-08-24 11:11:27 UTC (rev 12841)
@@ -97,13 +97,13 @@
throw new RuntimeException(e);
}
}
- server.createContext(PathUtils.getContextPath(address), handler);
+ server.createContext(PathUtils.getContextPath(address) + PathUtils.getPath(address), handler);
handlerCount++;
}
public synchronized void removeHandler(String address)
{
- server.removeContext(PathUtils.getContextPath(address));
+ server.removeContext(PathUtils.getContextPath(address) + PathUtils.getPath(address));
handlerCount--;
}
14 years, 4 months
JBossWS SVN: r12840 - in stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules: testsuite/native-tests/scripts and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2010-08-23 14:37:58 -0400 (Mon, 23 Aug 2010)
New Revision: 12840
Added:
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
Removed:
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
Modified:
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
Log:
[JBPAPP-4932] Incorrect namespace prefix for message part in WSDL when generating WSDL for JAX-WS endpoint.
Modified: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 18:33:28 UTC (rev 12839)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 18:37:58 UTC (rev 12840)
@@ -154,7 +154,7 @@
wsdlInterface.addFault(interfaceFault);
WSDLInterfaceOperationOutfault outfault = new WSDLInterfaceOperationOutfault(interfaceOperation);
- String ns = getNamespace(fault.getJavaType(), operation.getQName().getNamespaceURI());
+ String ns = getNamespace(fault.getJavaType(), fault.getXmlName().getNamespaceURI());
QName outFaultName = new QName(ns, fault.getXmlName().getLocalPart());
outfault.setRef(outFaultName);
interfaceOperation.addOutfault(outfault);
Modified: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-08-23 18:33:28 UTC (rev 12839)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-08-23 18:37:58 UTC (rev 12840)
@@ -365,8 +365,8 @@
<metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2014/">
<include name="wsse.*" />
</metainf>
- </jar>
-
+ </jar>
+
<!-- jaxws-jbws2116-->
<jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2116.jar">
<fileset dir="${tests.output.dir}/test-classes">
@@ -549,6 +549,17 @@
</metainf>
</jar>
+ <!-- jaxws-jbws2637-->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2637.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2637/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2637/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2637/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2637/WEB-INF">
+ <include name="*" />
+ </webinf>
+ </war>
+
<!-- jaxws-jbws2682 -->
<war warfile="${tests.output.dir}/test-libs/jaxws-jbws2682.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2682/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Copied: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637 (from rev 12834, stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637)
Deleted: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 13:51:50 UTC (rev 12834)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 18:37:58 UTC (rev 12840)
@@ -1,40 +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.jbws2637;
-
-import javax.jws.WebService;
-
-/**
- * Test Endpoint to test WSDL generation when fault is
- * in a different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2637")
-public interface Endpoint
-{
-
- public String echo(final String message) throws EndpointFault;
-
-}
Copied: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java (from rev 12834, stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 18:37:58 UTC (rev 12840)
@@ -0,0 +1,40 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2637")
+public interface Endpoint
+{
+
+ public String echo(final String message) throws EndpointFault;
+
+}
Deleted: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 13:51:50 UTC (rev 12834)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 18:37:58 UTC (rev 12840)
@@ -1,38 +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.jbws2637;
-
-import javax.xml.ws.WebFault;
-
-/**
- * Exception mapped to different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- */
-@WebFault(targetNamespace="http://ws.jboss.org/jbws2637/faults")
-public class EndpointFault extends Exception
-{
-
- private static final long serialVersionUID = -6725899843509034056L;
-
-}
Copied: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java (from rev 12834, stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 18:37:58 UTC (rev 12840)
@@ -0,0 +1,38 @@
+/*
+ * 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.jbws2637;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * Exception mapped to different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ */
+@WebFault(targetNamespace="http://ws.jboss.org/jbws2637/faults")
+public class EndpointFault extends Exception
+{
+
+ private static final long serialVersionUID = -6725899843509034056L;
+
+}
Deleted: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 13:51:50 UTC (rev 12834)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 18:37:58 UTC (rev 12840)
@@ -1,45 +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.jbws2637;
-
-import javax.jws.WebService;
-
-
-/**
- * Test Endpoint to test WSDL generation when fault is
- * in a different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-@WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2637", endpointInterface = "org.jboss.test.ws.jaxws.jbws2637.Endpoint")
-public class EndpointImpl implements Endpoint
-{
-
- @Override
- public String echo(String message)
- {
- return message;
- }
-
-}
Copied: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java (from rev 12834, stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 18:37:58 UTC (rev 12840)
@@ -0,0 +1,45 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2637", endpointInterface = "org.jboss.test.ws.jaxws.jbws2637.Endpoint")
+public class EndpointImpl implements Endpoint
+{
+
+ @Override
+ public String echo(String message)
+ {
+ return message;
+ }
+
+}
Deleted: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 13:51:50 UTC (rev 12834)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 18:37:58 UTC (rev 12840)
@@ -1,79 +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.jbws2637;
-
-import java.io.File;
-
-import junit.framework.Test;
-
-import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.wsf.test.JBossWSTestSetup;
-
-/**
- * [JBWS-2637] Incorrect namespace for fault
- * messages.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 23rd August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-public class JBWS2637TestCase extends JBossWSTest
-{
-
- public final String TARGET_WSDL_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2637?wsdl";
-
- private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
- private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
- private static final String EXT = ":".equals(PS) ? ".sh" : ".bat";
-
- private String JBOSS_HOME = System.getProperty("jboss.home");
-
- public static Test suite() throws Exception
- {
- return new JBossWSTestSetup(JBWS2637TestCase.class, "jaxws-jbws2637.war");
- }
-
- public void testWSConsume() throws Exception
- {
- // use absolute path for the output to be re-usable
- String absOutput = "target/wsconsume/jbws2637";
-
- String command = JBOSS_HOME + FS + "bin" + FS + "wsconsume" + EXT + " -k -o " + absOutput + " " + TARGET_WSDL_ADDRESS;
- executeCommand(command);
-
- String packageDir = new File(absOutput + "/org/jboss/ws/jbws2637").getAbsolutePath();
-
- checkFileExists(packageDir, "Echo.java");
- checkFileExists(packageDir, "EchoResponse.java");
- checkFileExists(packageDir, "Endpoint.java");
- checkFileExists(packageDir, "EndpointFault.java");
- checkFileExists(packageDir, "EndpointFault_Exception.java");
- checkFileExists(packageDir, "EndpointService.java");
- }
-
- private static void checkFileExists(String packageDir, String filename)
- {
- File expectedFile = new File(packageDir + FS + filename);
- assertTrue("File '" + filename + "' missing from folder '" + packageDir + "'", expectedFile.exists());
- }
-
-}
Copied: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java (from rev 12834, stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 18:37:58 UTC (rev 12840)
@@ -0,0 +1,79 @@
+/*
+ * 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.jbws2637;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-2637] Incorrect namespace for fault
+ * messages.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 23rd August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+public class JBWS2637TestCase extends JBossWSTest
+{
+
+ public final String TARGET_WSDL_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2637?wsdl";
+
+ private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
+ private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
+ private static final String EXT = ":".equals(PS) ? ".sh" : ".bat";
+
+ private String JBOSS_HOME = System.getProperty("jboss.home");
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2637TestCase.class, "jaxws-jbws2637.war");
+ }
+
+ public void testWSConsume() throws Exception
+ {
+ // use absolute path for the output to be re-usable
+ String absOutput = "target/wsconsume/jbws2637";
+
+ String command = JBOSS_HOME + FS + "bin" + FS + "wsconsume" + EXT + " -k -o " + absOutput + " " + TARGET_WSDL_ADDRESS;
+ executeCommand(command);
+
+ String packageDir = new File(absOutput + "/org/jboss/ws/jbws2637").getAbsolutePath();
+
+ checkFileExists(packageDir, "Echo.java");
+ checkFileExists(packageDir, "EchoResponse.java");
+ checkFileExists(packageDir, "Endpoint.java");
+ checkFileExists(packageDir, "EndpointFault.java");
+ checkFileExists(packageDir, "EndpointFault_Exception.java");
+ checkFileExists(packageDir, "EndpointService.java");
+ }
+
+ private static void checkFileExists(String packageDir, String filename)
+ {
+ File expectedFile = new File(packageDir + FS + filename);
+ assertTrue("File '" + filename + "' missing from folder '" + packageDir + "'", expectedFile.exists());
+ }
+
+}
Copied: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637 (from rev 12834, stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637)
Copied: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF (from rev 12834, stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF)
Deleted: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 13:51:50 UTC (rev 12834)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 18:37:58 UTC (rev 12840)
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<web-app version="2.4" 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">
- <servlet>
- <servlet-name>Endpoint</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.jbws2637.Endpoint</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>Endpoint</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-</web-app>
\ No newline at end of file
Copied: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml (from rev 12834, stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 18:37:58 UTC (rev 12840)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<web-app version="2.4" 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">
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2637.Endpoint</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
14 years, 4 months
JBossWS SVN: r12839 - in stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932: src/main/scripts and 1 other directory.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2010-08-23 14:33:28 -0400 (Mon, 23 Aug 2010)
New Revision: 12839
Modified:
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/pom.xml
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/src/main/scripts/assembly-deploy-artifacts.xml
Log:
Bump the JAX-WS version to overcome a build error.
Modified: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/pom.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/pom.xml 2010-08-23 17:50:43 UTC (rev 12838)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/pom.xml 2010-08-23 18:33:28 UTC (rev 12839)
@@ -69,7 +69,7 @@
<apache.scout.version>1.1.1</apache.scout.version>
<juddi.version>2.0.1</juddi.version>
<sun.fastinfoset.version>1.2.7</sun.fastinfoset.version>
- <sun.jaxws.version>2.1.3</sun.jaxws.version>
+ <sun.jaxws.version>2.1.7</sun.jaxws.version>
<woodstox.version>3.2.8</woodstox.version>
<wsdl4j.version>1.6.2</wsdl4j.version>
<xmlsec.version>1.4.3</xmlsec.version>
Modified: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/src/main/scripts/assembly-deploy-artifacts.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/src/main/scripts/assembly-deploy-artifacts.xml 2010-08-23 17:50:43 UTC (rev 12838)
+++ stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/src/main/scripts/assembly-deploy-artifacts.xml 2010-08-23 18:33:28 UTC (rev 12839)
@@ -46,9 +46,9 @@
<include>org.jboss.ws.native:jbossws-native-jaxws-ext:jar</include>
<include>org.jboss.ws.native:jbossws-native-saaj:jar</include>
<include>org.codehaus.jettison:jettison:jar</include>
- <include>stax:stax-api:jar</include>
+ <include>stax:stax-api:jar</include>
<include>org.jvnet.staxex:stax-ex:jar</include>
- <include>com.sun.xml.stream.buffer:streambuffer:jar</include>
+ <include>com.sun.xml.stream.buffer:streambuffer:jar</include>
<include>wsdl4j:wsdl4j:jar</include>
<include>org.apache:xmlsec:jar</include>
</includes>
14 years, 4 months
JBossWS SVN: r12838 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931: src/main/java/org/jboss/ws/tools/wsdl and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2010-08-23 13:50:43 -0400 (Mon, 23 Aug 2010)
New Revision: 12838
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
Removed:
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/ant-import-tests/build-jars-jaxws.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
Log:
[JBPAPP-4931] Incorrect namespace prefix for message part in WSDL when generating WSDL for JAX-WS endpoint.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/ant-import-tests/build-jars-jaxws.xml 2010-08-23 17:39:58 UTC (rev 12837)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/ant-import-tests/build-jars-jaxws.xml 2010-08-23 17:50:43 UTC (rev 12838)
@@ -656,6 +656,17 @@
<exclude name="org/jboss/test/ws/jaxws/jbws2437/*TestCase.class"/>
</fileset>
</jar>
+
+ <!-- jaxws-jbws2637-->
+ <war warfile="${tests.output.dir}/libs/jaxws-jbws2637.war" webxml="${tests.output.dir}/resources/jaxws/jbws2637/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2637/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2637/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/resources/jaxws/jbws2637/WEB-INF">
+ <include name="*" />
+ </webinf>
+ </war>
<!-- jaxws-jbws2682 -->
<war warfile="${tests.output.dir}/libs/jaxws-jbws2682.war" webxml="${tests.output.dir}/resources/jaxws/jbws2682/WEB-INF/web.xml">
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 17:39:58 UTC (rev 12837)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 17:50:43 UTC (rev 12838)
@@ -221,7 +221,7 @@
wsdlInterface.addFault(interfaceFault);
WSDLInterfaceOperationOutfault outfault = new WSDLInterfaceOperationOutfault(interfaceOperation);
- String ns = getNamespace(fault.getJavaType(), operation.getQName().getNamespaceURI());
+ String ns = getNamespace(fault.getJavaType(), fault.getXmlName().getNamespaceURI());
QName outFaultName = new QName(ns, fault.getXmlName().getLocalPart());
outfault.setRef(outFaultName);
interfaceOperation.addOutfault(outfault);
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637 (from rev 12835, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637)
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 15:50:35 UTC (rev 12835)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 17:50:43 UTC (rev 12838)
@@ -1,40 +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.jbws2637;
-
-import javax.jws.WebService;
-
-/**
- * Test Endpoint to test WSDL generation when fault is
- * in a different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2637")
-public interface Endpoint
-{
-
- public String echo(final String message) throws EndpointFault;
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java (from rev 12835, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 17:50:43 UTC (rev 12838)
@@ -0,0 +1,40 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2637")
+public interface Endpoint
+{
+
+ public String echo(final String message) throws EndpointFault;
+
+}
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 15:50:35 UTC (rev 12835)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 17:50:43 UTC (rev 12838)
@@ -1,38 +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.jbws2637;
-
-import javax.xml.ws.WebFault;
-
-/**
- * Exception mapped to different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- */
-@WebFault(targetNamespace="http://ws.jboss.org/jbws2637/faults")
-public class EndpointFault extends Exception
-{
-
- private static final long serialVersionUID = -6725899843509034056L;
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java (from rev 12835, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 17:50:43 UTC (rev 12838)
@@ -0,0 +1,38 @@
+/*
+ * 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.jbws2637;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * Exception mapped to different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ */
+@WebFault(targetNamespace="http://ws.jboss.org/jbws2637/faults")
+public class EndpointFault extends Exception
+{
+
+ private static final long serialVersionUID = -6725899843509034056L;
+
+}
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 15:50:35 UTC (rev 12835)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 17:50:43 UTC (rev 12838)
@@ -1,44 +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.jbws2637;
-
-import javax.jws.WebService;
-
-
-/**
- * Test Endpoint to test WSDL generation when fault is
- * in a different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-@WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2637", endpointInterface = "org.jboss.test.ws.jaxws.jbws2637.Endpoint")
-public class EndpointImpl implements Endpoint
-{
-
- public String echo(String message)
- {
- return message;
- }
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java (from rev 12835, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 17:50:43 UTC (rev 12838)
@@ -0,0 +1,44 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2637", endpointInterface = "org.jboss.test.ws.jaxws.jbws2637.Endpoint")
+public class EndpointImpl implements Endpoint
+{
+
+ public String echo(String message)
+ {
+ return message;
+ }
+
+}
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 15:50:35 UTC (rev 12835)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 17:50:43 UTC (rev 12838)
@@ -1,134 +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.jbws2637;
-
-import java.io.File;
-import java.io.IOException;
-import java.io.OutputStream;
-
-import junit.framework.Test;
-
-import org.jboss.wsf.common.IOUtils;
-import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.wsf.test.JBossWSTestSetup;
-
-/**
- * [JBWS-2637] Incorrect namespace for fault
- * messages.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 23rd August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-public class JBWS2637TestCase extends JBossWSTest
-{
-
-
-
- public final String TARGET_WSDL_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2637?wsdl";
-
- private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
- private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
- private static final String EXT = ":".equals(PS) ? ".sh" : ".bat";
-
- private String JBOSS_HOME = System.getProperty("jboss.home");
-
- public static Test suite() throws Exception
- {
- return new JBossWSTestSetup(JBWS2637TestCase.class, "jaxws-jbws2637.war");
- }
-
- public void testWSConsume() throws Exception
- {
- // use absolute path for the output to be re-usable
- String absOutput = "target/wsconsume/jbws2637";
-
- String command = JBOSS_HOME + FS + "bin" + FS + "wsconsume" + EXT + " -k -o " + absOutput + " " + TARGET_WSDL_ADDRESS;
- executeCommand(command);
-
- String packageDir = new File(absOutput + "/org/jboss/ws/jbws2637").getAbsolutePath();
-
- checkFileExists(packageDir, "Echo.java");
- checkFileExists(packageDir, "EchoResponse.java");
- checkFileExists(packageDir, "Endpoint.java");
- checkFileExists(packageDir, "EndpointFault.java");
- checkFileExists(packageDir, "EndpointFault_Exception.java");
- checkFileExists(packageDir, "EndpointService.java");
- }
-
- private static void checkFileExists(String packageDir, String filename)
- {
- File expectedFile = new File(packageDir + FS + filename);
- assertTrue("File '" + filename + "' missing from folder '" + packageDir + "'", expectedFile.exists());
- }
-
- /*
- * Add methods from trunk usually expected in JBossWSTest
- */
-
- /**
- * Execute <b>command</b> in separate process.
- * @param command command to execute
- * @throws IOException if I/O error occurs
- */
- public void executeCommand(String command) throws IOException
- {
- this.executeCommand(command, null, null);
- }
-
- /**
- * Execute <b>command</b> in separate process, copy process input to <b>os</b>. If process will fail, display custom <b>message</b> in assertion.
- * @param command command to execute
- * @param os output stream to copy process input to. If null, <b>System.out</b> will be used
- * @param message message to display if assertion fails
- * @throws IOException if I/O error occurs
- */
- public void executeCommand(String command, OutputStream os, String message) throws IOException
- {
- if (command == null)
- throw new NullPointerException("Command cannot be null");
-
- System.out.println("Executing command: " + command);
- Process p = Runtime.getRuntime().exec(command);
- System.out.println("Process input stream:");
- IOUtils.copyStream(os == null ? System.out : os, p.getInputStream());
- try
- {
- int statusCode = p.waitFor();
- if (statusCode != 0)
- {
- System.err.println("Process error stream:");
- IOUtils.copyStream(System.err, p.getErrorStream());
- }
- String fallbackMessage = "Process did exit with status " + statusCode;
- assertTrue(message != null ? message : fallbackMessage, statusCode == 0);
- }
- catch (InterruptedException ie)
- {
- ie.printStackTrace(System.err);
- }
- finally
- {
- p.destroy();
- }
- }
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java (from rev 12835, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 17:50:43 UTC (rev 12838)
@@ -0,0 +1,134 @@
+/*
+ * 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.jbws2637;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.OutputStream;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.common.IOUtils;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-2637] Incorrect namespace for fault
+ * messages.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 23rd August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+public class JBWS2637TestCase extends JBossWSTest
+{
+
+
+
+ public final String TARGET_WSDL_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2637?wsdl";
+
+ private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
+ private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
+ private static final String EXT = ":".equals(PS) ? ".sh" : ".bat";
+
+ private String JBOSS_HOME = System.getProperty("jboss.home");
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2637TestCase.class, "jaxws-jbws2637.war");
+ }
+
+ public void testWSConsume() throws Exception
+ {
+ // use absolute path for the output to be re-usable
+ String absOutput = "target/wsconsume/jbws2637";
+
+ String command = JBOSS_HOME + FS + "bin" + FS + "wsconsume" + EXT + " -k -o " + absOutput + " " + TARGET_WSDL_ADDRESS;
+ executeCommand(command);
+
+ String packageDir = new File(absOutput + "/org/jboss/ws/jbws2637").getAbsolutePath();
+
+ checkFileExists(packageDir, "Echo.java");
+ checkFileExists(packageDir, "EchoResponse.java");
+ checkFileExists(packageDir, "Endpoint.java");
+ checkFileExists(packageDir, "EndpointFault.java");
+ checkFileExists(packageDir, "EndpointFault_Exception.java");
+ checkFileExists(packageDir, "EndpointService.java");
+ }
+
+ private static void checkFileExists(String packageDir, String filename)
+ {
+ File expectedFile = new File(packageDir + FS + filename);
+ assertTrue("File '" + filename + "' missing from folder '" + packageDir + "'", expectedFile.exists());
+ }
+
+ /*
+ * Add methods from trunk usually expected in JBossWSTest
+ */
+
+ /**
+ * Execute <b>command</b> in separate process.
+ * @param command command to execute
+ * @throws IOException if I/O error occurs
+ */
+ public void executeCommand(String command) throws IOException
+ {
+ this.executeCommand(command, null, null);
+ }
+
+ /**
+ * Execute <b>command</b> in separate process, copy process input to <b>os</b>. If process will fail, display custom <b>message</b> in assertion.
+ * @param command command to execute
+ * @param os output stream to copy process input to. If null, <b>System.out</b> will be used
+ * @param message message to display if assertion fails
+ * @throws IOException if I/O error occurs
+ */
+ public void executeCommand(String command, OutputStream os, String message) throws IOException
+ {
+ if (command == null)
+ throw new NullPointerException("Command cannot be null");
+
+ System.out.println("Executing command: " + command);
+ Process p = Runtime.getRuntime().exec(command);
+ System.out.println("Process input stream:");
+ IOUtils.copyStream(os == null ? System.out : os, p.getInputStream());
+ try
+ {
+ int statusCode = p.waitFor();
+ if (statusCode != 0)
+ {
+ System.err.println("Process error stream:");
+ IOUtils.copyStream(System.err, p.getErrorStream());
+ }
+ String fallbackMessage = "Process did exit with status " + statusCode;
+ assertTrue(message != null ? message : fallbackMessage, statusCode == 0);
+ }
+ catch (InterruptedException ie)
+ {
+ ie.printStackTrace(System.err);
+ }
+ finally
+ {
+ p.destroy();
+ }
+ }
+}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637 (from rev 12835, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637)
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF (from rev 12835, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF)
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 15:50:35 UTC (rev 12835)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 17:50:43 UTC (rev 12838)
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<web-app version="2.4" 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">
- <servlet>
- <servlet-name>Endpoint</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.jbws2637.Endpoint</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>Endpoint</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-</web-app>
\ No newline at end of file
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml (from rev 12835, stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 17:50:43 UTC (rev 12838)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<web-app version="2.4" 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">
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2637.Endpoint</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
14 years, 4 months
JBossWS SVN: r12837 - stack/native/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2010-08-23 13:39:58 -0400 (Mon, 23 Aug 2010)
New Revision: 12837
Added:
stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932/
Log:
[JBPAPP-4932] Branch for patch.
Copied: stack/native/branches/jbossws-native-3.1.2.SP3_CP01_JBPAPP-4932 (from rev 12836, stack/native/tags/jbossws-native-3.1.2.SP3_CP01)
14 years, 4 months
JBossWS SVN: r12836 - stack/native/branches.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2010-08-23 13:30:00 -0400 (Mon, 23 Aug 2010)
New Revision: 12836
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931/
Log:
[JBPAPP-4931] Branch for patch.
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP08_JBPAPP-4931 (from rev 12835, stack/native/tags/jbossws-native-2.0.1.SP2_CP08)
14 years, 4 months
JBossWS SVN: r12835 - in stack/native/branches/jbossws-native-2.0.1.SP2_CP: src/main/java/org/jboss/ws/tools/wsdl and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2010-08-23 11:50:35 -0400 (Mon, 23 Aug 2010)
New Revision: 12835
Added:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
Removed:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
Modified:
stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-jars-jaxws.xml
stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
Log:
[JBPAPP-4920] Incorrect namespace prefix for message part in WSDL when generating WSDL for JAX-WS endpoint.
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-jars-jaxws.xml 2010-08-23 13:51:50 UTC (rev 12834)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/ant-import-tests/build-jars-jaxws.xml 2010-08-23 15:50:35 UTC (rev 12835)
@@ -675,6 +675,17 @@
<exclude name="org/jboss/test/ws/jaxws/jbws2437/*TestCase.class"/>
</fileset>
</jar>
+
+ <!-- jaxws-jbws2637-->
+ <war warfile="${tests.output.dir}/libs/jaxws-jbws2637.war" webxml="${tests.output.dir}/resources/jaxws/jbws2637/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2637/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2637/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/resources/jaxws/jbws2637/WEB-INF">
+ <include name="*" />
+ </webinf>
+ </war>
<!-- jaxws-jbws2682 -->
<war warfile="${tests.output.dir}/libs/jaxws-jbws2682.war" webxml="${tests.output.dir}/resources/jaxws/jbws2682/WEB-INF/web.xml">
Modified: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 13:51:50 UTC (rev 12834)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 15:50:35 UTC (rev 12835)
@@ -221,7 +221,7 @@
wsdlInterface.addFault(interfaceFault);
WSDLInterfaceOperationOutfault outfault = new WSDLInterfaceOperationOutfault(interfaceOperation);
- String ns = getNamespace(fault.getJavaType(), operation.getQName().getNamespaceURI());
+ String ns = getNamespace(fault.getJavaType(), fault.getXmlName().getNamespaceURI());
QName outFaultName = new QName(ns, fault.getXmlName().getLocalPart());
outfault.setRef(outFaultName);
interfaceOperation.addOutfault(outfault);
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637 (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637)
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 15:50:35 UTC (rev 12835)
@@ -1,40 +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.jbws2637;
-
-import javax.jws.WebService;
-
-/**
- * Test Endpoint to test WSDL generation when fault is
- * in a different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2637")
-public interface Endpoint
-{
-
- public String echo(final String message) throws EndpointFault;
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 15:50:35 UTC (rev 12835)
@@ -0,0 +1,40 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2637")
+public interface Endpoint
+{
+
+ public String echo(final String message) throws EndpointFault;
+
+}
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 15:50:35 UTC (rev 12835)
@@ -1,38 +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.jbws2637;
-
-import javax.xml.ws.WebFault;
-
-/**
- * Exception mapped to different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- */
-@WebFault(targetNamespace="http://ws.jboss.org/jbws2637/faults")
-public class EndpointFault extends Exception
-{
-
- private static final long serialVersionUID = -6725899843509034056L;
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 15:50:35 UTC (rev 12835)
@@ -0,0 +1,38 @@
+/*
+ * 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.jbws2637;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * Exception mapped to different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ */
+@WebFault(targetNamespace="http://ws.jboss.org/jbws2637/faults")
+public class EndpointFault extends Exception
+{
+
+ private static final long serialVersionUID = -6725899843509034056L;
+
+}
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 15:50:35 UTC (rev 12835)
@@ -1,45 +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.jbws2637;
-
-import javax.jws.WebService;
-
-
-/**
- * Test Endpoint to test WSDL generation when fault is
- * in a different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-@WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2637", endpointInterface = "org.jboss.test.ws.jaxws.jbws2637.Endpoint")
-public class EndpointImpl implements Endpoint
-{
-
- @Override
- public String echo(String message)
- {
- return message;
- }
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 15:50:35 UTC (rev 12835)
@@ -0,0 +1,44 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2637", endpointInterface = "org.jboss.test.ws.jaxws.jbws2637.Endpoint")
+public class EndpointImpl implements Endpoint
+{
+
+ public String echo(String message)
+ {
+ return message;
+ }
+
+}
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 15:50:35 UTC (rev 12835)
@@ -1,79 +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.jbws2637;
-
-import java.io.File;
-
-import junit.framework.Test;
-
-import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.wsf.test.JBossWSTestSetup;
-
-/**
- * [JBWS-2637] Incorrect namespace for fault
- * messages.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 23rd August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-public class JBWS2637TestCase extends JBossWSTest
-{
-
- public final String TARGET_WSDL_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2637?wsdl";
-
- private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
- private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
- private static final String EXT = ":".equals(PS) ? ".sh" : ".bat";
-
- private String JBOSS_HOME = System.getProperty("jboss.home");
-
- public static Test suite() throws Exception
- {
- return new JBossWSTestSetup(JBWS2637TestCase.class, "jaxws-jbws2637.war");
- }
-
- public void testWSConsume() throws Exception
- {
- // use absolute path for the output to be re-usable
- String absOutput = "target/wsconsume/jbws2637";
-
- String command = JBOSS_HOME + FS + "bin" + FS + "wsconsume" + EXT + " -k -o " + absOutput + " " + TARGET_WSDL_ADDRESS;
- executeCommand(command);
-
- String packageDir = new File(absOutput + "/org/jboss/ws/jbws2637").getAbsolutePath();
-
- checkFileExists(packageDir, "Echo.java");
- checkFileExists(packageDir, "EchoResponse.java");
- checkFileExists(packageDir, "Endpoint.java");
- checkFileExists(packageDir, "EndpointFault.java");
- checkFileExists(packageDir, "EndpointFault_Exception.java");
- checkFileExists(packageDir, "EndpointService.java");
- }
-
- private static void checkFileExists(String packageDir, String filename)
- {
- File expectedFile = new File(packageDir + FS + filename);
- assertTrue("File '" + filename + "' missing from folder '" + packageDir + "'", expectedFile.exists());
- }
-
-}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 15:50:35 UTC (rev 12835)
@@ -0,0 +1,134 @@
+/*
+ * 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.jbws2637;
+
+import java.io.File;
+import java.io.IOException;
+import java.io.OutputStream;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.common.IOUtils;
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-2637] Incorrect namespace for fault
+ * messages.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 23rd August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+public class JBWS2637TestCase extends JBossWSTest
+{
+
+
+
+ public final String TARGET_WSDL_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2637?wsdl";
+
+ private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
+ private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
+ private static final String EXT = ":".equals(PS) ? ".sh" : ".bat";
+
+ private String JBOSS_HOME = System.getProperty("jboss.home");
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2637TestCase.class, "jaxws-jbws2637.war");
+ }
+
+ public void testWSConsume() throws Exception
+ {
+ // use absolute path for the output to be re-usable
+ String absOutput = "target/wsconsume/jbws2637";
+
+ String command = JBOSS_HOME + FS + "bin" + FS + "wsconsume" + EXT + " -k -o " + absOutput + " " + TARGET_WSDL_ADDRESS;
+ executeCommand(command);
+
+ String packageDir = new File(absOutput + "/org/jboss/ws/jbws2637").getAbsolutePath();
+
+ checkFileExists(packageDir, "Echo.java");
+ checkFileExists(packageDir, "EchoResponse.java");
+ checkFileExists(packageDir, "Endpoint.java");
+ checkFileExists(packageDir, "EndpointFault.java");
+ checkFileExists(packageDir, "EndpointFault_Exception.java");
+ checkFileExists(packageDir, "EndpointService.java");
+ }
+
+ private static void checkFileExists(String packageDir, String filename)
+ {
+ File expectedFile = new File(packageDir + FS + filename);
+ assertTrue("File '" + filename + "' missing from folder '" + packageDir + "'", expectedFile.exists());
+ }
+
+ /*
+ * Add methods from trunk usually expected in JBossWSTest
+ */
+
+ /**
+ * Execute <b>command</b> in separate process.
+ * @param command command to execute
+ * @throws IOException if I/O error occurs
+ */
+ public void executeCommand(String command) throws IOException
+ {
+ this.executeCommand(command, null, null);
+ }
+
+ /**
+ * Execute <b>command</b> in separate process, copy process input to <b>os</b>. If process will fail, display custom <b>message</b> in assertion.
+ * @param command command to execute
+ * @param os output stream to copy process input to. If null, <b>System.out</b> will be used
+ * @param message message to display if assertion fails
+ * @throws IOException if I/O error occurs
+ */
+ public void executeCommand(String command, OutputStream os, String message) throws IOException
+ {
+ if (command == null)
+ throw new NullPointerException("Command cannot be null");
+
+ System.out.println("Executing command: " + command);
+ Process p = Runtime.getRuntime().exec(command);
+ System.out.println("Process input stream:");
+ IOUtils.copyStream(os == null ? System.out : os, p.getInputStream());
+ try
+ {
+ int statusCode = p.waitFor();
+ if (statusCode != 0)
+ {
+ System.err.println("Process error stream:");
+ IOUtils.copyStream(System.err, p.getErrorStream());
+ }
+ String fallbackMessage = "Process did exit with status " + statusCode;
+ assertTrue(message != null ? message : fallbackMessage, statusCode == 0);
+ }
+ catch (InterruptedException ie)
+ {
+ ie.printStackTrace(System.err);
+ }
+ finally
+ {
+ p.destroy();
+ }
+ }
+}
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637 (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637)
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF)
Deleted: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 15:50:35 UTC (rev 12835)
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<web-app version="2.4" 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">
- <servlet>
- <servlet-name>Endpoint</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.jbws2637.Endpoint</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>Endpoint</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-</web-app>
\ No newline at end of file
Copied: stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml)
===================================================================
--- stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml (rev 0)
+++ stack/native/branches/jbossws-native-2.0.1.SP2_CP/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 15:50:35 UTC (rev 12835)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<web-app version="2.4" 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">
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2637.Endpoint</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
14 years, 4 months
JBossWS SVN: r12834 - in stack/native/branches/jbossws-native-3.1.2/modules: testsuite/native-tests/scripts and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2010-08-23 09:51:50 -0400 (Mon, 23 Aug 2010)
New Revision: 12834
Added:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
Removed:
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
Modified:
stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
Log:
[JBPAPP-4920] Incorrect namespace prefix for message part in WSDL when generating WSDL for JAX-WS endpoint.
Modified: stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-3.1.2/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 13:51:50 UTC (rev 12834)
@@ -158,7 +158,7 @@
wsdlInterface.addFault(interfaceFault);
WSDLInterfaceOperationOutfault outfault = new WSDLInterfaceOperationOutfault(interfaceOperation);
- String ns = getNamespace(fault.getJavaType(), operation.getQName().getNamespaceURI());
+ String ns = getNamespace(fault.getJavaType(), fault.getXmlName().getNamespaceURI());
QName outFaultName = new QName(ns, fault.getXmlName().getLocalPart());
outfault.setRef(outFaultName);
interfaceOperation.addOutfault(outfault);
Modified: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-08-23 13:51:50 UTC (rev 12834)
@@ -358,8 +358,8 @@
<metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2014/">
<include name="wsse.*" />
</metainf>
- </jar>
-
+ </jar>
+
<!-- jaxws-jbws2116-->
<jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2116.jar">
<fileset dir="${tests.output.dir}/test-classes">
@@ -554,6 +554,17 @@
</metainf>
</jar>
+ <!-- jaxws-jbws2637-->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2637.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2637/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2637/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2637/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2637/WEB-INF">
+ <include name="*" />
+ </webinf>
+ </war>
+
<!-- jaxws-jbws2682 -->
<war warfile="${tests.output.dir}/test-libs/jaxws-jbws2682.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2682/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Copied: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637 (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637)
Deleted: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 13:51:50 UTC (rev 12834)
@@ -1,40 +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.jbws2637;
-
-import javax.jws.WebService;
-
-/**
- * Test Endpoint to test WSDL generation when fault is
- * in a different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2637")
-public interface Endpoint
-{
-
- public String echo(final String message) throws EndpointFault;
-
-}
Copied: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 13:51:50 UTC (rev 12834)
@@ -0,0 +1,40 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2637")
+public interface Endpoint
+{
+
+ public String echo(final String message) throws EndpointFault;
+
+}
Deleted: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 13:51:50 UTC (rev 12834)
@@ -1,38 +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.jbws2637;
-
-import javax.xml.ws.WebFault;
-
-/**
- * Exception mapped to different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- */
-@WebFault(targetNamespace="http://ws.jboss.org/jbws2637/faults")
-public class EndpointFault extends Exception
-{
-
- private static final long serialVersionUID = -6725899843509034056L;
-
-}
Copied: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 13:51:50 UTC (rev 12834)
@@ -0,0 +1,38 @@
+/*
+ * 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.jbws2637;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * Exception mapped to different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ */
+@WebFault(targetNamespace="http://ws.jboss.org/jbws2637/faults")
+public class EndpointFault extends Exception
+{
+
+ private static final long serialVersionUID = -6725899843509034056L;
+
+}
Deleted: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 13:51:50 UTC (rev 12834)
@@ -1,45 +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.jbws2637;
-
-import javax.jws.WebService;
-
-
-/**
- * Test Endpoint to test WSDL generation when fault is
- * in a different namespace.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 20th August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-@WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2637", endpointInterface = "org.jboss.test.ws.jaxws.jbws2637.Endpoint")
-public class EndpointImpl implements Endpoint
-{
-
- @Override
- public String echo(String message)
- {
- return message;
- }
-
-}
Copied: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 13:51:50 UTC (rev 12834)
@@ -0,0 +1,45 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2637", endpointInterface = "org.jboss.test.ws.jaxws.jbws2637.Endpoint")
+public class EndpointImpl implements Endpoint
+{
+
+ @Override
+ public String echo(String message)
+ {
+ return message;
+ }
+
+}
Deleted: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 13:51:50 UTC (rev 12834)
@@ -1,79 +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.jbws2637;
-
-import java.io.File;
-
-import junit.framework.Test;
-
-import org.jboss.wsf.test.JBossWSTest;
-import org.jboss.wsf.test.JBossWSTestSetup;
-
-/**
- * [JBWS-2637] Incorrect namespace for fault
- * messages.
- *
- * @author darran.lofthouse(a)jboss.com
- * @since 23rd August 2010
- * @see https://jira.jboss.org/jira/browse/JBWS-2637
- */
-public class JBWS2637TestCase extends JBossWSTest
-{
-
- public final String TARGET_WSDL_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2637?wsdl";
-
- private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
- private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
- private static final String EXT = ":".equals(PS) ? ".sh" : ".bat";
-
- private String JBOSS_HOME = System.getProperty("jboss.home");
-
- public static Test suite() throws Exception
- {
- return new JBossWSTestSetup(JBWS2637TestCase.class, "jaxws-jbws2637.war");
- }
-
- public void testWSConsume() throws Exception
- {
- // use absolute path for the output to be re-usable
- String absOutput = "target/wsconsume/jbws2637";
-
- String command = JBOSS_HOME + FS + "bin" + FS + "wsconsume" + EXT + " -k -o " + absOutput + " " + TARGET_WSDL_ADDRESS;
- executeCommand(command);
-
- String packageDir = new File(absOutput + "/org/jboss/ws/jbws2637").getAbsolutePath();
-
- checkFileExists(packageDir, "Echo.java");
- checkFileExists(packageDir, "EchoResponse.java");
- checkFileExists(packageDir, "Endpoint.java");
- checkFileExists(packageDir, "EndpointFault.java");
- checkFileExists(packageDir, "EndpointFault_Exception.java");
- checkFileExists(packageDir, "EndpointService.java");
- }
-
- private static void checkFileExists(String packageDir, String filename)
- {
- File expectedFile = new File(packageDir + FS + filename);
- assertTrue("File '" + filename + "' missing from folder '" + packageDir + "'", expectedFile.exists());
- }
-
-}
Copied: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 13:51:50 UTC (rev 12834)
@@ -0,0 +1,79 @@
+/*
+ * 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.jbws2637;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-2637] Incorrect namespace for fault
+ * messages.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 23rd August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+public class JBWS2637TestCase extends JBossWSTest
+{
+
+ public final String TARGET_WSDL_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2637?wsdl";
+
+ private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
+ private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
+ private static final String EXT = ":".equals(PS) ? ".sh" : ".bat";
+
+ private String JBOSS_HOME = System.getProperty("jboss.home");
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2637TestCase.class, "jaxws-jbws2637.war");
+ }
+
+ public void testWSConsume() throws Exception
+ {
+ // use absolute path for the output to be re-usable
+ String absOutput = "target/wsconsume/jbws2637";
+
+ String command = JBOSS_HOME + FS + "bin" + FS + "wsconsume" + EXT + " -k -o " + absOutput + " " + TARGET_WSDL_ADDRESS;
+ executeCommand(command);
+
+ String packageDir = new File(absOutput + "/org/jboss/ws/jbws2637").getAbsolutePath();
+
+ checkFileExists(packageDir, "Echo.java");
+ checkFileExists(packageDir, "EchoResponse.java");
+ checkFileExists(packageDir, "Endpoint.java");
+ checkFileExists(packageDir, "EndpointFault.java");
+ checkFileExists(packageDir, "EndpointFault_Exception.java");
+ checkFileExists(packageDir, "EndpointService.java");
+ }
+
+ private static void checkFileExists(String packageDir, String filename)
+ {
+ File expectedFile = new File(packageDir + FS + filename);
+ assertTrue("File '" + filename + "' missing from folder '" + packageDir + "'", expectedFile.exists());
+ }
+
+}
Copied: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637 (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637)
Copied: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF)
Deleted: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 12:10:07 UTC (rev 12833)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 13:51:50 UTC (rev 12834)
@@ -1,14 +0,0 @@
-<?xml version="1.0" encoding="iso-8859-1"?>
-<web-app version="2.4" 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">
- <servlet>
- <servlet-name>Endpoint</servlet-name>
- <servlet-class>org.jboss.test.ws.jaxws.jbws2637.Endpoint</servlet-class>
- </servlet>
- <servlet-mapping>
- <servlet-name>Endpoint</servlet-name>
- <url-pattern>/*</url-pattern>
- </servlet-mapping>
-</web-app>
\ No newline at end of file
Copied: stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml (from rev 12833, stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml)
===================================================================
--- stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml (rev 0)
+++ stack/native/branches/jbossws-native-3.1.2/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 13:51:50 UTC (rev 12834)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<web-app version="2.4" 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">
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2637.Endpoint</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
14 years, 4 months
JBossWS SVN: r12833 - in stack/native/trunk/modules: testsuite/native-tests/scripts and 5 other directories.
by jbossws-commits@lists.jboss.org
Author: darran.lofthouse(a)jboss.com
Date: 2010-08-23 08:10:07 -0400 (Mon, 23 Aug 2010)
New Revision: 12833
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
Modified:
stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
Log:
[JBWS-2637] Incorrect namespace for fault message.
Modified: stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java
===================================================================
--- stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 11:50:25 UTC (rev 12832)
+++ stack/native/trunk/modules/core/src/main/java/org/jboss/ws/tools/wsdl/WSDLGenerator.java 2010-08-23 12:10:07 UTC (rev 12833)
@@ -334,7 +334,7 @@
wsdlInterface.addFault(interfaceFault);
WSDLInterfaceOperationOutfault outfault = new WSDLInterfaceOperationOutfault(interfaceOperation);
- String ns = getNamespace(fault.getJavaType(), operation.getQName().getNamespaceURI());
+ String ns = getNamespace(fault.getJavaType(), fault.getXmlName().getNamespaceURI());
QName outFaultName = new QName(ns, fault.getXmlName().getLocalPart());
outfault.setRef(outFaultName);
this.setAddressingAction(outfault, fault, operation);
Modified: stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-08-23 11:50:25 UTC (rev 12832)
+++ stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2010-08-23 12:10:07 UTC (rev 12833)
@@ -335,8 +335,8 @@
<metainf dir="${tests.output.dir}/test-resources/jaxws/jbws2014/">
<include name="wsse.*" />
</metainf>
- </jar>
-
+ </jar>
+
<!-- jaxws-jbws2116-->
<jar destfile="${tests.output.dir}/test-libs/jaxws-jbws2116.jar">
<fileset dir="${tests.output.dir}/test-classes">
@@ -515,6 +515,17 @@
</metainf>
</jar>
+ <!-- jaxws-jbws2637-->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2637.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2637/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2637/*.class" />
+ <exclude name="org/jboss/test/ws/jaxws/jbws2637/*TestCase.class" />
+ </classes>
+ <webinf dir="${tests.output.dir}/test-resources/jaxws/jbws2637/WEB-INF">
+ <include name="*" />
+ </webinf>
+ </war>
+
<!-- jaxws-jbws2682 -->
<war warfile="${tests.output.dir}/test-libs/jaxws-jbws2682.war" webxml="${tests.output.dir}/test-resources/jaxws/jbws2682/WEB-INF/web.xml">
<classes dir="${tests.output.dir}/test-classes">
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java 2010-08-23 12:10:07 UTC (rev 12833)
@@ -0,0 +1,40 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", targetNamespace = "http://ws.jboss.org/jbws2637")
+public interface Endpoint
+{
+
+ public String echo(final String message) throws EndpointFault;
+
+}
Property changes on: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/Endpoint.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java 2010-08-23 12:10:07 UTC (rev 12833)
@@ -0,0 +1,38 @@
+/*
+ * 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.jbws2637;
+
+import javax.xml.ws.WebFault;
+
+/**
+ * Exception mapped to different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ */
+@WebFault(targetNamespace="http://ws.jboss.org/jbws2637/faults")
+public class EndpointFault extends Exception
+{
+
+ private static final long serialVersionUID = -6725899843509034056L;
+
+}
Property changes on: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointFault.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java 2010-08-23 12:10:07 UTC (rev 12833)
@@ -0,0 +1,45 @@
+/*
+ * 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.jbws2637;
+
+import javax.jws.WebService;
+
+
+/**
+ * Test Endpoint to test WSDL generation when fault is
+ * in a different namespace.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 20th August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+@WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://ws.jboss.org/jbws2637", endpointInterface = "org.jboss.test.ws.jaxws.jbws2637.Endpoint")
+public class EndpointImpl implements Endpoint
+{
+
+ @Override
+ public String echo(String message)
+ {
+ return message;
+ }
+
+}
Property changes on: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/EndpointImpl.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java 2010-08-23 12:10:07 UTC (rev 12833)
@@ -0,0 +1,79 @@
+/*
+ * 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.jbws2637;
+
+import java.io.File;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-2637] Incorrect namespace for fault
+ * messages.
+ *
+ * @author darran.lofthouse(a)jboss.com
+ * @since 23rd August 2010
+ * @see https://jira.jboss.org/jira/browse/JBWS-2637
+ */
+public class JBWS2637TestCase extends JBossWSTest
+{
+
+ public final String TARGET_WSDL_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws2637?wsdl";
+
+ private static final String FS = System.getProperty("file.separator"); // '/' on unix, '\' on windows
+ private static final String PS = System.getProperty("path.separator"); // ':' on unix, ';' on windows
+ private static final String EXT = ":".equals(PS) ? ".sh" : ".bat";
+
+ private String JBOSS_HOME = System.getProperty("jboss.home");
+
+ public static Test suite() throws Exception
+ {
+ return new JBossWSTestSetup(JBWS2637TestCase.class, "jaxws-jbws2637.war");
+ }
+
+ public void testWSConsume() throws Exception
+ {
+ // use absolute path for the output to be re-usable
+ String absOutput = "target/wsconsume/jbws2637";
+
+ String command = JBOSS_HOME + FS + "bin" + FS + "wsconsume" + EXT + " -k -o " + absOutput + " " + TARGET_WSDL_ADDRESS;
+ executeCommand(command);
+
+ String packageDir = new File(absOutput + "/org/jboss/ws/jbws2637").getAbsolutePath();
+
+ checkFileExists(packageDir, "Echo.java");
+ checkFileExists(packageDir, "EchoResponse.java");
+ checkFileExists(packageDir, "Endpoint.java");
+ checkFileExists(packageDir, "EndpointFault.java");
+ checkFileExists(packageDir, "EndpointFault_Exception.java");
+ checkFileExists(packageDir, "EndpointService.java");
+ }
+
+ private static void checkFileExists(String packageDir, String filename)
+ {
+ File expectedFile = new File(packageDir + FS + filename);
+ assertTrue("File '" + filename + "' missing from folder '" + packageDir + "'", expectedFile.exists());
+ }
+
+}
Property changes on: stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2637/JBWS2637TestCase.java
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
Added: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
===================================================================
--- stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml (rev 0)
+++ stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml 2010-08-23 12:10:07 UTC (rev 12833)
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<web-app version="2.4" 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">
+ <servlet>
+ <servlet-name>Endpoint</servlet-name>
+ <servlet-class>org.jboss.test.ws.jaxws.jbws2637.Endpoint</servlet-class>
+ </servlet>
+ <servlet-mapping>
+ <servlet-name>Endpoint</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+</web-app>
\ No newline at end of file
Property changes on: stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2637/WEB-INF/web.xml
___________________________________________________________________
Name: svn:keywords
+ Id Revision
Name: svn:eol-style
+ LF
14 years, 4 months
JBossWS SVN: r12832 - stack/cxf/trunk/modules/testsuite.
by jbossws-commits@lists.jboss.org
Author: sergeyb
Date: 2010-08-23 07:50:25 -0400 (Mon, 23 Aug 2010)
New Revision: 12832
Modified:
stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt
Log:
[JBWS-3111] Temporarily disabling WS-Trust tests
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-08-23 09:15:37 UTC (rev 12831)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss501.txt 2010-08-23 11:50:25 UTC (rev 12832)
@@ -1,6 +1,9 @@
# UsernameTestCase requires trustore in jboss-web tomcat configuration
org/jboss/test/ws/jaxws/samples/wssePolicy/UsernameTestCase.*
+# [JBWS-3111] WS-Trust client tests are currently failing due to a regression in CXF 2.2.10
+org/jboss/test/ws/jaxws/cxf/interop/wstrust10/AsymmetricBindingClientTestCase.*
+
# [CXF-1252] Provider PAYLOAD endpoint expects SOAP Envelope
org/jboss/test/ws/jaxws/samples/provider/ProviderJAXBTestCase.*
org/jboss/test/ws/jaxws/samples/provider/ProviderPayloadTestCase.*
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-08-23 09:15:37 UTC (rev 12831)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss510.txt 2010-08-23 11:50:25 UTC (rev 12832)
@@ -1,6 +1,9 @@
# UsernameTestCase requires trustore in jboss-web tomcat configuration
org/jboss/test/ws/jaxws/samples/wssePolicy/UsernameTestCase.*
+# [JBWS-3111] WS-Trust client tests are currently failing due to a regression in CXF 2.2.10
+org/jboss/test/ws/jaxws/cxf/interop/wstrust10/AsymmetricBindingClientTestCase.*
+
# [CXF-1252] Provider PAYLOAD endpoint expects SOAP Envelope
org/jboss/test/ws/jaxws/samples/provider/ProviderJAXBTestCase.*
org/jboss/test/ws/jaxws/samples/provider/ProviderPayloadTestCase.*
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-08-23 09:15:37 UTC (rev 12831)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss600.txt 2010-08-23 11:50:25 UTC (rev 12832)
@@ -1,6 +1,9 @@
# UsernameTestCase requires trustore in jboss-web tomcat configuration
org/jboss/test/ws/jaxws/samples/wssePolicy/UsernameTestCase.*
+# [JBWS-3111] WS-Trust client tests are currently failing due to a regression in CXF 2.2.10
+org/jboss/test/ws/jaxws/cxf/interop/wstrust10/AsymmetricBindingClientTestCase.*
+
# [CXF-1252] Provider PAYLOAD endpoint expects SOAP Envelope
org/jboss/test/ws/jaxws/samples/provider/ProviderJAXBTestCase.*
org/jboss/test/ws/jaxws/samples/provider/ProviderPayloadTestCase.*
Modified: stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt
===================================================================
--- stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-08-23 09:15:37 UTC (rev 12831)
+++ stack/cxf/trunk/modules/testsuite/test-excludes-jboss601.txt 2010-08-23 11:50:25 UTC (rev 12832)
@@ -1,6 +1,9 @@
# UsernameTestCase requires trustore in jboss-web tomcat configuration
org/jboss/test/ws/jaxws/samples/wssePolicy/UsernameTestCase.*
+# [JBWS-3111] WS-Trust client tests are currently failing due to a regression in CXF 2.2.10
+org/jboss/test/ws/jaxws/cxf/interop/wstrust10/AsymmetricBindingClientTestCase.*
+
# [CXF-1252] Provider PAYLOAD endpoint expects SOAP Envelope
org/jboss/test/ws/jaxws/samples/provider/ProviderJAXBTestCase.*
org/jboss/test/ws/jaxws/samples/provider/ProviderPayloadTestCase.*
14 years, 4 months