From:             danny dot dorfel at gmail dot com
Operating system: Linux / CentOS
PHP version:      Irrelevant
Package:          SOAP related
Bug Type:         Bug
Bug description:XML ID attribute not parsed correctly, overriding the ID node 
value in the XML

Description:
------------
The XML returned has an Id node and an Id attribute. The parsed response
creates 
an object and fills the Id value with the value of the Id attribute. De
node's 
value is not used.

ID and IDREF attributes are predefined SOAP attributes and don't need to be

parsed. Unfortunately .net soap services return the ID as z:Id, resulting
in a 
parse.

Response XML:
<Person z:ID="i1"
xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/";>
...
<Id>94acdd8b-2ae5-448a-9a61-d2df5218111e</Id>
...
</Person>

For me, preferred end result would be that we have the value of the node in
Id 
and the value of the attribute in _Id or something like _attrib['Id'].

Expected result:
----------------
stdClass Object
(
    [Person] => stdClass Object
        (
...
            [Id] => 94acdd8b-2ae5-448a-9a61-d2df5218111e
...
        )
)

Actual result:
--------------
stdClass Object
(
    [Person] => stdClass Object
        (
...
            [Id] => i1
...
        )
)


-- 
Edit bug report at https://bugs.php.net/bug.php?id=62448&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=62448&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=62448&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=62448&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=62448&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=62448&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=62448&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=62448&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=62448&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=62448&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=62448&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=62448&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=62448&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=62448&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=62448&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=62448&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=62448&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=62448&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=62448&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=62448&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=62448&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=62448&r=mysqlcfg

Reply via email to