[JDEV] get info???

chandan sonaye chandans at mahindrabt.com
Fri Feb 11 00:58:25 CST 2000


hi all,

     I have read in the doc.(client-server) that client can get
info.(name,email)
    about other user by sending query like:

 <iq to="user at server.com" type="get">
   <query xmlns="jabber:iq:info"><name/><email/></query>
 </iq>

This measn if i want to get info. about   jon, i will write above query
with
user=jon.
But this doesn't work.
I do not get the info. from server.
Neither any query error or success or resultant info.
Interestingly, if i write just 'jabber.org' instead of 'jan at jabber.org'
, i get info about server.

So if this 'to' attribute works with Jserver, why not with any other
user?

If i am logged in with my user-id and password, then if i send above
query
withot "to=user at jabber.org" , it sends me my info(name,email).
But i want info. about other users. How can i achieve this?
Why doesn't 'to=user at jabber.org' works?

How can i get info.(name,email) about other users?

Currently, i am  storing info. about any user either at registeration
time or
by sending above query with typw='set' and required fields.
This set info. i can retrieve by logging with that user-id and without
writing
'to' attribute'. Is my way of storing info. is wrong?

or then what should i do to get info about other users?


Thank you,

chandan





More information about the JDev mailing list