[jdev] Implementing JEPs for clients
Julien PUYDT
julien.puydt at laposte.net
Thu Jul 28 00:25:05 CDT 2005
Samuel Goto a écrit :
> I tried
>
> <iq type='get' from='ra017335 at jabber.org' to='jabber.org' id='dico'>
> <query xmlns='http://jabber.org/protocol/disco#items'/></iq>
>
> but it doesn't work !!! Now I am doing
>
> <iq type='get' from='ra017335 at jabber.org' to='jabber.org' id='dico'>
> <query xmlns='http://jabber.org/protocol/disco#items'/></iq>
>
> without the from attribute and it works !! Thanks !!!
Short explanation: don't put the 'from' yourself ; let the server do it
for you.
Long explanation: you can send a message stanza to a bare jid, but an iq
stanza must go to a full jid. The problem with your type='get' is that
its reply will have to go to 'from'... and you gave a bare jid there! If
you had set it to 'ra017335/correctresource at jabber.org', it would have
worked.
> PS I have chat ... but I don't have mu-chat ... haven't made myself clear ...
Ok.
JP
More information about the JDev
mailing list