[jbossws-commits] JBossWS SVN: r3761 - in branches/jbossws-2.0/jbossws-core: src/test/java/org/jboss/test/ws/jaxrpc/serviceref and 1 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Fri Jun 29 07:51:49 EDT 2007


Author: heiko.braun at jboss.com
Date: 2007-06-29 07:51:49 -0400 (Fri, 29 Jun 2007)
New Revision: 3761

Added:
   branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/serviceref/ExampleHandler.java
Modified:
   branches/jbossws-2.0/jbossws-core/ant-import-tests/build-jars-jaxrpc.xml
   branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/serviceref/ServiceRefServletTestCase.java
   branches/jbossws-2.0/jbossws-core/src/test/resources/jaxrpc/serviceref/servlet-client/WEB-INF/web.xml
Log:
Reproduce JBCTS-624 locally. It's commented out. Added FIXME

Modified: branches/jbossws-2.0/jbossws-core/ant-import-tests/build-jars-jaxrpc.xml
===================================================================
--- branches/jbossws-2.0/jbossws-core/ant-import-tests/build-jars-jaxrpc.xml	2007-06-29 08:18:16 UTC (rev 3760)
+++ branches/jbossws-2.0/jbossws-core/ant-import-tests/build-jars-jaxrpc.xml	2007-06-29 11:51:49 UTC (rev 3761)
@@ -2679,6 +2679,7 @@
         <include name="org/jboss/test/ws/jaxrpc/serviceref/ServletClient.class"/>
         <include name="org/jboss/test/ws/jaxrpc/serviceref/TestEndpointService.class"/>
         <include name="org/jboss/test/ws/jaxrpc/serviceref/TestEndpoint.class"/>
+        <include name="org/jboss/test/ws/jaxrpc/serviceref/ExampleHandler.class"/>
       </classes>
       <webinf dir="${tests.output.dir}/resources/jaxrpc/serviceref/META-INF">
         <include name="jaxrpc-mapping.xml"/>

Added: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/serviceref/ExampleHandler.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/serviceref/ExampleHandler.java	                        (rev 0)
+++ branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/serviceref/ExampleHandler.java	2007-06-29 11:51:49 UTC (rev 3761)
@@ -0,0 +1,37 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxrpc.serviceref;
+
+import javax.xml.rpc.handler.GenericHandler;
+import javax.xml.namespace.QName;
+
+/**
+ * @author Heiko.Braun at jboss.com
+ *         Created: Jun 29, 2007
+ */
+public class ExampleHandler extends GenericHandler {
+
+   public QName[] getHeaders()
+   {
+      return new QName[] { new QName("http://extra-header.org", "extra-header")}; 
+   }
+}


Property changes on: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/serviceref/ExampleHandler.java
___________________________________________________________________
Name: svn:keywords
   + Id Revision
Name: svn:eol-style
   + LF

Modified: branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/serviceref/ServiceRefServletTestCase.java
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/serviceref/ServiceRefServletTestCase.java	2007-06-29 08:18:16 UTC (rev 3760)
+++ branches/jbossws-2.0/jbossws-core/src/test/java/org/jboss/test/ws/jaxrpc/serviceref/ServiceRefServletTestCase.java	2007-06-29 11:51:49 UTC (rev 3761)
@@ -76,6 +76,12 @@
 
    public void testServletClient() throws Exception
    {
+
+      System.out.println("FIXME [JBCTS-624]: R2753 cannot parse web.xml for jsp vehicle");
+      // In order to reproduce this error, you'll need to u9ncomment that handler associated through
+      // the service-ref element in web.xml. It's actually the namespace declaration in that header block
+      // which causes jboss-web to choke
+
       URL url = new URL(TARGET_ENDPOINT_ADDRESS + "-servlet-client?echo=HelloWorld");
       BufferedReader br = new BufferedReader(new InputStreamReader(url.openStream()));
       String retStr = br.readLine();

Modified: branches/jbossws-2.0/jbossws-core/src/test/resources/jaxrpc/serviceref/servlet-client/WEB-INF/web.xml
===================================================================
--- branches/jbossws-2.0/jbossws-core/src/test/resources/jaxrpc/serviceref/servlet-client/WEB-INF/web.xml	2007-06-29 08:18:16 UTC (rev 3760)
+++ branches/jbossws-2.0/jbossws-core/src/test/resources/jaxrpc/serviceref/servlet-client/WEB-INF/web.xml	2007-06-29 11:51:49 UTC (rev 3761)
@@ -21,6 +21,12 @@
     <port-component-ref>
       <service-endpoint-interface>org.jboss.test.ws.jaxrpc.serviceref.TestEndpoint</service-endpoint-interface>
     </port-component-ref>
+     <handler>
+        <handler-name>Handler</handler-name>
+        <handler-class>org.jboss.test.ws.jaxrpc.serviceref.ExampleHandler</handler-class>
+        <!--soap-header xmlns:soap-header_ns__="http://extra-header.org">soap-header_ns__:extra-header</soap-header>
+        <soap-role>extra-header-actor</soap-role-->
+     </handler>
   </service-ref>
 
   <service-ref>




More information about the jbossws-commits mailing list