Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

when xs:group tag include an array , it will generate wrong #284

Open
ypptidyce18786 opened this issue Mar 1, 2023 · 2 comments
Open

when xs:group tag include an array , it will generate wrong #284

ypptidyce18786 opened this issue Mar 1, 2023 · 2 comments
Assignees
Labels

Comments

@ypptidyce18786
Copy link

Describe the bug
when xs:group tag include an array , it will generate wrong
the xs:group tag example:

<xs:group name="BaseBookingTravelerInfoA">
		<xs:sequence>
			<xs:element ref="BookingTravelerName"/>
			<xs:element ref="DeliveryInfo" minOccurs="0" maxOccurs="999"/>
			<xs:element ref="PhoneNumber" minOccurs="0" maxOccurs="999"/>
			<xs:element ref="Email" minOccurs="0" maxOccurs="999"/>
			<xs:element ref="LoyaltyCard" minOccurs="0" maxOccurs="999"/>
			<xs:element ref="DiscountCard" minOccurs="0" maxOccurs="9"/>
		</xs:sequence>
	</xs:group>

image

I copied the contents of the xs: group tag to the place referenced by xs: group, and then it can be generated normally.

@ypptidyce18786
Copy link
Author

PhoneNumber should be generate an array.

but now, it generated an Object

@mikaelcom
Copy link
Member

Hi, thanks for your report. I'll look to it as soon as possible. My first tought is that the native PHP SoapClient class does not fetch the BaseBookingTravelerInfoA details from the group so it does not consider its elements as part of the parent tag. The generator does not take care of analyzing all the tags to reconstruct each element definition... but I might be wrong.

keep in touch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants