[JDEV] A Protocol Dev. Carification

Tom Coffin tcoffin at asg.bellsouth.net
Wed Apr 30 13:22:53 CDT 2003


You need to start with a type="get" (or type="set") instead of the type="result".  
The results are supposed to be sent to the client by the server.

This should look like:
C: <iq type="get">...
S: <iq type="result">... ### Here the server tells you what fields it wants to have filled in
C: <iq type="set">...    ### Here you fill in the blanks it sent you
S: <iq type="result">... ### Here you find out that you're logged in (or not).

-----Original Message-----
From: Matthew Beacher [mailto:SyOp at Reigm.Com]
Sent: Wednesday, April 30, 2003 2:06 PM

I am working on a Jabber server and am having trouble getting the 
clients to respond with the log on information.  I send the following 
snipit, and the two clients I have tested with don't respond.  I guess I 
must not be sening something I should, but I don't see it in the 
protocol, any help would be great.
Thanks,
Matt
//Begin Snipit-------------

<iq type='result' from='shakespeare.lit' id='auth1'>
  <query xmlns='jabber:iq:auth'>
    <username/>
    <password/>
    <resource/>
  </query>
</iq>

//End Snippit-----------------------------------



More information about the JDev mailing list