Sample PIDF-LO

Example PIDF-LO document with San Francisco coordinates:

<?xml version="1.0" encoding="UTF-8"?>
 <presence xmlns="urn:ietf:params:xml:ns:pidf"
    xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
    xmlns:gml="http://www.opengis.net/gml"
    entity="pres:sample@example.com">
  <tuple id="example123">
   <status>
    <gp:geopriv>
      <gp:location-info>
        <gml:location>
          <gml:Point gml:id="point1" srsName="urn:ogc:def:crs:EPSG::4326">
            <gml:pos>37.775 -122.422</gml:pos>
          </gml:Point>
         </gml:location>
      </gp:location-info>
      <gp:usage-rules>
        <gp:retransmission-allowed>no</gp:retransmission-allowed>
        <gp:retention-expiry>2008-06-23T01:01:01Z</gp:retention-expiry>
      </gp:usage-rules>
    </gp:geopriv>
   </status>
   <timestamp>2008-01-01T22:00:09Z</timestamp>
  </tuple>
 </presence>

Sample Location Response from Location Information Server

<?xml version="1.0" encoding="UTF-8"?>
<locationResponse xmlns="urn:ietf:params:xml:ns:geopriv:held">
 <presence xmlns="urn:ietf:params:xml:ns:pidf"
    xmlns:gp="urn:ietf:params:xml:ns:pidf:geopriv10"
    xmlns:gml="http://www.opengis.net/gml"
    entity="pres:sample@example.com">
  <tuple id="example123">
   <status>
    <gp:geopriv>
      <gp:location-info>
        <gml:location>
          <gml:Point gml:id="point1" srsName="urn:ogc:def:crs:EPSG::4326">
            <gml:pos>37.775 -122.422</gml:pos>
          </gml:Point>
         </gml:location>
      </gp:location-info>
      <gp:usage-rules>
        <gp:retransmission-allowed>no</gp:retransmission-allowed>
        <gp:retention-expiry>2008-06-23T01:01:01Z</gp:retention-expiry>
      </gp:usage-rules>
    </gp:geopriv>
   </status>
   <timestamp>2008-01-01T22:00:09Z</timestamp>
  </tuple>
 </presence>
</locationResponse>

You can put this sample PIDF-LO on a web server and enter the URI to the PIDF-LO in the Zap configuration as LIS URI for HELD testing purposes if you have no real LIS.

A PIDF-LO visualizer is available at: http://held-location.sourceforge.net/held_js/pidflo.html