I have two questions about the XMPP protocol:
1) how can I request Name for my current JID (My Connected Account) as registered first time by requesting IQ command ?
2) How can I change nickname for one of my roster accounts(JIDS) ?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
http://www.rfc-editor.org/rfc/rfc6121.txt
Section 2.1.2.4 describes NAME attribute.
That basically means the connection itself does not have NAME.
And if you added yourself in your own roster – then it is no different that getting NAME for any other contact.
Section 2.1.5 shows the needed stanza to change some attribute – in your case that would be NAME attribute.
If you have any quesito nwith XMPP – most easy would be to take some long-existing lcient like JAJC or Vacuum-IM, open XML Log Console, do your action and read which stanzes been really exchanged.