php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #42652 Turn off SOAP xml optimisations
Submitted: 2007-09-13 09:29 UTC Modified: 2021-08-18 11:13 UTC
Votes:3
Avg. Score:3.7 ± 0.9
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:0 (0.0%)
From: joe at bealesweb dot com Assigned:
Status: Open Package: SOAP related
PHP Version: 5.2.4 OS: Windows XP
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: joe at bealesweb dot com
New email:
PHP Version: OS:

 

 [2007-09-13 09:29 UTC] joe at bealesweb dot com
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!


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2021-08-18 11:13 UTC] cmb@php.net
-Package: Feature/Change Request +Package: SOAP related
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Jun 15 11:01:30 2024 UTC