Process a Person

Like content items, retrieved person records are embedded in Atom entry resources as Viz Data Format (VDF) payload documents:

<vdf:payload xmlns:vdf="http://www.vizrt.com/types" 
             model="http://host-ip-address/webservice/escenic/publication/test/model/com.escenic.person">
  <vdf:field name="com.escenic.username"/>
  <vdf:field name="com.escenic.firstName">
    <vdf:value>Firstname</vdf:value>
  </vdf:field>
  <vdf:field name="com.escenic.surName">
    <vdf:value>Surname</vdf:value>
  </vdf:field>
  <vdf:field name="com.escenic.occupation"/>
  <vdf:field name="com.escenic.address"/>
  <vdf:field name="com.escenic.postalcode"/>
  <vdf:field name="com.escenic.city"/>
  <vdf:field name="com.escenic.phonework"/>
  <vdf:field name="com.escenic.phonemobile"/>
  <vdf:field name="com.escenic.phoneprivate"/>
  <vdf:field name="com.escenic.emailaddress">
    <vdf:value>mail@example.com</vdf:value>
  </vdf:field>
</vdf:payload>

AS for content items, the root element of the payload document has a model attribute that contains a reference to a VDF model document. This document contains a schema defining the structure and content of the payload document. That is, it tells you what fields the payload document may contain, how they are organized and what data types they contain. Your client can therefore download this model document and use it as a guide to processing the contents of the payload document.