Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 9057 invoked from network); 14 Oct 2009 09:53:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 14 Oct 2009 09:53:05 -0000 Received: (qmail 61902 invoked by uid 500); 14 Oct 2009 09:53:05 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 61845 invoked by uid 500); 14 Oct 2009 09:53:05 -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 61836 invoked by uid 99); 14 Oct 2009 09:53:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Oct 2009 09:53:04 +0000 X-ASF-Spam-Status: No, hits=-1.2 required=5.0 tests=AWL,BAYES_00,HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [69.147.75.83] (HELO web62406.mail.re1.yahoo.com) (69.147.75.83) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 14 Oct 2009 09:53:02 +0000 Received: (qmail 59007 invoked by uid 60001); 14 Oct 2009 09:52:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255513961; bh=G9tTPm3ARzTSxFfVhSg6ppnnkGitutVvCLyY6OiTkF4=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=U/uzi3Hnefh85LIj5T+GfI9jxsVnBVMD8RkVxvwHUKxYArRKU1m0K7zx9QFYcf7fqZjJ104IXeKvz9LNNdkM2KyjutKSHrEtObv3G/eV2tC+y4jQRShrhsnj86xRGbkaHSlaZ+vgtmVa+JnXoLPGrInka++Dz0PuBHWIknJb8xA= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=LZDbuuyi7A2HNMZGDSdve4b/4akll7o0WvdGluXuDjB6GQsTpA53SH645qfRLdzwFa8/gcG/gKD0lr+/iqJobPi2sU+8wMMG69YQu18mToq0MM8lzWvxDfFYVO/T7m1LY3V6O4jW3tG0aTzLD74ObY8kOkh4qLETWNsN638zLSU=; Message-ID: <348689.58971.qm@web62406.mail.re1.yahoo.com> X-YMail-OSG: t5XgjacVM1mZ.zG99uMP_kuYRkDvZC4cp_rXDDXcuJR3VdiFW.oZE4KsLr_e9TUwWxmoRFCGQwvnkfHPPvJjNVx.p.fStIIwKBnjRAU7GQVpHigLcGCOfS_0FL4qxhrrBmKRpus80UNDFia7mcOAdFwVwXZCY1GFfNjIwqHpizIFYIxMV_wS0IBjWQypZzg5X5kMSiK9pdQElCYurLoNYLRuQWC.wSf5LBi.Kw9Rlx1V0TGcLyhAXtRzOjitOSwR.4FKCgxsSqo231NMwePTkgfO2kuOOi1hVk7iKB.PyobINm8cQakd_ZPz7xBLO4hOc1UpSPPj.aTYRQ2R6cQSsCWltzp5ZMzKhq51_4OMclYC.awLpA1v.2XN1iGcTrZAahquwuBD1nb0xQzXxjSdyQ-- Received: from [76.220.8.220] by web62406.mail.re1.yahoo.com via HTTP; Wed, 14 Oct 2009 02:52:41 PDT X-Mailer: YahooMailClassic/7.0.14 YahooMailWebService/0.7.347.3 Date: Wed, 14 Oct 2009 02:52:41 -0700 (PDT) From: Amit Tewari Subject: Compilation issue with generated code (xsd:enumeration elements) To: Apache AXIS C User List MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1687901581-1255513961=:58971" --0-1687901581-1255513961=:58971 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable I am trying to generate C code (adb binding) from a WSDL which defines fol= lowing among other things and then use visual studio 2008 to compile it. 1. SimpleTypes involving enumeration like=20 =A0=A0=A0 =A0 =A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0 =A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 =A0=A0=A0=A0=A0=A0=A0 =20 When I try to compile generated code the adb_*.c=A0 for all the types invol= ving enums ( as described above)=0A fail=A0 to compile. All the enum types = fail on one single line ( in each respective file)=20 =A0=A0=A0 axiom_text_t *text_element =3D NULL; //=A0 'axiom_text_t' : illeg= al use of this type as an expression=20 I=0Athink its probably because axiom_text_t=A0 is defined in the middle of= =0Athe function instead of in the beginning as C rules require.=20 I do need keep enums in the wsdl. Any help would be appreciated . Amit --0-1687901581-1255513961=:58971 Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable

I am trying to generate C code (adb bind= ing) from a WSDL which defines following among other things and then use visual studio 2008 to co= mpile it.

1. SimpleTypes involving enumeration like
  =       <xsd:simpleType name=3D"ANY_NAME">
 &nbs= p;          <xsd:restrictio= n base=3D"xsd:string">
        &nb= sp; <xsd:enumeration value=3D"ANYVALUE1"/>
    &nbs= p;     <xsd:enumeration value=3D"ANYVALUE2"/>
=             </xsd= :restriction>
        </xsd:sim= pleType>


When I try to compile generated code the adb_*.c  for all= the types involving enums ( as described above)=0A fail  to compile. = All the enum types fail on one single line ( in each respective file)
<= br>    axiom_text_t *text_element =3D NULL; //  'axiom_= text_t' : illegal use of this type as an expression
I=0Athink its proba= bly because axiom_text_t  is defined in the middle of=0Athe function i= nstead of in the beginning as C rules require.

I do need keep enums= in the wsdl. Any help would be appreciated .

Amit
--0-1687901581-1255513961=:58971--