php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68891 SOAP Error when trying to submit 2nd Element of a choice
Submitted: 2015-01-23 07:42 UTC Modified: -
Votes:4
Avg. Score:4.5 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: flydian80 at yahoo dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.5.21 OS: Windows 8.1
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: flydian80 at yahoo dot com
New email:
PHP Version: OS:

 

 [2015-01-23 07:42 UTC] flydian80 at yahoo dot com
Description:
------------
It relates to the Bug #50997 SOAP Error when trying to submit 2nd Element of a choice. This bug is actually not yet fixed. The current fix only fix the situation: the first child inside the <choice> parent is NOT a sequence. If the first child is a <sequence>, the bug is still there. 

Test script:
---------------
<xs:element name="User">
	<xs:complexType>
		<xs:choice>
			<xs:sequence>
				<xs:element name="ID" minOccurs="0"/>
				<xs:element name="Name" />
			</xs:sequence>
			<xs:element name="Address"></xs:element>
		</xs:choice>
	</xs:complexType>
</xs:element>

[faultstring] => SOAP-ERROR: Encoding: object has no 'Name' property

Expected result:
----------------
The <sequence> child should be considered as one of the choices too.


Patches

Pull Requests

 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Jan 15 09:01:28 2025 UTC