php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #55503 Extend __getTypes to support enumerations
Submitted: 2011-08-25 04:07 UTC Modified: -
Votes:10
Avg. Score:4.7 ± 0.5
Reproduced:10 of 10 (100.0%)
Same Version:0 (0.0%)
Same OS:0 (0.0%)
From: datibbaw@php.net Assigned:
Status: Open Package: SOAP related
PHP Version: 5.4SVN-2011-08-25 (snap) OS: N/A
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: datibbaw@php.net
New email:
PHP Version: OS:

 

 [2011-08-25 04:07 UTC] datibbaw@php.net
Description:
------------
The __getTypes() method helps to serve as a reference when writing SOAP consumer 
code, which is very useful.

However, enumeration types in WSDL aren't supported properly; they're printed as 
only the enumeration base type (which is usually 'string' in my case).

Test script:
---------------
<xsd:simpleType name="PersonaMemberType"> 
<xsd:restriction base="xsd:string"> 
<xsd:enumeration value="NEW"/> 
<xsd:enumeration value="LIMITED"/> 
<xsd:enumeration value="FREE"/> 
<xsd:enumeration value="PAID_ACTIVE"/> 
<xsd:enumeration value="TRIAL_ACTIVE"/> 
<xsd:enumeration value="PAID_EXPIRED"/> 
<xsd:enumeration value="TRIAL_EXPIRED"/> 
</xsd:restriction> 
</xsd:simpleType>

Expected result:
----------------
string PersonaMemberType 
{NEW,LIMITED,FREE,PAID_ACTIVE,TRIAL_ACTIVE,PAID_EXPIRED,TRIAL_EXPIRED}

Actual result:
--------------
string PersonaMemberType

Patches

soap-gettypes-enumeration (last revision 2011-08-25 04:07 UTC by datibbaw)

Add a Patch

Pull Requests

Add a Pull Request

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