[jbossws-commits] JBossWS SVN: r4710 - in stack/native/trunk: src/test/java/org/jboss/test/ws/jaxws and 2 other directories.

jbossws-commits at lists.jboss.org jbossws-commits at lists.jboss.org
Tue Oct 9 11:43:15 EDT 2007


Author: thomas.diesler at jboss.com
Date: 2007-10-09 11:43:14 -0400 (Tue, 09 Oct 2007)
New Revision: 4710

Added:
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/Endpoint.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.java
   stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/JBWS1813TestCase.java
Removed:
   stack/native/trunk/src/test/resources/jaxws/jbws1840/
Modified:
   stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
Log:
[jbws-1813] context-root in jboss.xml is ignored

Modified: stack/native/trunk/ant-import-tests/build-jars-jaxws.xml
===================================================================
--- stack/native/trunk/ant-import-tests/build-jars-jaxws.xml	2007-10-09 14:51:00 UTC (rev 4709)
+++ stack/native/trunk/ant-import-tests/build-jars-jaxws.xml	2007-10-09 15:43:14 UTC (rev 4710)
@@ -388,6 +388,13 @@
         </fileset>
     </jar>
 
+    <!-- jaxws-jbws1813 -->
+    <jar destfile="${tests.output.dir}/libs/jaxws-jbws1813.jar">
+      <fileset dir="${tests.output.dir}/classes">
+        <include name="org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.class"/>
+      </fileset>
+    </jar>
+
     <!-- jaxws-jbws1840 -->
     <jar destfile="${tests.output.dir}/libs/jaxws-jbws1840.jar">
       <fileset dir="${tests.output.dir}/classes">

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/Endpoint.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/Endpoint.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/Endpoint.java	2007-10-09 15:43:14 UTC (rev 4710)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1813;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+
+ at WebService(name = "Endpoint", targetNamespace = "http://org.jboss.ws/jbws1813")
+ at SOAPBinding(style = Style.RPC)
+public interface Endpoint
+{
+
+   @WebMethod
+   @WebResult(targetNamespace = "http://org.jboss.ws/jbws1813", partName = "return")
+   public String echo(@WebParam(name = "arg0", partName = "arg0") String arg0);
+
+}

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/EndpointImpl.java	2007-10-09 15:43:14 UTC (rev 4710)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1813;
+
+import javax.ejb.Stateless;
+import javax.jws.WebMethod;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.jws.soap.SOAPBinding.Style;
+
+import org.jboss.logging.Logger;
+
+ at WebService(name = "Endpoint", serviceName = "EndpointService", targetNamespace = "http://org.jboss.ws/jbws1813")
+ at Stateless(name = "Endpoint")
+ at SOAPBinding(style = Style.RPC)
+//@WebContext(contextRoot="/jaxws-jbws1813")
+public class EndpointImpl
+{
+   // Provide logging
+   private static Logger log = Logger.getLogger(EndpointImpl.class);
+
+   @WebMethod
+   public String echo(String input)
+   {
+      log.info(input);
+      return input;
+   }
+}

Added: stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/JBWS1813TestCase.java
===================================================================
--- stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/JBWS1813TestCase.java	                        (rev 0)
+++ stack/native/trunk/src/test/java/org/jboss/test/ws/jaxws/jbws1813/JBWS1813TestCase.java	2007-10-09 15:43:14 UTC (rev 4710)
@@ -0,0 +1,71 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2005, JBoss Inc., and individual contributors as indicated
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.test.ws.jaxws.jbws1813;
+
+import java.net.URL;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+import javax.xml.ws.BindingProvider;
+import javax.xml.ws.Service;
+import javax.xml.ws.WebServiceException;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ *  endpoint using @SecurityDomain
+ * 
+ * http://jira.jboss.org/jira/browse/JBWS-1813
+ *
+ * @author Thomas.Diesler at jboss.com
+ * @since 09-Oct-2007
+ */
+public class JBWS1813TestCase extends JBossWSTest
+{
+   public final String TARGET_ENDPOINT_ADDRESS = "http://" + getServerHost() + ":8080/jaxws-jbws1813";
+
+   private static Endpoint port;
+
+   public static Test suite()
+   {
+      return new JBossWSTestSetup(JBWS1813TestCase.class, "jaxws-jbws1813.jar");
+   }
+
+   protected void setUp() throws Exception
+   {
+      if (port == null)
+      {
+         URL wsdlURL = new URL(TARGET_ENDPOINT_ADDRESS + "?wsdl");
+         QName serviceName = new QName("http://org.jboss.ws/jbws1813", "EndpointService");
+         port = Service.create(wsdlURL, serviceName).getPort(Endpoint.class);
+      }
+   }
+
+   public void testPositive()
+   {
+      String retObj = port.echo("Hello");
+      assertEquals("Hello", retObj);
+   }
+}




More information about the jbossws-commits mailing list