@@ -167,6 +167,9 @@ document. In this section we describe the mapping between Ada and
167167 Mapped to **xsd:double **, not supported by SOAP, mapped
168168 for convenience but precision cannot be guaranteed.
169169
170+ *SOAP.Types.Decimal *
171+ Mapped to **xsd:decimal **
172+
170173*Boolean *
171174 Mapped to **xsd:boolean **
172175
@@ -177,20 +180,35 @@ document. In this section we describe the mapping between Ada and
177180 Mapped to **xsd:string **, note that Unbounded_String should be used
178181 only inside a record for full interoperability. This is a current limitation.
179182
183+ *SOAP.Types.Normalized_String *
184+ Mapped to **xsd:normalizedString **
185+
186+ *SOAP.Types.Token *
187+ Mapped to **xsd:token **
188+
189+ *SOAP.Types.Any_URI *
190+ Mapped to **xsd:anyURI **
191+
180192.. highlight :: xml
181193
182194*Character *
183195 Mapped to a Character schema definition::
184196
185- <simpleType name="Character">
186- <restriction base="xsd:string">
187- <length value="1"/>
188- </restriction>
189- </simpleType>
197+ <xsd: simpleType name="Character">
198+ <xsd: restriction base="xsd:string">
199+ <xsd: length value="1"/>
200+ </xsd: restriction>
201+ </xsd: simpleType>
190202
191- *Ada.Calendar.Time *
203+ *Ada.Calendar.Time * and * SOAP.Types.Local_Date_Time *
192204 Mapped to **xsd:dateTime **
193205
206+ *SOAP.Types.Local_Date *
207+ Mapped to **xsd:date **
208+
209+ *SOAP.Types.Local_Time *
210+ Mapped to **xsd:time **
211+
194212*Duration *
195213 Mapped to **xsd:duration **
196214
@@ -238,9 +256,9 @@ document. In this section we describe the mapping between Ada and
238256
239257 is defined as::
240258
241- <simpleType name="Number" targetNamespace="http://soapaws/WSDL_C_pkg/">
242- <restriction base="xsd:int"/>
243- </simpleType>
259+ <xsd: simpleType name="Number" targetNamespace="http://soapaws/WSDL_C_pkg/">
260+ <xsd: restriction base="xsd:int"/>
261+ </xsd: simpleType>
244262
245263.. highlight :: ada
246264
@@ -254,12 +272,12 @@ document. In this section we describe the mapping between Ada and
254272
255273 is defined as::
256274
257- <simpleType name="Number" targetNamespace="http://soapaws/WSDL_C_pkg/">
258- <restriction base="xsd:int">
275+ <xsd: simpleType name="Number" targetNamespace="http://soapaws/WSDL_C_pkg/">
276+ <xsd: restriction base="xsd:int">
259277 <xsd:minInclusive value=" 1"/>
260278 <xsd:maxInclusive value=" 9345"/>
261- </restriction>
262- </simpleType>
279+ </xsd: restriction>
280+ </xsd: simpleType>
263281
264282 Or for a string::
265283
@@ -271,11 +289,11 @@ document. In this section we describe the mapping between Ada and
271289
272290 is defined as::
273291
274- <simpleType name="Code" targetNamespace="http://soapaws/WSDL_C_pkg/">
292+ <xsd: simpleType name="Code" targetNamespace="http://soapaws/WSDL_C_pkg/">
275293 <xsd:restriction base="xsd:string">
276294 <xsd:Length value="10"/>
277295 </xsd:restriction>
278- </simpleType>
296+ </xsd: simpleType>
279297
280298.. highlight :: ada
281299
@@ -289,12 +307,12 @@ document. In this section we describe the mapping between Ada and
289307
290308 is defined as::
291309
292- <simpleType name="Small" targetNamespace="http://soapaws/WSDL_C_pkg/">
293- <restriction base="xsd:byte">
310+ <xsd: simpleType name="Small" targetNamespace="http://soapaws/WSDL_C_pkg/">
311+ <xsd: restriction base="xsd:byte">
294312 <xsd:minInclusive value=" 1"/>
295313 <xsd:maxInclusive value=" 10"/>
296- </restriction>
297- </simpleType>
314+ </xsd: restriction>
315+ </xsd: simpleType>
298316
299317.. highlight :: ada
300318
@@ -307,11 +325,29 @@ document. In this section we describe the mapping between Ada and
307325
308326 is defined as::
309327
310- <simpleType name="Count" targetNamespace="http://soapaws/WSDL_C_pkg/">
328+ <xsd: simpleType name="Count" targetNamespace="http://soapaws/WSDL_C_pkg/">
311329 <xsd:restriction base="xsd:unsignedByte">
312330 <xsd:maxInclusive value=" 13"/>
313331 </xsd:restriction>
314- </simpleType>
332+ </xsd:simpleType>
333+
334+ .. highlight :: ada
335+
336+ *Decimal types *
337+ Mapped to a decimal with possible range constraints::
338+
339+ type Price is delta 0.01 digits 12 range 0.0 .. 1234.1;
340+
341+ .. highlight :: xml
342+
343+ is defined as::
344+
345+ <xsd:simpleType name="Price">
346+ <xsd:restriction base="xsd:decimal">
347+ <xsd:minInclusive value=" 0.00000000"/>
348+ <xsd:maxInclusive value=" 1234.10000000"/>
349+ </xsd:restriction>
350+ </xsd:simpleType>
315351
316352.. highlight :: ada
317353
@@ -324,13 +360,13 @@ document. In this section we describe the mapping between Ada and
324360
325361 is defined as::
326362
327- <simpleType name="Color">
328- <restriction base="xsd:string">
329- <enumeration value="Red"/>
330- <enumeration value="Green"/>
331- <enumeration value="Blue"/>
332- </restriction>
333- </simpleType>
363+ <xsd: simpleType name="Color">
364+ <xsd: restriction base="xsd:string">
365+ <xsd: enumeration value="Red"/>
366+ <xsd: enumeration value="Green"/>
367+ <xsd: enumeration value="Blue"/>
368+ </xsd: restriction>
369+ </xsd: simpleType>
334370
335371.. highlight :: ada
336372
@@ -350,16 +386,16 @@ document. In this section we describe the mapping between Ada and
350386
351387 is defined as::
352388
353- <complexType name="Rec">
354- <all>
355- <element name="A" type="xsd:int"/>
356- <element name="B" type="xsd:float"/>
357- <element name="C" type="xsd:double"/>
358- <element name="D" type="tns:Character"/>
359- <element name="E" type="xsd:string"/>
360- <element name="F" type="xsd:boolean"/>
361- </all>
362- </complexType>
389+ <xsd: complexType name="Rec">
390+ <xsd: all>
391+ <xsd: element name="A" type="xsd:int"/>
392+ <xsd: element name="B" type="xsd:float"/>
393+ <xsd: element name="C" type="xsd:double"/>
394+ <xsd: element name="D" type="tns:Character"/>
395+ <xsd: element name="E" type="xsd:string"/>
396+ <xsd: element name="F" type="xsd:boolean"/>
397+ </xsd: all>
398+ </xsd: complexType>
363399
364400.. highlight :: ada
365401
@@ -381,13 +417,13 @@ document. In this section we describe the mapping between Ada and
381417
382418 A SOAP encoded format can be generated with the -sea option:
383419
384- <complexType name="Set_Of_Rec">
385- <complexContent>
386- <restriction base="soap-enc:Array">
387- <attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:Rec[]"/>
388- </restriction>
389- </complexContent>
390- </complexType>
420+ <xsd: complexType name="Set_Of_Rec">
421+ <xsd: complexContent>
422+ <xsd: restriction base="soap-enc:Array">
423+ <xsd: attribute ref="soap-enc:arrayType" wsdl:arrayType="tns:Rec[]"/>
424+ </xsd: restriction>
425+ </xsd: complexContent>
426+ </xsd: complexType>
391427
392428.. highlight :: ada
393429
@@ -482,11 +518,11 @@ document. In this section we describe the mapping between Ada and
482518 </xsd:sequence>
483519 </xsd:complexType>
484520
485- <complexType name="Complex_Rec">
486- <all>
487- <element name="SI" type="tns:Set_Of_Int"/>
488- </all>
489- </complexType>
521+ <xsd: complexType name="Complex_Rec">
522+ <xsd: all>
523+ <xsd: element name="SI" type="tns:Set_Of_Int"/>
524+ </xsd: all>
525+ </xsd: complexType>
490526
491527.. highlight :: ada
492528
0 commit comments