Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 15175 invoked from network); 5 Aug 2009 17:11:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 5 Aug 2009 17:11:29 -0000 Received: (qmail 47453 invoked by uid 500); 5 Aug 2009 17:11:36 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 47426 invoked by uid 500); 5 Aug 2009 17:11:36 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 47417 invoked by uid 99); 5 Aug 2009 17:11:36 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Aug 2009 17:11:36 +0000 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, 05 Aug 2009 17:11:34 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D6736234C045 for ; Wed, 5 Aug 2009 10:11:14 -0700 (PDT) Message-ID: <2041413802.1249492274877.JavaMail.jira@brutus> Date: Wed, 5 Aug 2009 10:11:14 -0700 (PDT) From: "Dimuthu Gamage (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Updated: (AXIS2C-1071) WSDL2C, ADB & xsi:type based deserialization In-Reply-To: <1217067125.1205851524963.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXIS2C-1071?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dimuthu Gamage updated AXIS2C-1071: ----------------------------------- Attachment: polymorphic.zip Commited the patch provided by Sergio(from revision 801306). It is a really great patch. I wrote a simple test case (attached) and polymorphic types are working as expected :) I had to do few changes though like, 1. adding "xsi:type" attribute at the serialization 2. there were variables declared in the middle of the blocks. That is not compiled in Visual Studio compilers. > WSDL2C, ADB & xsi:type based deserialization > -------------------------------------------- > > Key: AXIS2C-1071 > URL: https://issues.apache.org/jira/browse/AXIS2C-1071 > Project: Axis2-C > Issue Type: Bug > Components: core/addressing > Reporter: Sam Meder > Assignee: Dimuthu Gamage > Attachments: polymorphic.zip, polymorphism.patch > > > I have the problem of having to work with a wsdl interface the makes use of type extensions and xsi:type. For example: > > > > > > > > > > > > where the VirtualDevice type is extended in various ways to reflect different kind of device types: > > > > > > > > > > > The issue I am running into is that WSDL2C does not seem to support this kind of xsi:type based type serialization/deserialization (which admittedly fits really poorly with a non-object oriented language like C). You could probably make it work by storing type information in the generated structs, combined with a type registry. > Any suggestions on workarounds other than using the XML model? -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.