Not logged in. · Lost password · Register
Forum: XMPP Protocol RSS
Avatar
javanesevn #1
Member since Apr 2008 · 74 posts · Location: Japan
Group memberships: Members
Show profile · Link to this post
Subject: Request necessary vcard information
Hello all,

I need set more than photo to vcard and I work around with this problem by set data to some unused fields in vcard.
So Could I get necessary fields for a session requesting a vcard? Because it will payload if I receive all data for every request.

Best regards,
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
sorry, but I don't understand your question. Can you please elaborate?
Avatar
javanesevn #3
Member since Apr 2008 · 74 posts · Location: Japan
Group memberships: Members
Show profile · Link to this post
Hello Alex,

In vcard xml below the <ROLE> tag is not use in my case then I would like to set it with large of data.
Because its large of data, will payload when client request all vcard from a request, so on client side can I query only <ROLE> tag data? 

I know VCard is not served for this purpose. My purpose is publish mass of data and sharing them with his/her rosters. 


<vCard xmlns="vcard-temp">
    <EMAIL>
         <INTERNET/>
         <PREF/><USERID>test@xmpp01</USERID>
    </EMAIL>
    <URL/>
    <TITLE/>
    <BDAY>0001-01-01</BDAY>
    <ROLE>large of data</ROLE>
    <DESC/>
    <FN/>
    <NICKNAME/>
    <PHOTO>
          <TYPE>image/png</TYPE>
          <BINVAL>Base64 Data in here</BINVAL>
    </PHOTO>
</vCard>


And other question: from xep0054 I can see a lot of vcard elements such as: 
   MAILER?,
  TZ?,
  GEO?,
  TITLE?,
  ROLE?, 
  LOGO?,
  AGENT?,
  ORG?,
  NOTE?,
  PRODID?,
  REV?,
  SORT-STRING?,
  SOUND?,
  UID?,
  URL?,
  CLASS?,
  KEY?,

How can I add these elements to VCard?

Best regards,
Avatar
Alex #4
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this is not a good idea and violates the XEP and Vcard RFC.
You can write your own extension to share other data over XMPP or use PubSub and PEP.

Regards,
Alex
Avatar
javanesevn #5
Member since Apr 2008 · 74 posts · Location: Japan
Group memberships: Members
Show profile · Link to this post
Thank you Alex.

Yes, this is temporary solution.  :-)

Follow XEP-0054 vcard-temp, these elements:
 MAILER?,
  TZ?,
  GEO?,
  TITLE?,
  ROLE?,
  LOGO?,
  AGENT?,
  ORG?,
  NOTE?,
  PRODID?,
  REV?,
  SORT-STRING?,
  SOUND?,
  UID?,
  URL?,
  CLASS?,
  KEY?,

They have not implemented on VCard yet. How about it?

Sincerely yours,
Avatar
Alex #6
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
There are not all vcard fields implemented, only the most common fields.
You can parse all other fields you need with the xml functions, or extend the vcard classes.

Alex
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: