axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Susantha Kumara" <susan...@opensource.lk>
Subject RE: Simple Types integration for DOC/LIT in C/C++ Stack
Date Wed, 17 Mar 2004 08:59:58 GMT
corrected. Thanks.

> -----Original Message-----
> From: Jean-Yves Baudy [mailto:jy.baudy@free.fr]
> Sent: Tuesday, March 16, 2004 9:35 PM
> To: axis-c-dev@ws.apache.org
> Subject: RE: Simple Types integration for DOC/LIT in C/C++ Stack
> 
> 
> Susantha,
> 
> Your sample has wrong syntax. Value must be int value (I think).
> 
> 
>   Ex:
>        <s:simpleType name="StatusType">
>          <s:restriction base="s:int">
>            <s:enumeration value="1"/>
>            <s:enumeration value="2"/>
>          </s:restriction>
>        </s:simpleType>
> 
> so it generate,
> 	
> 	typedef enum { 1, 2} StatusType;
> 
> And failed to compile.
> 
> Regards,
> 
> Jean-Yves
> 
>  >Ex:
>  >      <s:simpleType name="StatusType">
>  >        <s:restriction base="s:int">
>  >          <s:enumeration value="MORE"/>
>  >          <s:enumeration value="LESS"/>
>  >        </s:restriction>
>  >      </s:simpleType>
>  >
>  >we generate,
>  >	typedef enum { MORE, LESS} StatusType;
> 

Mime
View raw message