[JDEV] A Protocol Dev. Carification
Matthew Beacher
SyOp at Reigm.Com
Wed Apr 30 15:38:58 CDT 2003
Mabey I wasn't clear, I am writting a server. I have encluded a log
from Exidus, which I am using for one fase of testing.
SENT: <stream:stream to="localhost" xmlns="jabber:client"
xmlns:stream="http://etherx.jabber.org/streams">
RECV: <?xml version='1.0'?><stream:stream xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams'>
SENT: <iq id="jcl_4" type="get"><query
xmlns="jabber:iq:auth"><username>SyOp at LOCALRICA</username></query></iq>
RECV: <iq type='result' from='LOCALHOST' id='auth1'><query
xmlns='jabber:iq:auth'><username/><password/><resource/></query></iq>
At this point the client fails to respond. My sever application (Rica)
is sending the RECV lines, and exidus is sending the SENT lines.
Tom Coffin wrote:
>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-----------------------------------
>_______________________________________________
>jdev mailing list
>jdev at jabber.org
>http://mailman.jabber.org/listinfo/jdev
>
>
>
>
More information about the JDev
mailing list