Exemple SOAP de mise à jour persistante

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

Pour réinitialiser l'ensemble des mises à jour, il vous suffit d'indiquer l'élément DataSetResourceName et de définir le paramètre RestoreDefaults sur Y.

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:per="http://www.g1.com/services/PersistentUpdate" xmlns:typ="http://www.g1.com/services/erm/types">
   <soapenv:Header/>
   <soapenv:Body>
      <per:PersistentUpdateRequest>
         <per:options>
            <per:DataSetResourceName>US</per:DataSetResourceName>
			<per:CoordinateSystem>?</per:CoordinateSystem>
            <per:RestoreDefaults>N</per:RestoreDefaults>
         </per:options>
         <per:rows>
            <per:row>
                <per:PersistentUpdates>
                    <typ:UpdateList>
                        <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>
                    </typ:UpdateList>
                    <typ:ResetList>
                        <typ:Reset>
                            <typ:PointReset ResetType="?">
                                <typ:Point>
                                    <typ:Latitude>?</typ:Latitude>
                                    <typ:Longitude>?</typ:Longitude>
                                </typ:Point>
                            </typ:PointReset>
                            <typ:SegmentReset ResetType="?">
                                <typ:RoutingSegmentID>?</typ:RoutingSegmentID>
                            </typ:SegmentReset>
                            <typ:RoadTypeReset>
                                <typ:RoadType>?</typ:RoadType>
                            </typ:RoadTypeReset>
                        </typ:Reset>
                    </typ:ResetList>
                </per:PersistentUpdates>
             </per:row>
         </per:rows>
      </per:PersistentUpdateRequest>
   </soapenv:Body>
</soapenv:Envelope>