-
Notifications
You must be signed in to change notification settings - Fork 73
Open
Description
Describe the bug
A struct may generate a wrong data type for fields, based on its defined name in the xsd File.
To Reproduce
- Download the official EID-WSDL from the German government (BSI Page or Direct download link)
- Use the generator to generate the structure types, with following command options:
- --urlorpath="/Path/To/WSDL/TR-03130eID-Server.wsdl"
- --destination="/PATH/TO/Soap/Generated"
- --composer-name=""
- --standalone=false
- --namespace-directories=false
- --src-dirname="/"
- --namespace="Some\Php\Namespace"
- --force
- Inspect StructType/PersonalDataType and compare with the xsd file
Expected behavior
StructType/PersonalDataType should contain a field $DocumentType from type string|null, but got \Some\Php\Namespace\DocumentType with InlineXML fields and other unexpected fields.
Additonal Context
Changing the name in the TR-03130eID-Server.xsd file from tns:DocumentType to tns:IdentityDocumentType created the expected string|null type