Index: C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/sei/InheritenceChildInterface.java =================================================================== --- C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/sei/InheritenceChildInterface.java (revision 0) +++ C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/sei/InheritenceChildInterface.java (revision 0) @@ -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.ws.tools.sei; + +import java.rmi.RemoteException; + +/** + * + * @author darran.lofthouse@jboss.com + * @since 23-June-2006 + */ +public interface InheritenceChildInterface extends InheritenceParentInterface +{ + + public String getB() throws RemoteException; + +} Property changes on: C:\Work\Source\WS_1_0_x\jbossws-1.0\src\test\java\org\jboss\test\ws\tools\sei\InheritenceChildInterface.java ___________________________________________________________________ Name: svn:keywords + Id Revision Name: svn:eol-style + LF Index: C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/sei/InheritenceParentInterface.java =================================================================== --- C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/sei/InheritenceParentInterface.java (revision 0) +++ C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/sei/InheritenceParentInterface.java (revision 0) @@ -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.tools.sei; + +import java.rmi.Remote; +import java.rmi.RemoteException; + +/** + * + * @author darran.lofthouse@jboss.com + * @since 23 June 2006 + */ +public interface InheritenceParentInterface extends Remote +{ + + public String getA() throws RemoteException; + +} Property changes on: C:\Work\Source\WS_1_0_x\jbossws-1.0\src\test\java\org\jboss\test\ws\tools\sei\InheritenceParentInterface.java ___________________________________________________________________ Name: svn:keywords + Id Revision Name: svn:eol-style + LF Index: C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL11TestCase.java =================================================================== --- C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL11TestCase.java (revision 495) +++ C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/java/org/jboss/test/ws/tools/JavaToWSDL11TestCase.java (working copy) @@ -28,6 +28,7 @@ import org.jboss.test.ws.jaxb.complex.ComplexTypes; import org.jboss.test.ws.tools.sei.ArrayInterface; import org.jboss.test.ws.tools.sei.CustomInterface; +import org.jboss.test.ws.tools.sei.InheritenceChildInterface; import org.jboss.test.ws.tools.sei.PrimitiveTypes; import org.jboss.test.ws.tools.sei.ServiceException; import org.jboss.test.ws.tools.sei.StandardJavaTypes; @@ -95,6 +96,14 @@ String fixturefile = "resources/wsdlfixture/arrays/ArrayInterfaceService_RPC_11.wsdl"; doWSDLTest(seiClass, fixturefile); } + + /** Test a SEI that inherits a method from a super-interface. */ + public void testInterfaceInheritence() throws Exception + { + Class seiClass = InheritenceChildInterface.class; + String fixturefile = "resources/wsdlfixture/InheritenceChildInterfaceService_RPC.wsdl"; + doWSDLTest(seiClass, fixturefile); + } private void doWSDLTest(Class seiClass, String fixturefile) throws Exception { Index: C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/resources/wsdlfixture/InheritenceChildInterfaceService_RPC.wsdl =================================================================== --- C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/resources/wsdlfixture/InheritenceChildInterfaceService_RPC.wsdl (revision 0) +++ C:/Work/Source/WS_1_0_x/jbossws-1.0/src/test/resources/wsdlfixture/InheritenceChildInterfaceService_RPC.wsdl (revision 0) @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file Property changes on: C:\Work\Source\WS_1_0_x\jbossws-1.0\src\test\resources\wsdlfixture\InheritenceChildInterfaceService_RPC.wsdl ___________________________________________________________________ Name: svn:keywords + Id Revision Name: svn:eol-style + LF Index: C:/Work/Source/WS_1_0_x/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java =================================================================== --- C:/Work/Source/WS_1_0_x/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java (revision 495) +++ C:/Work/Source/WS_1_0_x/jbossws-1.0/src/main/java/org/jboss/ws/tools/metadata/ReflectiveMetaDataBuilder.java (working copy) @@ -78,7 +78,7 @@ public ToolsEndpointMetaData generate() { - generateOperationMetaData(seiClass.getDeclaredMethods()); + generateOperationMetaData(seiClass.getMethods()); return tmd; }