587 Commits

Author SHA1 Message Date
Pascal Obry
b95f2f0c52 Add support for optional attributes and attributeGroup.
Add corresponding regression test.

TN eng/toolchain/aws#108
2025-12-11 19:20:08 +01:00
Pascal Obry
2bf163c45e Look_For_Schema: Add support for attributeGroup.
TN eng/toolchain/aws#108
2025-12-09 18:31:21 +01:00
Pascal Obry
efe7201fe3 Minor typo fix. 2025-12-09 18:28:29 +01:00
Pascal Obry
3b836f3fa5 Add support for WSDL attribute.
Update wsdl2aws to generate code to support WSDL attributes.

Add some regression tests.

TN eng/toolchain/aws#108
2025-12-01 22:55:51 +01:00
Pascal Obry
afa728a4c1 Parse_Simple: Code refactoring (extract Parse_Base).
Will be reused for parsing simleContent nodes.

TN eng/toolchain/aws#108
2025-12-01 22:55:51 +01:00
Pascal Obry
bdeeb01a00 Parse_Part: For document style only look for element in schema.
For document style binding a part is defiend as:

   <part name="somename" element="elt"/>

And "elt" must only match element in the schema and not complexType or
simpleType.

Update some invalid WSDL in regression test.

TN eng/toolchain/aws#108
2025-12-01 22:55:51 +01:00
Pascal Obry
42739fc9e1 Minor code clean-up.
no-issue-check
2025-12-01 22:55:51 +01:00
Andry Ogorodnik
6967993f23 Escape quotes in wsdl2ada
Replace `"` from `<xs:pattern value` by `""` to create
a valid pattern string for regexp

For https://gitlab.adacore-it.com/eng/toolchain/aws/-/issues/107
2025-11-19 18:47:07 +00:00
Pascal Obry
86511ed32a Minor reformatting. 2025-11-18 22:25:43 +01:00
Pascal Obry
004578e36b Fix optional record fields whose name is Ada reserved word.
We want to use the identifier (possibly translated to avoid clash
with Ada reserved words) for the declaration and not the one
as found in the WSDL. Note that this issue was affecting only
fields being optional in a record.

Add corresponding regression test.

TN eng/toolchain/aws#106
2025-11-18 22:25:31 +01:00
Pascal Obry
7175b51a32 Fix compilation issue due to duplicate definitions.
A types differing just in casing was creating a duplicate
definitions in <name>-types.ads package.

TN eng/toolchain/aws#106
2025-11-17 22:34:21 +01:00
Pascal Obry
a4014654fa Fix WSDL enumeration whose values have invalid characters for an identifier.
Add corresponding regression test.

TN eng/toolchain/aws#106
2025-11-17 20:39:10 +01:00
Pascal Obry
081180133b Add support elementFormDefault attribute.
Standard element are now fully qualified (using QName) if and only if
the corresponding schema is set with elementFormDefault = Qualified.

Standard element here are element defined with attributes name/type and
not those being a reference (using ref attribute) to some other definition.

Add corresponding regression test and update some tests to conform to
this new support.

TN eng/toolchain/aws#101
2025-10-21 18:39:40 +02:00
Pascal Obry
acc347c6ca Record if an element is a reference or a defined element.
<element name="..." type="..."/>

or

<element ref="..."/>

Only the former is to be serialized differently depending on the
elementFormDefault schema attribute.

TN eng/toolchain/aws#101
2025-10-21 18:18:18 +02:00
Pascal Obry
decf46fe8f Minor code clean-up.
- Use @ target name symbol.
- Remove duplicate blank line.

TN eng/toolchain/aws#101
2025-10-21 18:18:18 +02:00
Pascal Obry
4695e5f19c Add support for optional parameters and record's fields. 2025-07-11 23:11:01 +02:00
Pascal Obry
1bc68827af Finaly remove -sp option and support.
Code clean-up to keep only the Containers.Vector support. The Safe_Array
is not supporting optional items and at this point it is better to
remove it altogether.

TN eng/toolchain/aws#92
2025-07-11 23:11:01 +02:00
Pascal Obry
90571d9b87 Migrate all tests to use vector instead of Safe_Pointer.
TN eng/toolchain/aws#92
2025-07-11 23:11:01 +02:00
Pascal Obry
0ec488ca9d Check for arrays in ada2wsdl and display hint to use vector.
This is needed as the array support will be removed.

For eng/toolchain/aws#92
2025-07-11 23:11:01 +02:00
Pascal Obry
7accf376f0 Add support for optional parameters and record's fields.
Add correspoonding regression test.

For eng/toolchain/aws#92
2025-07-11 23:11:01 +02:00
Pascal Obry
685d0e51b9 Avoid double xsd defs to be generated.
Found while working on eng/toolchain/aws#92
2025-07-11 23:11:01 +02:00
Pascal Obry
9d6f6278f6 Better error message for syntax error.
This is better than having a LAL backtrace.

TN eng/toolchain/aws#92
2025-07-11 23:11:01 +02:00
Pascal Obry
260081b4af Support parameter with array of array.
TN: eng/toolchain/aws#87
2025-04-28 17:40:50 +00:00
Pascal Obry
3fd2ec0485 Add some Ada 2022 pragma.
Those are needed as possibly using generic units having
Ada 2022 constructs.

Adjust expected output of test 0265 accordingly.

TN: eng/toolchain/aws#87
2025-04-28 17:40:50 +00:00
Pascal Obry
317a23a8ea Minor code clean-up and reformatting.
TN: eng/toolchain/aws#87
2025-04-28 17:40:50 +00:00