Index: imports/test-jars.xml
===================================================================
RCS file: /cvsroot/jboss/jbosstest/imports/test-jars.xml,v
retrieving revision 1.9.2.168
diff -u -r1.9.2.168 test-jars.xml
--- imports/test-jars.xml 22 Dec 2005 15:08:33 -0000 1.9.2.168
+++ imports/test-jars.xml 29 Dec 2005 10:47:07 -0000
@@ -6444,6 +6444,43 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: src/main/org/jboss/test/webservice/jbws626/DemoBean.java
===================================================================
RCS file: src/main/org/jboss/test/webservice/jbws626/DemoBean.java
diff -N src/main/org/jboss/test/webservice/jbws626/DemoBean.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/main/org/jboss/test/webservice/jbws626/DemoBean.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,80 @@
+/*
+ * 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.webservice.jbws626;
+
+import javax.ejb.SessionBean;
+import javax.ejb.SessionContext;
+
+import org.jboss.logging.Logger;
+
+public class DemoBean implements SessionBean
+{
+
+ private static final long serialVersionUID = 1L;
+
+ private Logger log = Logger.getLogger(DemoBean.class);
+
+ public void ejbCreate()
+ {
+ }
+
+ public ValueObj[] getArray()
+ {
+ log.info("getArray");
+ return new ValueObj[]
+ {new ValueObj("a", "b"), new ValueObj("c", "d")};
+ }
+
+ public ValueObj[] getEmptyArray()
+ {
+ log.info("getEmptyArray");
+ return new ValueObj[0];
+ }
+
+ public ValueObj[] getNullArray()
+ {
+ log.info("getNullArray");
+ return null;
+ }
+
+ public ValueObj[] echoArray(final ValueObj[] array)
+ {
+ return array;
+ }
+
+ public void ejbActivate()
+ {
+ }
+
+ public void ejbPassivate()
+ {
+ }
+
+ public void ejbRemove()
+ {
+ }
+
+ public void setSessionContext(final SessionContext context)
+ {
+ }
+
+}
Index: src/main/org/jboss/test/webservice/jbws626/DemoEndpoint.java
===================================================================
RCS file: src/main/org/jboss/test/webservice/jbws626/DemoEndpoint.java
diff -N src/main/org/jboss/test/webservice/jbws626/DemoEndpoint.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/main/org/jboss/test/webservice/jbws626/DemoEndpoint.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,36 @@
+/*
+ * 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.webservice.jbws626;
+
+import java.rmi.Remote;
+import java.rmi.RemoteException;
+
+public interface DemoEndpoint extends Remote
+{
+ public ValueObj[] getArray() throws RemoteException;
+
+ public ValueObj[] getEmptyArray() throws RemoteException;
+
+ public ValueObj[] getNullArray() throws RemoteException;
+
+ public ValueObj[] echoArray(final ValueObj[] array) throws RemoteException;
+}
Index: src/main/org/jboss/test/webservice/jbws626/JBWS626TestCase.java
===================================================================
RCS file: src/main/org/jboss/test/webservice/jbws626/JBWS626TestCase.java
diff -N src/main/org/jboss/test/webservice/jbws626/JBWS626TestCase.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/main/org/jboss/test/webservice/jbws626/JBWS626TestCase.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,94 @@
+/*
+ * 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.webservice.jbws626;
+
+import junit.framework.Test;
+import org.jboss.test.webservice.WebserviceTestBase;
+
+import javax.naming.InitialContext;
+import javax.xml.rpc.Service;
+
+/**
+ * No serializer found exception for method returning an array of objects
+ *
+ * http://jira.jboss.com/jira/browse/JBWS-626
+ *
+ * @author Thomas.Diesler@jboss.org
+ * @author Patrick.Volery@mgb.ch
+ * @since 26-Oct-2005
+ */
+public class JBWS626TestCase extends WebserviceTestBase
+{
+ private static DemoEndpoint port;
+
+ public JBWS626TestCase(String name)
+ {
+ super(name);
+ }
+
+ /** Deploy the test */
+ public static Test suite() throws Exception
+ {
+ return getDeploySetup(JBWS626TestCase.class, "ws4ee-jbws626.ear");
+ }
+
+ protected void setUp() throws Exception
+ {
+ super.setUp();
+ if (port == null)
+ {
+ InitialContext iniCtx = getClientContext();
+ Service service = (Service) iniCtx.lookup("java:comp/env/service/TestService");
+ port = (DemoEndpoint) service.getPort(DemoEndpoint.class);
+ }
+ }
+
+ public void testArray() throws Exception
+ {
+ ValueObj[] expArr = new ValueObj[]
+ {new ValueObj("a", "b"), new ValueObj("c", "d")};
+ ValueObj[] retArr = port.getArray();
+ assertEquals(expArr[0], retArr[0]);
+ assertEquals(expArr[1], retArr[1]);
+ }
+
+ public void testEmptyArray() throws Exception
+ {
+ ValueObj[] retArr = port.getEmptyArray();
+ assertEquals(0, retArr.length);
+ }
+
+ public void testNullArray() throws Exception
+ {
+ ValueObj[] retArr = port.getNullArray();
+ assertNull("Expected null return", retArr);
+ }
+
+ public void testEchoArray() throws Exception
+ {
+ ValueObj[] expArr = new ValueObj[]
+ {new ValueObj("a", "b"), new ValueObj("c", "d")};
+ ValueObj[] retArr = port.echoArray(expArr);
+ assertEquals(expArr[0], retArr[0]);
+ assertEquals(expArr[1], retArr[1]);
+ }
+}
Index: src/main/org/jboss/test/webservice/jbws626/ValueObj.java
===================================================================
RCS file: src/main/org/jboss/test/webservice/jbws626/ValueObj.java
diff -N src/main/org/jboss/test/webservice/jbws626/ValueObj.java
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/main/org/jboss/test/webservice/jbws626/ValueObj.java 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,76 @@
+/*
+ * 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.webservice.jbws626;
+
+public class ValueObj
+{
+
+ private String s1;
+ private String s2;
+
+ public ValueObj()
+ {
+ }
+
+ public ValueObj(String s1, String s2)
+ {
+ setS1(s1);
+ setS2(s2);
+ }
+
+ public String getS1()
+ {
+ return s1;
+ }
+
+ public void setS1(String s1)
+ {
+ this.s1 = s1;
+ }
+
+ public String getS2()
+ {
+ return s2;
+ }
+
+ public void setS2(String s2)
+ {
+ this.s2 = s2;
+ }
+
+ public int hashCode()
+ {
+ return toString().hashCode();
+ }
+
+ public boolean equals(Object obj)
+ {
+ if (!(obj instanceof ValueObj)) return false;
+ return toString().equals(obj.toString());
+
+ }
+
+ public String toString()
+ {
+ return "[" + s1 + " " + s2 + "]";
+ }
+}
Index: src/resources/webservice/jbws626/config.xml
===================================================================
RCS file: src/resources/webservice/jbws626/config.xml
diff -N src/resources/webservice/jbws626/config.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/resources/webservice/jbws626/config.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,30 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
Index: src/resources/webservice/jbws626/META-INF/application-client.xml
===================================================================
RCS file: src/resources/webservice/jbws626/META-INF/application-client.xml
diff -N src/resources/webservice/jbws626/META-INF/application-client.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/resources/webservice/jbws626/META-INF/application-client.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,21 @@
+
+
+
+
+ TestService
+
+
+ service/TestService
+ javax.xml.rpc.Service
+ META-INF/wsdl/TestService.wsdl
+ META-INF/jaxrpc-mapping.xml
+
+ org.jboss.test.webservice.jbws626.DemoEndpoint
+
+
+
+
+
Index: src/resources/webservice/jbws626/META-INF/application.xml
===================================================================
RCS file: src/resources/webservice/jbws626/META-INF/application.xml
diff -N src/resources/webservice/jbws626/META-INF/application.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/resources/webservice/jbws626/META-INF/application.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,20 @@
+
+
+
+
+ webservice client test
+
+
+
+ ws4ee-jbws626.jar
+
+
+
+
+ ws4ee-jbws626-client.jar
+
+
+
Index: src/resources/webservice/jbws626/META-INF/ejb-jar.xml
===================================================================
RCS file: src/resources/webservice/jbws626/META-INF/ejb-jar.xml
diff -N src/resources/webservice/jbws626/META-INF/ejb-jar.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/resources/webservice/jbws626/META-INF/ejb-jar.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,19 @@
+
+
+
+
+
+ JBWS626TestBean
+ org.jboss.test.webservice.jbws626.DemoEndpoint
+ org.jboss.test.webservice.jbws626.DemoBean
+ Stateless
+ Container
+
+
+
+
+
Index: src/resources/webservice/jbws626/META-INF/jaxrpc-mapping.xml
===================================================================
RCS file: src/resources/webservice/jbws626/META-INF/jaxrpc-mapping.xml
diff -N src/resources/webservice/jbws626/META-INF/jaxrpc-mapping.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/resources/webservice/jbws626/META-INF/jaxrpc-mapping.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,143 @@
+
+
+
+ org.jboss.test.webservice.jbws626
+
+ http://org.jboss.test.webservice/jbws626/types
+
+
+
+ org.jboss.test.webservice.jbws626
+
+ http://org.jboss.test.webservice/jbws626
+
+
+
+
+ org.jboss.test.webservice.jbws626._arrays.org.jboss.test.webservice.jbws626
+
+
+ http://org.jboss.test.webservice/jbws626/types/arrays/org/jboss/test/webservice/jbws626
+
+
+
+
+ org.jboss.test.webservice.jbws626.ValueObj[]
+
+
+ typeNS:ValueObjArray
+
+ complexType
+
+
+
+ org.jboss.test.webservice.jbws626.ValueObj
+
+
+ typeNS:ValueObj
+
+ complexType
+
+
+
+ org.jboss.test.webservice.jbws626.TestService
+
+
+ serviceNS:TestService
+
+
+ DemoEndpointPort
+ DemoEndpointPort
+
+
+
+
+ org.jboss.test.webservice.jbws626.DemoEndpoint
+
+
+ portTypeNS:DemoEndpoint
+
+
+ bindingNS:DemoEndpointBinding
+
+
+ echoArray
+ echoArray
+
+ 0
+
+ org.jboss.test.webservice.jbws626.ValueObj[]
+
+
+
+ wsdlMsgNS:DemoEndpoint_echoArray
+
+
+ arrayOfValueObj_1
+
+ IN
+
+
+
+
+ org.jboss.test.webservice.jbws626.ValueObj[]
+
+
+ wsdlMsgNS:DemoEndpoint_echoArrayResponse
+
+ result
+
+
+
+ getArray
+ getArray
+
+
+ org.jboss.test.webservice.jbws626.ValueObj[]
+
+
+ wsdlMsgNS:DemoEndpoint_getArrayResponse
+
+ result
+
+
+
+ getEmptyArray
+ getEmptyArray
+
+
+ org.jboss.test.webservice.jbws626.ValueObj[]
+
+
+ wsdlMsgNS:DemoEndpoint_getEmptyArrayResponse
+
+ result
+
+
+
+ getNullArray
+ getNullArray
+
+
+ org.jboss.test.webservice.jbws626.ValueObj[]
+
+
+ wsdlMsgNS:DemoEndpoint_getNullArrayResponse
+
+ result
+
+
+
+
Index: src/resources/webservice/jbws626/META-INF/jboss-app.xml
===================================================================
RCS file: src/resources/webservice/jbws626/META-INF/jboss-app.xml
diff -N src/resources/webservice/jbws626/META-INF/jboss-app.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/resources/webservice/jbws626/META-INF/jboss-app.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,7 @@
+
+
+
+ org.jboss.test.webservice.jbws626:loader=ws4ee-jbws626.ear
+
Index: src/resources/webservice/jbws626/META-INF/jboss-client.xml
===================================================================
RCS file: src/resources/webservice/jbws626/META-INF/jboss-client.xml
diff -N src/resources/webservice/jbws626/META-INF/jboss-client.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/resources/webservice/jbws626/META-INF/jboss-client.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,15 @@
+
+
+
+
+
+ ws4ee-client
+
+
+ service/TestService
+ http://@jbosstest.host.name@:8080/ws4ee-jbws626?wsdl
+
+
+
Index: src/resources/webservice/jbws626/META-INF/webservices.xml
===================================================================
RCS file: src/resources/webservice/jbws626/META-INF/webservices.xml
diff -N src/resources/webservice/jbws626/META-INF/webservices.xml
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/resources/webservice/jbws626/META-INF/webservices.xml 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,23 @@
+
+
+
+
+
+ TestService
+ META-INF/wsdl/TestService.wsdl
+ META-INF/jaxrpc-mapping.xml
+
+ DemoEndpointPort
+ impl:DemoEndpointPort
+ org.jboss.test.webservice.jbws626.DemoEndpoint
+
+ JBWS626TestBean
+
+
+
+
Index: src/resources/webservice/jbws626/META-INF/wsdl/TestService.wsdl
===================================================================
RCS file: src/resources/webservice/jbws626/META-INF/wsdl/TestService.wsdl
diff -N src/resources/webservice/jbws626/META-INF/wsdl/TestService.wsdl
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ src/resources/webservice/jbws626/META-INF/wsdl/TestService.wsdl 1 Jan 1970 00:00:00 -0000
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+