SOAP changes in 5.2.2 from 5.2.1

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,
I've finally got around to upgrading from php 5.2.1 to 5.2.3 (also tried 5.2.2) and found that my SOAP requests aren't being received by the web service the same way as they used to.

I've used a packet sniffer (wireshark) to see what the difference between my request in 5.2.1 and 5.2.3 is.
The following is my request in 5.2.1:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="http://s.mappoint.net/mappoint-30/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <SOAP-ENV:Body>
  <ns1:GetMap>
   <ns1:specification>
    <ns1:DataSourceName>MapPoint.EU</ns1:DataSourceName>
    <ns1:Options>
     <ns1:RouteHighlightColor>DefaultColor</ns1:RouteHighlightColor>
     <ns1:ConstructionDelayHighlightColor>DefaultColor</ns1:ConstructionDelayHighlightColor>
     <ns1:ConstructionClosureHighlightColor>DefaultColor</ns1:ConstructionClosureHighlightColor>
     <ns1:Format>
      <ns1:Height>450</ns1:Height>
      <ns1:Width>600</ns1:Width>
     </ns1:Format>
     <ns1:ReturnType>ReturnUrl</ns1:ReturnType>
     <ns1:PanHorizontal>0</ns1:PanHorizontal>
     <ns1:PanVertical>0</ns1:PanVertical>
     <ns1:Style>Road</ns1:Style>
     <ns1:Zoom>0.1</ns1:Zoom>
    </ns1:Options>
    <ns1:Pushpins>
     <ns1:Pushpin>
      <ns1:IconDataSource>MapPoint.Icons</ns1:IconDataSource>
      <ns1:IconName>9</ns1:IconName>
      <ns1:Label>NX30</ns1:Label>
      <ns1:LatLong>
       <ns1:Latitude>52.10674</ns1:Latitude>
       <ns1:Longitude>-2.09221</ns1:Longitude>
      </ns1:LatLong>
      <ns1:PinID>pin1</ns1:PinID>
      <ns1:ReturnsHotArea>true</ns1:ReturnsHotArea>
      <ns1:LabelNearbyRoads>false</ns1:LabelNearbyRoads>
     </ns1:Pushpin>
    </ns1:Pushpins>
    <ns1:Views>
     <ns1:MapView xsi:type="ns1:ViewByHeightWidth">
      <ns1:Height>300</ns1:Height>
      <ns1:Width>400</ns1:Width>
      <ns1:CenterPoint>
       <ns1:Latitude>52.10674</ns1:Latitude>
       <ns1:Longitude>-2.09221</ns1:Longitude>
      </ns1:CenterPoint>
     </ns1:MapView>
    </ns1:Views>
   </ns1:specification>
  </ns1:GetMap>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

And in 5.2.3 it is:
<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"; xmlns:ns1="http://s.mappoint.net/mappoint-30/"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
 <SOAP-ENV:Body>
  <ns1:GetMap>
   <ns1:specification>
    <ns1:DataSourceName>MapPoint.EU</ns1:DataSourceName>
    <ns1:Options>
     <ns1:RouteHighlightColor>DefaultColor</ns1:RouteHighlightColor>
     <ns1:ConstructionDelayHighlightColor>DefaultColor</ns1:ConstructionDelayHighlightColor>
     <ns1:ConstructionClosureHighlightColor>DefaultColor</ns1:ConstructionClosureHighlightColor>
     <ns1:Format>
      <ns1:Height>450</ns1:Height>
      <ns1:Width>600</ns1:Width>
     </ns1:Format>
     <ns1:ReturnType>ReturnUrl</ns1:ReturnType>
     <ns1:PanHorizontal>0</ns1:PanHorizontal>
     <ns1:PanVertical>0</ns1:PanVertical>
     <ns1:Style>Road</ns1:Style>
     <ns1:Zoom>0.1</ns1:Zoom>
    </ns1:Options>
    <ns1:Pushpins>
     <ns1:Pushpin>
      <ns1:IconDataSource>MapPoint.Icons</ns1:IconDataSource>
      <ns1:IconName>9</ns1:IconName>
      <ns1:Label>NX30</ns1:Label>
      <ns1:LatLong id="ref1">
       <ns1:Latitude>52.10674</ns1:Latitude>
       <ns1:Longitude>-2.09221</ns1:Longitude>
      </ns1:LatLong>
      <ns1:PinID>pin1</ns1:PinID>
      <ns1:ReturnsHotArea>true</ns1:ReturnsHotArea>
      <ns1:LabelNearbyRoads>false</ns1:LabelNearbyRoads>
     </ns1:Pushpin>
    </ns1:Pushpins>
    <ns1:Views>
     <ns1:MapView xsi:type="ns1:ViewByHeightWidth">
      <ns1:Height>300</ns1:Height>
      <ns1:Width>400</ns1:Width>
      <ns1:CenterPoint href="#ref1"/>
     </ns1:MapView>
    </ns1:Views>
   </ns1:specification>
  </ns1:GetMap>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

The only difference is this line <ns1:CenterPoint href="#ref1"/>. It appears to reference the earlier LatLong element as it contains the same data (I've not seen this method/notation used before, is it a standard xml thing?). It doesn't look like the Microsoft Mappoint Web Service is capable of understanding this format so I was wondering if there is a way of disabling this new feature/method in php. Or is there some other work around I could use?

Many Thanks,
Joe

[Index of Archives]     [PHP Home]     [PHP Users]     [Kernel Newbies]     [PHP Database]     [Yosemite]

  Powered by Linux