Persistent Update SOAP Example

The following shows a standard PersistentUpdate SOAP request with all of the update options available (not a working example, this is used to show all the request syntax). You can have multiple Update or Reset definitions within a PersistentUpdates. You can only have a single update type (PointUpdate, SegmentUpdate, or RoadTypeUpdate) within an Update. Similarily you can only have a single reset type (PointReset, SegmentReset, or RoadTypeReset) within an Reset. You can also only have a single update or reset within one of the update or reset types.

To perform a reset on all updates, you only need to specify the DataSetResourceName and set the RestoreDefaults parameter to 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>