Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 28317 invoked from network); 18 Jan 2006 07:55:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jan 2006 07:55:13 -0000 Received: (qmail 31530 invoked by uid 500); 18 Jan 2006 07:55:11 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 31424 invoked by uid 500); 18 Jan 2006 07:55:10 -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 31393 invoked by uid 99); 18 Jan 2006 07:55:10 -0000 X-ASF-Spam-Status: No, hits=1.3 required=10.0 tests=SPF_FAIL X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Jan 2006 23:55:10 -0800 Received: from ajax.apache.org (ajax.apache.org [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id 36B36E1 for ; Wed, 18 Jan 2006 08:54:49 +0100 (CET) Message-ID: <494833205.1137570889214.JavaMail.jira@ajax.apache.org> Date: Wed, 18 Jan 2006 08:54:49 +0100 (CET) From: "Franz Fehringer (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Updated: (AXISCPP-903) extra ampersand in serializexxx methods In-Reply-To: <791394920.1137570887775.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/AXISCPP-903?page=all ] Franz Fehringer updated AXISCPP-903: ------------------------------------ Attachment: vakanz.wsdl vakanz.xsd > extra ampersand in serializexxx methods > --------------------------------------- > > Key: AXISCPP-903 > URL: http://issues.apache.org/jira/browse/AXISCPP-903 > Project: Axis-C++ > Type: Bug > Versions: 1.6 Alpha > Environment: WIN2KSP4 JDK1.5.0_06 MSVC6SP6 > Reporter: Franz Fehringer > Attachments: vakanz.wsdl, vakanz.xsd > > Both AxisC 1.5 and the upcoming 1.6 have issues with serializexxx methods in generated code. > The point is that all data items are passed as void* (opaque pointers). > Therefore integer items get an ampersand & applied in front like > pSZ->serializeAsAttribute( "xsi:nil", 0, (void*)&(xsd_boolean_true), XSD_BOOLEAN); > But string/char*/AxisChar* items are already pointers themselves, so no ampersand should be applied: > pSZ->serializeAsAttribute("MatchType", 0, (void*)(param->MatchType), XSD_NMTOKEN); > What can now observed with my example is that AxisC 1.5 does it wrong in two places: > pSZ->serializeAsAttribute("MatchType", 0, (void*)&(param->MatchType), XSD_NMTOKEN); > pSZ->serializeAsChardata((void*)&(param->t_OrgNameSearch_value), XSD_STRING); > whereas AxisC 1.6 is right in the first and still wrong in the second case: > pSZ->serializeAsAttribute("MatchType", 0, (void*)(param->MatchType), XSD_NMTOKEN); > pSZ->serializeAsChardata((void*)&(param->t_OrgNameSearch_value), XSD_STRING); > Note that the attached generated sources are from AxisC 1.6. > AxisC 1.5 has other issues with the code in question (attributes of type XSD_NMTOKEN are not serialized at all; members of structs already out of scope are accessed), but these seem to be fixed with AxisC 1.6. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira