Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 40894 invoked from network); 10 Dec 2007 10:55:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Dec 2007 10:55:20 -0000 Received: (qmail 95775 invoked by uid 500); 10 Dec 2007 10:55:07 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 95453 invoked by uid 500); 10 Dec 2007 10:55:06 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 95442 invoked by uid 99); 10 Dec 2007 10:55:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2007 02:55:06 -0800 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 10 Dec 2007 10:55:04 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 73802714256 for ; Mon, 10 Dec 2007 02:54:43 -0800 (PST) Message-ID: <16680299.1197284083470.JavaMail.jira@brutus> Date: Mon, 10 Dec 2007 02:54:43 -0800 (PST) From: "Amila Chinthaka Suriarachchi (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-3391) Extensions by restrictions and unwrapping In-Reply-To: <897598.1197039943401.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2-3391?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12550013 ] Amila Chinthaka Suriarachchi commented on AXIS2-3391: ----------------------------------------------------- Unwrapping another level is bit difficult thing to do. Your type is generated in the default package since you have not given elementFormDefault="qualified" in your schema. > Extensions by restrictions and unwrapping > ----------------------------------------- > > Key: AXIS2-3391 > URL: https://issues.apache.org/jira/browse/AXIS2-3391 > Project: Axis 2.0 (Axis2) > Issue Type: Improvement > Components: codegen > Affects Versions: 1.3 > Reporter: Mauro Molinari > Assignee: Amila Chinthaka Suriarachchi > > Suppose you have the following WSDL: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > transport="http://schemas.xmlsoap.org/soap/http" /> > > soapAction="http://www.example.org/ProvaChoice/operation" /> > > > > > > > > > > > > > > > Try to call WSDL2Java on this WSDL, generating the server side code and using unwrapping (-uw) option. The method generated in the skeleton for operation named "operation" is the following: > public java.lang.String operation(org.example.www.provarestriction.In_type1 in) > This is quite ugly, I think... I would expect to find: > public java.lang.String operation(int in) > because the type of the "in" element is just a restriction for xsd:int stating that the value must be >= 1. > I know that unwrapping goes just 1 level deep to unwrap parameters, but I think that in some cases (like this one) it should go further... > Moreover, I can't understand why a class named In_type0 is generated in the default (unnamed) package, while it seems not to be used anywhere... > Mauro. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. --------------------------------------------------------------------- To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org