From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,7b97e385047500eb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!proxad.net!193.252.118.146.MISMATCH!news.wanadoo.fr!news.wanadoo.fr!not-for-mail Sender: obry@PASCAL Newsgroups: comp.lang.ada Subject: Re: Experiences of XML parser generators for Ada? References: <41b23f73$0$25049$ba620e4c@news.skynet.be> <41b79025$0$1333$636a15ce@news.free.fr> <41ba3938$0$12726$636a15ce@news.free.fr> From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Date: 11 Dec 2004 10:03:01 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: 82.120.27.185 X-Trace: 1102755782 news.wanadoo.fr 32209 82.120.27.185:2024 X-Complaints-To: abuse@wanadoo.fr Xref: g2news1.google.com comp.lang.ada:6891 Date: 2004-12-11T10:03:01+01:00 List-Id: Lionel Draghi writes: > > I'm not familiar with this part of XML Schema, but it looks as though > > you could say > > > > > > > > > > > > > OK. So I was wrong. As you found out it is possible to specify ranges in the schema. Another example is the character definition (strange enough there is no such type in the WSDL standard, so you have to use a schema definition): So basically a string of length 1. This is exactly what ada2wsdl generates. > Actually, I did not check the schema, because I don't intend to generate this > by myself, or with one of those pretty tools available. > I just gave a look at a glance to ada2wsdl results. > ada2wsdl seems much more effective to me. But maybe it doesn't use the full > WSDL semantics. Right, at this point ada2wsdl does not check the bounds of the Ada type definitions. So for whatever type that is based on integer it generates a xsd:int. It would be possible to improve this, but I'm not sure it will be very readable at the end... and I'm not sure those bounds will be checked on the other side by Java/AXIS for example. Note that schemas have not been designed for WSDL only. WSDL uses schemas to define some types but I have never come across a WSDL document which had a very elaborated schema section. It would also be nice to have the wsdl2aws tools properly handles those bounds... Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595