[jdev] Implementing JEPs for clients

Julien PUYDT julien.puydt at laposte.net
Wed Jul 27 00:25:22 CDT 2005

Samuel Goto a écrit :
> I belive I have completed the IM Protocol.
>    1)  chat, etc )

You have IM but no chat!?

>    2) I've connected to the server, started the <stream>, logged and
> then sent a
> <iq type='get'
>     from='romeo at montague.net/orchard'
>     to='plays.shakespeare.lit'
>     id='info1'>
>   <query xmlns='http://jabber.org/protocol/disco#info'/>
> </iq>
>    as suggested on the JEP documentation but got no response from the
> server ... I was expecting to receive all the services avaiable, but
> got nothing ... I tought something was wrong with my server, so I
> tried on jabber.org ... no response either ... what am I donig wrong ?

Two things I notice in your xml node:
1) you probably shouldn't set the "from" yourself ;
2) the "to" should be the name of your server (or "jabber.org", if it's 
with jabber.org you tried).

I just tried <iq type='get' to='localhost' id='info0'><query 
xmlns='http://jabber.org/protocol/disco#info'/></iq> to my local server 
(hence the localhost) and received:
<iq from='localhost' to='boojum at localhost/JabberHelper' id='info0' 
category='server' type='im' name='ejabberd'/><feature 
var='http://jabber.org/protocol/stats'/><feature var='iq'/><feature 
var='jabber:iq:last'/><feature var='jabber:iq:register'/><feature 
var='jabber:iq:time'/><feature var='jabber:iq:version'/><feature 
var='presence'/><feature var='presence-invisible'/><feature 

So you see it _is_ possible to get an answer, when asking correctly ;-)



More information about the JDev mailing list