Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 84493 invoked from network); 21 Jan 2009 18:40:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Jan 2009 18:40:26 -0000 Received: (qmail 37440 invoked by uid 500); 21 Jan 2009 18:40:24 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 37383 invoked by uid 500); 21 Jan 2009 18:40:23 -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 37374 invoked by uid 99); 21 Jan 2009 18:40:23 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 21 Jan 2009 10:40:23 -0800 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; Wed, 21 Jan 2009 18:40:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C6837234C4A8 for ; Wed, 21 Jan 2009 10:39:59 -0800 (PST) Message-ID: <460110449.1232563199811.JavaMail.jira@brutus> Date: Wed, 21 Jan 2009 10:39:59 -0800 (PST) From: "Heino Wachter (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Commented: (AXIS2-4208) wsdl2java creates no derived message classes In-Reply-To: <686875472.1231885979672.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-4208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12665907#action_12665907 ] Heino Wachter commented on AXIS2-4208: -------------------------------------- Hi, it's definitively not an Axis2 problem! The code generator fails. I found a way to outwit the generator: Added in the wsdl file dummy message definitions, one for each derived message I need. These messages even had not to be mentioned in the portType nor the binding section (thereby no additional services are generated!). With this, the code generator adds the missing derived message classes and by receiving the super class I'm now able to distinguish between the different instances of the derived classes - that's what I need!!! (I attach wsdl file example of these changes). But it would be nice, if the code generator would work properly ;) Thanks in advance! > wsdl2java creates no derived message classes > -------------------------------------------- > > Key: AXIS2-4208 > URL: https://issues.apache.org/jira/browse/AXIS2-4208 > Project: Axis 2.0 (Axis2) > Issue Type: Bug > Components: codegen > Affects Versions: 1.4.1 > Environment: winXp, eclipse and console > Reporter: Heino Wachter > Attachments: client.wsdl > > > The wsdl2java (from axis2 1.4.1 distribution) as well a the eclipse plugin org.apache.axis2_Codegen_Wizard_1.3.0 are not able to create a derived class for a message, if in the message the parent class is defined only. The parent class Event is intended to be used as an interface for the messages only, where the derived classes (in the example only one: EvtCommInfo) contain the real message. I've extracted a simplified version: > : > > > > > > > > > > > > > > > type="xsd:int" /> > > > > > : > > > > nillable="true" type="vr:Event" /> > > > > > > > > With this SoapBase and Event class are generated but the EvtCommInfo is not generated. > As I cannot change the wsdl file (as it runs already on a .net server, I need to connect to) I need help urgently. > Thanks in advance > haino -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.