Return-Path: Delivered-To: apmail-tuscany-dev-archive@www.apache.org Received: (qmail 34686 invoked from network); 3 Jul 2008 09:51:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 3 Jul 2008 09:51:38 -0000 Received: (qmail 57873 invoked by uid 500); 3 Jul 2008 09:51:38 -0000 Delivered-To: apmail-tuscany-dev-archive@tuscany.apache.org Received: (qmail 57847 invoked by uid 500); 3 Jul 2008 09:51:38 -0000 Mailing-List: contact dev-help@tuscany.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@tuscany.apache.org Delivered-To: mailing list dev@tuscany.apache.org Received: (qmail 57838 invoked by uid 99); 3 Jul 2008 09:51:38 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 02:51:38 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 03 Jul 2008 09:50:54 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 15895234C14D for ; Thu, 3 Jul 2008 02:50:45 -0700 (PDT) Message-ID: <1902916319.1215078645087.JavaMail.jira@brutus> Date: Thu, 3 Jul 2008 02:50:45 -0700 (PDT) From: "Miguel Angel Alonso (JIRA)" To: dev@tuscany.apache.org Subject: [jira] Created: (TUSCANY-2453) tuscany-maven-wsdl2java generates wrong code when a element is unbound MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org tuscany-maven-wsdl2java generates wrong code when a element is unbound ---------------------------------------------------------------------- Key: TUSCANY-2453 URL: https://issues.apache.org/jira/browse/TUSCANY-2453 Project: Tuscany Issue Type: Bug Components: Java SCA Tools Affects Versions: Java-SCA-1.2 Reporter: Miguel Angel Alonso Executing the maven plugin: ... org.apache.tuscany.sca tuscany-maven-wsdl2java 1.2.1-incubating org.apache.tuscany.sca tuscany-wsdl2java 1.2.1-incubating ${basedir}/target/generated-sources/wsdl2java-source ${basedir}/src/main/wsdl/CuentasCliente.wsdl generate .... where the wsdl CuentasCliente.wsdl contains: .... ... The result is: public interface CuentasClientePortType { public java.lang.String CuentasClienteOperation( long clienteId) throws java.rmi.RemoteException; } The created interface method is wrong because is returning a String instead of a list If I execute the Apache CXF maven plugin: org.apache.cxf cxf-codegen-plugin 2.1 generate-sources generate-sources ${basedir}/target/generated-sources/cxf ${basedir}/src/main/wsdl/CuentasCliente.wsdl wsdl2java The result is: public interface CuentasClientePortType { @SOAPBinding(parameterStyle = SOAPBinding.ParameterStyle.BARE) @WebResult(name = "cuentas", targetNamespace = "http://itecban.es/wsdl/CuentasCliente", partName = "part1") @WebMethod(operationName = "CuentasClienteOperation") public Cuentas cuentasClienteOperation( @WebParam(partName = "part1", name = "clienteId", targetNamespace = "http://itecban.es/wsdl/CuentasCliente") long part1 ); } This result is correct beacuse the method is returning a class, Cuentas, which contains a list. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.