From: joe at bealesweb dot com Operating system: Windows XP PHP version: 5.2.4 PHP Bug Type: Feature/Change Request Bug description: Turn off SOAP xml optimisations
Description: ------------ Upgrading from 5.2.1 to a higher version (tested all major releases) causes my SOAP requests to be misinterpretted by the remote web service. This is because, I believe, the improvements you made in 5.2.2 included the optimising of the xml produced by the request through the use of "id"s and "href"s (which allow you to reference repeating data therefore reducing the size of the xml file). The web service I am comunicating with does not understand this xml syntax and so no longer returns the results I expect. The web service in question is the Microsoft Mappoint Web Service so there is not much chance of me getting it changed at that end! I hate to step on progress but, I would like an option to turn off this optimisation, would this be possible? Reproduce code: --------------- The optimisation I would like to switch off. Obtained with a packet sniffer. Before 5.2.2: <ns1:Pushpin> <ns1:LatLong> <ns1:Latitude>52.10674</ns1:Latitude> <ns1:Longitude>-2.09221</ns1:Longitude> </ns1:LatLong> </ns1:Pushpin> <ns1:MapView xsi:type="ns1:ViewByHeightWidth"> <ns1:CenterPoint> <ns1:Latitude>52.10674</ns1:Latitude> <ns1:Longitude>-2.09221</ns1:Longitude> </ns1:CenterPoint> </ns1:MapView> After 5.2.2 (including 5.2.4) <ns1:Pushpin> <ns1:LatLong id="ref1"> <ns1:Latitude>52.10674</ns1:Latitude> <ns1:Longitude>-2.09221</ns1:Longitude> </ns1:LatLong> </ns1:Pushpin> <ns1:MapView xsi:type="ns1:ViewByHeightWidth"> <ns1:CenterPoint href="#ref1"/> </ns1:MapView> There is a work around to this - make sure there are no identical elements in the SOAP request so they do not get "optimised". This is obviously not ideal! -- Edit bug report at http://bugs.php.net/?id=42652&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=42652&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=42652&r=trysnapshot52 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=42652&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=42652&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=42652&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=42652&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=42652&r=needscript Try newer version: http://bugs.php.net/fix.php?id=42652&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=42652&r=support Expected behavior: http://bugs.php.net/fix.php?id=42652&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=42652&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=42652&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=42652&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=42652&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=42652&r=dst IIS Stability: http://bugs.php.net/fix.php?id=42652&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=42652&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=42652&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=42652&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=42652&r=mysqlcfg