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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please — but make sure to vote on the bug!
Your email address:
MUST BE VALID
Solve the problem:
31 - 23 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 01:01:28 2024 UTC