Exemple SOAP de mise à jour transitoire de GetTravelDirections

L'exemple suivant illustre une requête SOAP GetTravelDirections standard comportant toutes les options de mise à jour transitoire disponibles (cet exemple n'est pas opérationnel ; son objectif est d'indiquer l'ensemble de la syntaxe). Vous pouvez disposer de plusieurs définitions Update au sein de TravelDirectionTransientUpdate. Vous ne pouvez disposer que d'un seul type de mise à jour (PointUpdate, SegmentUpdate ou RoadTypeUpdate) au sein de Update. Vous ne pouvez également disposer que d'une seule mise à jour au sein d'un des types de mise à jour (PointUpdate, SegmentUpdate ou RoadTypeUpdate).

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:get="http://www.pb.com/spectrum/services/GetTravelDirections"
xmlns:typ="http://www.g1.com/services/erm/types">
   <soapenv:Header/>
   <soapenv:Body>
      <get:GetTravelDirectionsRequest>
         <get:input_port>
            <get:PointToPointRequest>
               <get:RoutePoints>
                  <get:RoutePoint>
                     <get:Latitude>33.751748</get:Latitude>                            
                     <get:Longitude>-84.364014</get:Longitude>
                  </get:RoutePoint>
                   <get:RoutePoint>
                     <get:Latitude>33.664925</get:Latitude>
                     <get:Longitude>-80.90332</get:Longitude>
                  </get:RoutePoint>
               </get:RoutePoints>
			   <get:Language>fr-FR</get:Language>
			   <get:TravelDirectionTransientUpdate>
                  <typ:Update>
                           <typ:PointUpdate>
                              <typ:Point>
                                 <typ:Latitude>?</typ:Latitude>
                                 <typ:Longitude>?</typ:Longitude>
                              </typ:Point>
                              <typ:SpeedUpdate>
                                 <typ:Velocity VelocityUnit=""/>
                                 <typ:SpeedIncrease>
                                    <typ:Velocity VelocityUnit=""/>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedIncrease>
                                 <typ:SpeedDecrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedDecrease>
                              </typ:SpeedUpdate>
                              <typ:Exclude>?</typ:Exclude>
                           </typ:PointUpdate>
                           <typ:SegmentUpdate>
                              <typ:RoutingSegmentID>?</typ:RoutingSegmentID>
                              <typ:SpeedUpdate>
                                 <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                 <typ:SpeedIncrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedIncrease>
                                 <typ:SpeedDecrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedDecrease>
                              </typ:SpeedUpdate>
                              <typ:RoadType>?</typ:RoadType>
                              <typ:Exclude>?</typ:Exclude>
                           </typ:SegmentUpdate>
                           <typ:RoadTypeUpdate>
                              <typ:RoadType>?</typ:RoadType>
                              <typ:SpeedUpdate>
                                 <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                 <typ:SpeedIncrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedIncrease>
                                 <typ:SpeedDecrease>
                                    <typ:Velocity VelocityUnit="?">?</typ:Velocity>
                                    <typ:Percentage>?</typ:Percentage>
                                 </typ:SpeedDecrease>
                              </typ:SpeedUpdate>
                           </typ:RoadTypeUpdate>
                        </typ:Update>
               </get:TravelDirectionTransientUpdate>
            </get:PointToPointRequest>
         </get:input_port>
      </get:GetTravelDirectionsRequest>
   </soapenv:Body>
</soapenv:Envelope>