Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add support for
<any />
.Fixes #559
Fixes #533
Depends on:
This PR makes it possible to generate a property for the
<any />
element. It is compatible with how PHP's internal ext-soap encoding works.Generated code:
This PR makes the system understand
<any />
elements.https://www.w3schools.com/xml/schema_complex_any.asp
Based on
minOccurs
andmaxOccurs
the code generator will know to create astring
,nullable<string>
orlist<string>
.Examples of generated code:
It is possible to overwrite this default type by using https://github.com/phpro/soap-client/blob/v4.x/docs/drivers/metadata.md#type-replacements
Encoding
You can read more about how encoding/decoding works and how you can overwrite the default behaviour here:
php-soap/encoding#29
Converts (bidirectionally) into:
For XML: