Author: richard.opalka(a)jboss.com
Date: 2009-03-19 09:00:21 -0400 (Thu, 19 Mar 2009)
New Revision: 9626
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/EndpointBean.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/EndpointInterface.java
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/JBWS2248TestCase.java
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/web.xml
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/wsdl/
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/wsdl/TestService.wsdl
Modified:
stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml
Log:
[JBWS-2248] providing test case
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 2009-03-19
11:23:13 UTC (rev 9625)
+++
stack/native/trunk/modules/testsuite/native-tests/scripts/build-jars-jaxws.xml 2009-03-19
13:00:21 UTC (rev 9626)
@@ -415,6 +415,17 @@
</webinf>
</war>
+ <!-- jaxws-jbws2248 -->
+ <war warfile="${tests.output.dir}/test-libs/jaxws-jbws2248.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2248/WEB-INF/web.xml">
+ <classes dir="${tests.output.dir}/test-classes">
+ <include name="org/jboss/test/ws/jaxws/jbws2248/*.class"/>
+ <exclude
name="org/jboss/test/ws/jaxws/jbws2248/JBWS2248TestCase.class"/>
+ </classes>
+ <webinf
dir="${tests.output.dir}/test-resources/jaxws/jbws2248/WEB-INF">
+ <include name="wsdl/*"/>
+ </webinf>
+ </war>
+
<!-- jaxws-jbws2268 -->
<war warfile="${tests.output.dir}/test-libs/jaxws-jbws2268.war"
webxml="${tests.output.dir}/test-resources/jaxws/jbws2268/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/jbws2248/EndpointBean.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/EndpointBean.java
(rev 0)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/EndpointBean.java 2009-03-19
13:00:21 UTC (rev 9626)
@@ -0,0 +1,33 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.jbws2248;
+
+import javax.jws.WebService;
+
+@WebService(endpointInterface =
"org.jboss.test.ws.jaxws.jbws2248.EndpointInterface", serviceName =
"EndpointService")
+public class EndpointBean
+{
+ public String hello(final String message)
+ {
+ return message;
+ }
+}
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/EndpointInterface.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/EndpointInterface.java
(rev 0)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/EndpointInterface.java 2009-03-19
13:00:21 UTC (rev 9626)
@@ -0,0 +1,32 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.jbws2248;
+
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+@WebService(name = "EndpointBean")
+@SOAPBinding(style = SOAPBinding.Style.RPC)
+public interface EndpointInterface
+{
+ String hello(String msg);
+}
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/JBWS2248TestCase.java
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/JBWS2248TestCase.java
(rev 0)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/java/org/jboss/test/ws/jaxws/jbws2248/JBWS2248TestCase.java 2009-03-19
13:00:21 UTC (rev 9626)
@@ -0,0 +1,57 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, 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.jbws2248;
+
+import java.io.File;
+import java.net.URL;
+
+import javax.xml.ws.Service;
+import javax.xml.namespace.QName;
+
+import junit.framework.Test;
+
+import org.jboss.wsf.test.JBossWSTest;
+import org.jboss.wsf.test.JBossWSTestSetup;
+
+/**
+ * [JBWS-2248] RemoteConnectionFactory rejects uppercased protocol identifiers
+ *
+ * @author richard.opalka(a)jboss.com
+ */
+public class JBWS2248TestCase extends JBossWSTest
+{
+
+ public static Test suite()
+ {
+ return new JBossWSTestSetup(JBWS2248TestCase.class,
"jaxws-jbws2248.war");
+ }
+
+ public void testService() throws Exception
+ {
+ File wsdlFile =
getResourceFile("jaxws/jbws2248/WEB-INF/wsdl/TestService.wsdl");
+ QName serviceName = new
QName("http://jbws2248.jaxws.ws.test.jboss.org/",
"EndpointService");
+
+ Service service = Service.create(wsdlFile.toURL(), serviceName);
+ EndpointInterface port =
(EndpointInterface)service.getPort(EndpointInterface.class);
+ assertEquals(port.hello("Hello!"), "Hello!");
+ }
+}
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/web.xml
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/web.xml
(rev 0)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/web.xml 2009-03-19
13:00:21 UTC (rev 9626)
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<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>EndpointImpl</servlet-name>
+
<servlet-class>org.jboss.test.ws.jaxws.jbws2248.EndpointBean</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>EndpointImpl</servlet-name>
+ <url-pattern>/*</url-pattern>
+ </servlet-mapping>
+
+</web-app>
\ No newline at end of file
Added:
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/wsdl/TestService.wsdl
===================================================================
---
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/wsdl/TestService.wsdl
(rev 0)
+++
stack/native/trunk/modules/testsuite/native-tests/src/test/resources/jaxws/jbws2248/WEB-INF/wsdl/TestService.wsdl 2009-03-19
13:00:21 UTC (rev 9626)
@@ -0,0 +1,33 @@
+<definitions name='EndpointService'
targetNamespace='http://jbws2248.jaxws.ws.test.jboss.org/'
xmlns='http://schemas.xmlsoap.org/wsdl/'
+
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://jbws2248.jaxws.ws.test.jboss.org/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types></types>
+ <message name='EndpointBean_hello'>
+ <part name='arg0' type='xsd:string'/>
+ </message>
+ <message name='EndpointBean_helloResponse'>
+ <part name='return' type='xsd:string'/>
+ </message>
+ <portType name='EndpointBean'>
+ <operation name='hello' parameterOrder='arg0'>
+ <input message='tns:EndpointBean_hello'/>
+ <output message='tns:EndpointBean_helloResponse'/>
+ </operation>
+ </portType>
+ <binding name='EndpointBeanBinding' type='tns:EndpointBean'>
+ <soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='hello'>
+ <soap:operation soapAction=''/>
+ <input>
+ <soap:body
namespace='http://jbws2248.jaxws.ws.test.jboss.org/'
use='literal'/>
+ </input>
+ <output>
+ <soap:body
namespace='http://jbws2248.jaxws.ws.test.jboss.org/'
use='literal'/>
+ </output>
+ </operation>
+ </binding>
+ <service name='EndpointService'>
+ <port binding='tns:EndpointBeanBinding'
name='EndpointBeanPort'>
+ <soap:address
location='HTTP://@jboss.bind.address@:8080/jaxws-jbws2248'/>
+ </port>
+ </service>
+</definitions>
\ No newline at end of file