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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

Add a Patch

Pull Requests

Add a Pull Request

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 21:01:29 2024 UTC