[JDEV] retrieving name from server

Jason Anderson jason at guanosoft.org
Sun Apr 21 20:16:34 CDT 2002


I'm trying to retrieve the name of the logged-on user from the jabber 
server, but I can't figure it out.  Here's what I'm doing:

-connect
-authorize
-set presence
-try a query like this:
<iq type='get' to='localhost'>
   <query xmlns='jabber:iq:register'/>
</iq>

The result is:
  <iq to="zwei at localhost/Home" from="localhost" type="result">
<query xmlns="jabber:iq:register">
<instructions>Choose a username and password to register with this 
server.</instructions>
<password></password>
<name></name>
<email></email>
<key>00c46204ce5a85a2a4ea0a6d6249642446006454</key>
<registered></registered>
</query>
</iq>

I have a name set, but it is never returned to me.  Maybe I should be 
using the browse protocol.  Can anyone suggest what the problem might be?

Thanks,
jason




More information about the JDev mailing list