#46616 [NEW]: Value dropped when Soap response with nodes containing attributes and value
From: justin dot hendrickson at gmail dot com Operating system: Ubuntu 8.04 PHP version: 5.2.6 PHP Bug Type: SOAP related Bug description: Value dropped when Soap response with nodes containing attributes and value Description: When casting a Soap response to a PHP value, if a node containing both attributes and a value is encountered, the value is dropped. There's not much information about what is suppose to happen in this case, but from what I gathered, the value is suppose to end up in a property named "_". Reproduce code: --- The service is private, so I cannot provide the URL, but I can supply the WSDL file upon email request. I can provide the result of the Soap request: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://com.etilize.spexlive"; count="921"> Brother MFC-9440CN Multifunction Printer Brother MFC-9440CN Multifunction Printer - Color Laser - 21 ppm Mono - 21 ppm Color - 2400 x 600 dpi - Fax, Copier, Scanner, Printer - PictBridge - Mac Multifunction Network Printer - Color Laser - 21 ppm Mono - 21 ppm Color - 2400 x 600 dpi - Fax, Copier, Scanner, Printer - PictBridge - Mac MFC-9440CN CLR LASER P/S/C/F USB 2400X600 64MB 21PPM Expected result: object(stdClass)#2 (2) { ["products"]=> object(stdClass)#3 (1) { ["productSummary"]=> array(1) { [0]=> object(stdClass)#4 (4) { ["manufacturer"]=> object(stdClass)#5 (3) { ["id"]=> int(10328) ["name"]=> string(23) "Brother Industries, Ltd" ["sku"]=> string(10) "MFC-9440CN" } ["skus"]=> object(stdClass)#6 (1) { ["sku"]=> array(6) { [0]=> object(stdClass)#7 (2) { ["val"]=> string(10) "MFC-9440CN" ["type"]=> string(13) "MFGPARTNUMBER" } [1]=> object(stdClass)#8 (2) { ["val"]=> string(13) "BRT MFC9440CN" ["type"]=> string(19) "SP Richards Catalog" } [2]=> object(stdClass)#9 (2) { ["val"]=> string(12) "BRTMFC9440CN" ["type"]=> string(11) "SP Richards" } [3]=> object(stdClass)#10 (2) { ["val"]=> string(12) "BRTMFC9440CN" ["type"]=> string(6) "United" } [4]=> object(stdClass)#11 (2) { ["val"]=> string(12) "BRTMFC9440CN" ["type"]=> string(8) "IS Group" } [5]=> object(stdClass)#12 (2) { ["val"]=> string(12) "BRTMFC9440CN" ["type"]=> string(7) "TriMega" } } } ["descriptions"]=> object(stdClass)#13 (1) { ["pd"]=> array(4) { [0]=> object(stdClass)#14 (1) { ["_"]=> "Brother MFC-9440CN Multifunction Printer" ["t"]=> int(2) } [1]=> object(stdClass)#15 (1) { ["_"]=> "Brother MFC-9440CN Multifunction Printer - Color Laser - 21 ppm Mono - 21 ppm Color - 2400 x 600 dpi - Fax, Copier, Scanner, Printer - PictBridge - Mac" ["t"]=> int(1) } [2]=> object(stdClass)#16 (1) { ["_"]=> "Multifunction Network Printer - Color Laser - 21 ppm Mono - 21 ppm Color - 2400 x 600 dpi - Fax, Copier, Scanner, Printer - PictBridge - Mac" ["t"]=> int(3) } [3]=> obj
[PHP-BUG] Req #51789 [NEW]: Please add support for complexType mixed="true"
From: Operating system: Ubuntu 10.04 PHP version: 5.3.2 Package: SOAP related Bug Type: Feature/Change Request Bug description:Please add support for complexType mixed="true" Description: Currently, the following WSDL definition: One attribute of information belonging to a datasheet. The information is in the element body. The name of the information. Examples: Manufacturer Website Address, Print Speed. and XML of: Heavy Duty Packaging Cutter is mapped to PHP as: object(stdClass)[12] public 'n' => string 'Product Name' (length=12) -- Edit bug report at http://bugs.php.net/bug.php?id=51789&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=51789&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=51789&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=51789&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=51789&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=51789&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=51789&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=51789&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=51789&r=needscript Try newer version: http://bugs.php.net/fix.php?id=51789&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=51789&r=support Expected behavior: http://bugs.php.net/fix.php?id=51789&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=51789&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=51789&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=51789&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=51789&r=php4 Daylight Savings:http://bugs.php.net/fix.php?id=51789&r=dst IIS Stability: http://bugs.php.net/fix.php?id=51789&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=51789&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=51789&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=51789&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=51789&r=mysqlcfg
#46616 [Fbk->Opn]: Value dropped when Soap response with nodes containing attributes and value
ID: 46616 User updated by: justin dot hendrickson at gmail dot com Reported By: justin dot hendrickson at gmail dot com -Status: Feedback +Status: Open Bug Type: SOAP related Operating System: Ubuntu 8.04 PHP Version: 5.2.6 New Comment: No good. The descriptions are still missing the relevant information. ["descriptions"]=> object(stdClass)#17 (1) { ["pd"]=> array(4) { [0]=> object(stdClass)#18 (1) { ["t"]=> int(1) } [1]=> object(stdClass)#19 (1) { ["t"]=> int(2) } [2]=> object(stdClass)#20 (1) { ["t"]=> int(3) } [3]=> object(stdClass)#21 (1) { ["t"]=> int(0) } } } $> php -v PHP 5.2.12RC4-dev (cli) (built: Dec 9 2009 09:56:13) Copyright (c) 1997-2009 The PHP Group Zend Engine v2.2.0, Copyright (c) 1998-2009 Zend Technologies Previous Comments: [2009-12-08 20:48:52] fel...@php.net Please try using this snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://windows.php.net/snapshots/ [2009-06-15 09:58:06] darkservant at gmail dot com Also happens on Windows and PHP 5.2.9 where a soap response contains a namespace: SOAP Response containing http://www.w3.org/2001/XMLSchema-instance"; xsi:nil="false">xyz produces a TOKEN => NULL instead of TOKEN => xyz inside the response object. ---------------- [2008-11-19 14:49:52] justin dot hendrickson at gmail dot com Description: When casting a Soap response to a PHP value, if a node containing both attributes and a value is encountered, the value is dropped. There's not much information about what is suppose to happen in this case, but from what I gathered, the value is suppose to end up in a property named "_". Reproduce code: --- The service is private, so I cannot provide the URL, but I can supply the WSDL file upon email request. I can provide the result of the Soap request: http://schemas.xmlsoap.org/soap/envelope/"; xmlns:xsd="http://www.w3.org/2001/XMLSchema"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";> http://com.etilize.spexlive"; count="921"> Brother MFC-9440CN Multifunction Printer Brother MFC-9440CN Multifunction Printer - Color Laser - 21 ppm Mono - 21 ppm Color - 2400 x 600 dpi - Fax, Copier, Scanner, Printer - PictBridge - Mac Multifunction Network Printer - Color Laser - 21 ppm Mono - 21 ppm Color - 2400 x 600 dpi - Fax, Copier, Scanner, Printer - PictBridge - Mac MFC-9440CN CLR LASER P/S/C/F USB 2400X600 64MB 21PPM Expected result: object(stdClass)#2 (2) { ["products"]=> object(stdClass)#3 (1) { ["productSummary"]=> array(1) { [0]=> object(stdClass)#4 (4) { ["manufacturer"]=> object(stdClass)#5 (3) { ["id"]=> int(10328) ["name"]=> string(23) "Brother Industries, Ltd" ["sku"]=> string(10) "MFC-9440CN" } ["skus"]=> object(stdClass)#6 (1) { ["sku"]=> array(6) { [0]=> object(stdClass)#7 (2) { ["val"]=> string(10) "MFC-9440CN" ["type"]=> string(13) "MFGPARTNUMBER" } [1]=> object(stdClass)#8 (2) { ["val"]=> string(13) "BRT MFC9440CN" ["type"]=> string(19) "SP Richards Catalog" } [2]=> object(stdClass)#9 (2) { ["val"]=> string(12) "BRTMFC9440CN" ["type"]=> string(11) "SP Richards" } [3]=> object(stdClass)#10 (2) { ["val"]=> string(12) "BRTMFC9440CN" ["type"]=> s