[jdev] blocking and unblocking user
Richard Dobson
richard at dobson-i.net
Fri Feb 16 06:41:35 CST 2007
> Hi,
> I tried to block a user by sending the fallowing stanza.
> --
> SEND:
> -----------------------------------
> <iq type="set" id="41221701208"> <query xmlns="jabber:iq:privacy">
> <list name="Example"> <item order="3" action="deny" group="myfriends"
> jid="ganesh.kundapur at bhdhcp07392.apac.nokia.com
> <mailto:ganesh.kundapur at bhdhcp07392.apac.nokia.com>"
> xmlns="jabber:iq:privacy"> <message></message>
> </item>
> </list>
> </query>
> </iq>
It looks like you arn't sending completely valid xmpp xml, there
shouldn't really be an extra namespace declaration on the item element
as that element should already be in that namespace, there are no such
attributes of group or jid in privacy lists and you should really be
sending the empty message element as <message/> not <message></message>.
Richard
More information about the JDev
mailing list