comp.lang.ada
 help / color / mirror / Atom feed
From: Lionel Draghi <Lionel.nospam.Draghi@Ada-France.org>
Subject: Re: Experiences of XML parser generators for Ada?
Date: Thu, 09 Dec 2004 22:04:52 +0100
Date: 2004-12-09T22:05:05+01:00	[thread overview]
Message-ID: <41b8be01$0$12609$626a14ce@news.free.fr> (raw)
In-Reply-To: <cp9gfv$jjb$3@a1-hrz.uni-duisburg.de>

Georg Bauhaus a ï¿œcrit :
...
> This problem has been discussed during XML Schema design.
> In XML Schema you have some form of ranges in the type libraries.

...

OK, thank you Georg.


> : I don't want client to continuously cause exceptions in my server, just 
> : because there is no way to let them know about the limits.
> 
> Use 'Valid and so on. Web services or not, I/O is always a possible
> source of surprises. :-)  A secure server cannot rely on external input
> anyway, I'd guess.

Clearly (although I also guess that most of the users will try to use 
the service, not to break it!)

But on the client side, I feel unconfortable not having those informations.
Let's look at the WSDL example in AWS documentation : the example uses a 
(real) service giving book prices.
The returned price is a Float. Should I expect 10 ** 59 dollars for a 
book? or 10 ** -13?

That's not a big problem, and I can understand that there is a deal 
between simplicity and power.
It's just that I feel better with
type Book_Price is delta 0.01 range 0 .. 1_000;

-- 
Lionel








  reply	other threads:[~2004-12-09 21:04 UTC|newest]

Thread overview: 32+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-12-04 20:37 Experiences of XML parser generators for Ada? Robert C. Leif
2004-12-04 22:53 ` Adrien Plisson
2004-12-08 23:37   ` Lionel Draghi
2004-12-09 12:29     ` Georg Bauhaus
2004-12-09 21:04       ` Lionel Draghi [this message]
2004-12-09 21:09     ` Lionel Draghi
2004-12-10 22:09     ` Simon Wright
2004-12-11  0:02       ` Lionel Draghi
2004-12-11  9:03         ` Pascal Obry
     [not found] <20041203110026.6F40B4C408A@lovelace.ada-france.org>
2004-12-03 23:18 ` Robert C. Leif
2004-12-07 19:41   ` Björn Persson
  -- strict thread matches above, loose matches on Subject: below --
2004-12-02 21:04 Daniel W
2004-12-02 22:19 ` Georg Bauhaus
2004-12-03  8:57 ` Martin Krischik
2004-12-03  9:16   ` Adrien Plisson
2004-12-03 20:42     ` Daniel W
2004-12-03 23:33       ` Adrien Plisson
2004-12-04  8:05         ` Dmitry A. Kazakov
2004-12-04 11:40           ` Marius Amado Alves
2004-12-04 13:14             ` Martin Krischik
2004-12-05 16:27               ` Jeffrey Carter
2004-12-05 17:58                 ` Dmitry A. Kazakov
2004-12-04 13:59             ` Georg Bauhaus
2004-12-05  8:47               ` Martin Krischik
2004-12-06 11:18                 ` Georg Bauhaus
2004-12-06 18:12                 ` Pascal Obry
2004-12-13 20:34                   ` Florian Weimer
2004-12-05  1:50             ` David Botton
2004-12-04 14:01           ` Georg Bauhaus
2004-12-04 16:27             ` Dmitry A. Kazakov
2004-12-06  5:59         ` Daniel W
2004-12-06 14:48         ` Marc A. Criley
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox