Index: test/build-jars.xml
===================================================================
RCS file: /cvsroot/jboss/webservice/test/build-jars.xml,v
retrieving revision 1.44
diff -u -r1.44 build-jars.xml
--- test/build-jars.xml 19 Nov 2005 04:56:02 -0000 1.44
+++ test/build-jars.xml 20 Nov 2005 00:44:52 -0000
@@ -273,6 +273,35 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: test/java/org/jboss/test/ws/jbws484/JBWS484TestCase.java
===================================================================
RCS file: test/java/org/jboss/test/ws/jbws484/JBWS484TestCase.java
diff -N test/java/org/jboss/test/ws/jbws484/JBWS484TestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/java/org/jboss/test/ws/jbws484/JBWS484TestCase.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,83 @@
+/*
+ * 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.jbws484;
+
+// $Id$
+
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+import javax.xml.soap.SOAPElement;
+import javax.xml.soap.SOAPFactory;
+
+import junit.framework.Test;
+
+import org.jboss.test.ws.JBossWSTest;
+import org.jboss.test.ws.JBossWSTestSetup;
+
+/**
+ * @author Tomasz Blachowicz
+ */
+public class JBWS484TestCase extends JBossWSTest {
+
+ private static TestService_PortType port;
+
+ /**
+ * @return
+ */
+ public static Test suite() {
+ return JBossWSTestSetup.newTestSetup(
+ JBWS484TestCase.class,
+ "jbossws-jbws484.war,jbossws-jbws484-client.jar");
+ }
+
+ /**
+ *
+ */
+ @Override protected void setUp() throws Exception {
+ super.setUp();
+ InitialContext iniCtx = getInitialContext();
+ Service service = (Service) iniCtx.lookup("java:comp/env/service/TestService");
+ port = (TestService_PortType) service.getPort(TestService_PortType.class);
+ }
+
+
+ /**
+ *
+ */
+ @Override protected void tearDown() throws Exception {
+ port = null;
+ super.tearDown();
+ }
+
+ /**
+ * @throws Exception
+ */
+ public void testParameterWithA() throws Exception {
+ String aFirstParameter = "aFirstParameter";
+ String secondParameter = "secondParameter";
+ int returnValue = port.testMethod(aFirstParameter, secondParameter);
+ assertEquals(
+ aFirstParameter.hashCode() * secondParameter.hashCode(),
+ returnValue);
+ }
+
+}
Index: test/java/org/jboss/test/ws/jbws484/TestMethod.java
===================================================================
RCS file: test/java/org/jboss/test/ws/jbws484/TestMethod.java
diff -N test/java/org/jboss/test/ws/jbws484/TestMethod.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/java/org/jboss/test/ws/jbws484/TestMethod.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,36 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.jbws484;
+
+
+public class TestMethod {
+ protected java.lang.String aFirstParam;
+ protected java.lang.String secondParam;
+
+ public TestMethod() {
+ }
+
+ public TestMethod(java.lang.String aFirstParam, java.lang.String secondParam) {
+ this.aFirstParam = aFirstParam;
+ this.secondParam = secondParam;
+ }
+
+ public java.lang.String getAFirstParam() {
+ return aFirstParam;
+ }
+
+ public void setAFirstParam(java.lang.String aFirstParam) {
+ this.aFirstParam = aFirstParam;
+ }
+
+ public java.lang.String getSecondParam() {
+ return secondParam;
+ }
+
+ public void setSecondParam(java.lang.String secondParam) {
+ this.secondParam = secondParam;
+ }
+}
Index: test/java/org/jboss/test/ws/jbws484/TestMethodResponse.java
===================================================================
RCS file: test/java/org/jboss/test/ws/jbws484/TestMethodResponse.java
diff -N test/java/org/jboss/test/ws/jbws484/TestMethodResponse.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/java/org/jboss/test/ws/jbws484/TestMethodResponse.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,26 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.jbws484;
+
+
+public class TestMethodResponse {
+ protected int result;
+
+ public TestMethodResponse() {
+ }
+
+ public TestMethodResponse(int result) {
+ this.result = result;
+ }
+
+ public int getResult() {
+ return result;
+ }
+
+ public void setResult(int result) {
+ this.result = result;
+ }
+}
Index: test/java/org/jboss/test/ws/jbws484/TestServiceImpl.java
===================================================================
RCS file: test/java/org/jboss/test/ws/jbws484/TestServiceImpl.java
diff -N test/java/org/jboss/test/ws/jbws484/TestServiceImpl.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/java/org/jboss/test/ws/jbws484/TestServiceImpl.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,21 @@
+package org.jboss.test.ws.jbws484;
+
+import java.rmi.RemoteException;
+
+import org.jboss.logging.Logger;
+
+public class TestServiceImpl implements TestService_PortType {
+
+ private static Logger log = Logger.getLogger(TestServiceImpl.class);
+
+ public int testMethod(String aFirstParam, String secondParam) throws RemoteException {
+ log.info("aFirstParam = " + "'" + aFirstParam + "'");
+ log.info("secondParam = " + "'" + secondParam + "'");
+ return
+ (aFirstParam != null ? aFirstParam.hashCode() : 1)
+ *
+ (secondParam != null ? secondParam.hashCode() : 1);
+ }
+
+
+}
Index: test/java/org/jboss/test/ws/jbws484/TestService_PortType.java
===================================================================
RCS file: test/java/org/jboss/test/ws/jbws484/TestService_PortType.java
diff -N test/java/org/jboss/test/ws/jbws484/TestService_PortType.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/java/org/jboss/test/ws/jbws484/TestService_PortType.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,11 @@
+// This class was generated by the JAXRPC SI, do not edit.
+// Contents subject to change without notice.
+// JAX-RPC Standard Implementation (1.1.3, build R1)
+// Generated source version: 1.1.3
+
+package org.jboss.test.ws.jbws484;
+
+public interface TestService_PortType extends java.rmi.Remote {
+ public int testMethod(java.lang.String aFirstParam, java.lang.String secondParam) throws
+ java.rmi.RemoteException;
+}
Index: test/resources/jbws484/config.xml
===================================================================
RCS file: test/resources/jbws484/config.xml
diff -N test/resources/jbws484/config.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/resources/jbws484/config.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+
+
+
Index: test/resources/jbws484/META-INF/application-client.xml
===================================================================
RCS file: test/resources/jbws484/META-INF/application-client.xml
diff -N test/resources/jbws484/META-INF/application-client.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/resources/jbws484/META-INF/application-client.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,25 @@
+
+
+
+
+ JBWS-484
+
+
+ service/TestService
+ javax.xml.rpc.Service
+ use overwrite in jboss-client.xml
+
+ META-INF/jaxrpc-mapping.xml
+
+
+
+ org.jboss.test.ws.jbws484.TestService_PortType
+
+
+
+
+
+
Index: test/resources/jbws484/META-INF/jboss-client.xml
===================================================================
RCS file: test/resources/jbws484/META-INF/jboss-client.xml
diff -N test/resources/jbws484/META-INF/jboss-client.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/resources/jbws484/META-INF/jboss-client.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,17 @@
+
+
+
+
+
+ jbossws-client
+
+
+ service/TestService
+
+ http://localhost:8080/jbossws-jbws484?wsdl
+
+
+
+
Index: test/resources/jbws484/WEB-INF/jaxrpc-mapping.xml
===================================================================
RCS file: test/resources/jbws484/WEB-INF/jaxrpc-mapping.xml
diff -N test/resources/jbws484/WEB-INF/jaxrpc-mapping.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/resources/jbws484/WEB-INF/jaxrpc-mapping.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,101 @@
+
+
+
+ org.jboss.test.ws.jbws484
+ http://idm.vignette.com/
+
+
+
+ org.jboss.test.ws.jbws484.TestMethodResponse
+
+
+ typeNS:testMethodResponse
+
+ complexType
+
+ result
+ result
+
+
+
+ org.jboss.test.ws.jbws484.TestMethod
+
+ typeNS:testMethod
+
+ complexType
+
+ aFirstParam
+ aFirstParam
+
+
+ secondParam
+ secondParam
+
+
+
+
+ org.jboss.test.ws.jbws484.TestService_Service
+
+
+ serviceNS:TestService
+
+
+ TestServicePort
+ TestServicePort
+
+
+
+
+ org.jboss.test.ws.jbws484.TestService_PortType
+
+
+ portTypeNS:TestService
+
+
+ bindingNS:TestServiceBinding
+
+
+ testMethod
+ testMethod
+
+
+ 0
+ java.lang.String
+
+
+ wsdlMsgNS:testMethodRequest
+
+
+ aFirstParam
+
+ IN
+
+
+
+ 1
+ java.lang.String
+
+
+ wsdlMsgNS:testMethodRequest
+
+
+ secondParam
+
+ IN
+
+
+
+ int
+
+ wsdlMsgNS:testMethodResponse
+
+ result
+
+
+
+
Index: test/resources/jbws484/WEB-INF/web.xml
===================================================================
RCS file: test/resources/jbws484/WEB-INF/web.xml
diff -N test/resources/jbws484/WEB-INF/web.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/resources/jbws484/WEB-INF/web.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,21 @@
+
+
+
+
+
+ TestService
+
+ org.jboss.test.ws.jbws484.TestServiceImpl
+
+
+
+
+ TestService
+ /*
+
+
+
+
Index: test/resources/jbws484/WEB-INF/webservices.xml
===================================================================
RCS file: test/resources/jbws484/WEB-INF/webservices.xml
diff -N test/resources/jbws484/WEB-INF/webservices.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/resources/jbws484/WEB-INF/webservices.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,28 @@
+
+
+
+
+
+
+ TestService
+
+ WEB-INF/wsdl/TestService.wsdl
+
+ WEB-INF/jaxrpc-mapping.xml
+
+
+ TestServicePort
+ impl:TestServicePort
+
+ org.jboss.test.ws.jbws484.TestService_PortType
+
+
+ TestService
+
+
+
+
Index: test/resources/jbws484/WEB-INF/wsdl/TestService.wsdl
===================================================================
RCS file: test/resources/jbws484/WEB-INF/wsdl/TestService.wsdl
diff -N test/resources/jbws484/WEB-INF/wsdl/TestService.wsdl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/resources/jbws484/WEB-INF/wsdl/TestService.wsdl 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,40 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: test/resources/jbws484/WEB-INF/wsdl/TestServiceMessages.xsd
===================================================================
RCS file: test/resources/jbws484/WEB-INF/wsdl/TestServiceMessages.xsd
diff -N test/resources/jbws484/WEB-INF/wsdl/TestServiceMessages.xsd
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ test/resources/jbws484/WEB-INF/wsdl/TestServiceMessages.xsd 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+