Retrieving Contact Data

Upon connecting to the server and becoming an active resource, a client can request the contact extra data. This request can be made either after or before requesting the user roster. The client’s request for the extra contact data is OPTIONAL.

Example: Client requests contact extra data from the server using 'get' request:

<iq type='get' id='rce_1'>
  <query xmlns='jabber:iq:roster-dynamic'>
    <item jid='archimedes@eureka.com'/>
  </query>
</iq>

Example: Client receives contact extra data from the server, but there were either no extra information for the user or the user was not found in the dynamic roster:

<iq type='result' id='rce_1'>
  <query xmlns='jabber:iq:roster-dynamic'>
    <item jid='archimedes@eureka.com'/>
  </query>
</iq>

Example: Client receives contact extra data from the server, and there was some extra information found about the contact:

<iq type='result' id='rce_1'>
  <query xmlns='jabber:iq:roster-dynamic'>
    <item jid='archimedes@eureka.com'>
      <phone>+12 3234 322342</phone>
      <note>This is short note about the contact</note>
      <fax>+98 2343 3453453</fax>
    </item>
  </query>
</iq>