Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 57548 invoked from network); 11 Apr 2008 20:22:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Apr 2008 20:22:15 -0000 Received: (qmail 45722 invoked by uid 500); 11 Apr 2008 20:22:14 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 45708 invoked by uid 500); 11 Apr 2008 20:22:14 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 45697 invoked by uid 99); 11 Apr 2008 20:22:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 13:22:14 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dimuthuc@gmail.com designates 209.85.142.189 as permitted sender) Received: from [209.85.142.189] (HELO ti-out-0910.google.com) (209.85.142.189) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Apr 2008 20:21:33 +0000 Received: by ti-out-0910.google.com with SMTP id d10so346826tib.18 for ; Fri, 11 Apr 2008 13:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=eoAK1kksmCbg9zDQ7IV03CYg89Ri0X0+PPL76nLAVGE=; b=KmCAwOkbzVHuurVjPtf3jl4a+VEL81J0EYqJOeFwSqDW/GteJW7kkCNu61sR/HQ7zM8rRFTsHIehwDpSLFgtdQ++5/H38tnmYA3pgsq5XRGjyRNP0K1DKvNbA2ko73veL1cW+X9PYbNn/NhaI3OdTSCKs7EqTee0ot5Zv39m1Jo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=NSLH3oSAeQaPGHBgh64zDyq+Y7J0fK2aha34+ya+YR7jFqYh5mcTgM97Ec40U1NE82u3nCwdPQkgsFn6Kky/bagMzyg3ZqZSdcs2DV/1Jvehq+4iNnTUWnEEv0vgcVbhLmAtOJlSZghyBFgET18zjbRjM91Co3mR1ezlyqhbfHo= Received: by 10.110.86.3 with SMTP id j3mr233857tib.9.1207945305167; Fri, 11 Apr 2008 13:21:45 -0700 (PDT) Received: by 10.110.17.16 with HTTP; Fri, 11 Apr 2008 13:21:45 -0700 (PDT) Message-ID: Date: Sat, 12 Apr 2008 01:51:45 +0530 From: "Dimuthu Gamage" To: "Apache AXIS C User List" Subject: Re: Code generation and enumerations In-Reply-To: <89fb8be00804090753p1ca84685y9509e1f913b72de8@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <89fb8be00804090753p1ca84685y9509e1f913b72de8@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi S=E9rgio, Yea, you are correct on this. We should be able to declare them in an enum to provide interger constants in the API. It should be trivial. Why not you try that and propose a patch? If you like to try you have to checkout the axis2/java source code from https://svn.apache.org/repos/asf/webservices/axis2/trunk/java and you may need to edit following files c adb templates from modules/adb-codegen/src/org/apache/axis2/schema/template/ in the source tree c adb writer class from modules/adb-codegen/src/org/apache/axis2/schema/writer/CStructWriter.java in the source tree Thanks Dimuthu On Wed, Apr 9, 2008 at 8:23 PM, S=E9rgio Gomes wr= ote: > Hi there, > > Yet another possible code generator issue. There's an enumeration in > the WSDL I'm using: > > > > > > > > > > > > > > And the setter that gets generated for it is: > > axis2_status_t AXIS2_CALL > adb_DayOfWeek_set_DayOfWeek( > adb_DayOfWeek_t* _DayOfWeek, > const axutil_env_t *env, > const axis2_char_t* arg_DayOfWeek); > > The setter is referencing a structure of the same type, so how can I > create, say, a "Monday" object? Shouldn't the setter be receiving > something like an integer instead, which you could get from a C enum > with the several options? > > Cheers, > S=E9rgio > > --------------------------------------------------------------------- > To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org > For additional commands, e-mail: axis-c-user-help@ws.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org