Skip to content

Generating wrong field Type in StructClass #287

@KahlerTak

Description

@KahlerTak

Describe the bug
A struct may generate a wrong data type for fields, based on its defined name in the xsd File.

To Reproduce

  1. Download the official EID-WSDL from the German government (BSI Page or Direct download link)
  2. 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
  1. 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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions