[jdev] querying ban user list (MUC) XEP-0045 through Open fire server
kawaljeet singh chadha
kawaljeet_singh at rediffmail.com
Fri Apr 25 10:30:40 CDT 2008
Hello everybody
I am using Openfire server (3.5.1) and facing the problem. Can anybody help me out.
querying ban user list (MUC) XEP-0045
I am trying to query (get the ) ban user list from the open fire server, with the "admin" name space, i m getting the error as "bad request" but i am able to query (get the) ban user list when i give the "owner" namespace. and I am getting the ban user list "items" with the "owner" name space. As per specifications the "owner" namespace does not have any item stanza inside it...... can any body tell where i m getting wrong ?
Below find the exact details.
Kindly find the request/response.
ERROR SCENERIO
===============
<Sending>
<iq from='kawal at kawalxmpp.net/Home' id='JXMPP-19' to='helo at conference.kawalxmpp.net' type='get'>
<query xmlns='http://jabber.org/protocol/muc#admin'>
<item affiliation='owner'/>
</query>
</iq>
</Sending>
<Received>
<iq type="error" id="JXMPP-19" from="helo at conference.kawalxmpp.net" to="kawal at kawalxmpp.net/Home">
<query xmlns="http://jabber.org/protocol/muc#admin"/>
<error code="400" type="modify"><bad-request xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
</iq>
</Received>
SUCCESS SCENERIO
=================
<Sending>
<iq from='kawal at kawalxmpp.net/Home' id='JXMPP-26' to='helo at conference.kawalxmpp.net' type='get'>
<query xmlns='http://jabber.org/protocol/muc#owner'>
<item affiliation='owner'/>
</query>
</iq>
</Sending>
<Received>
<iq type="result" id="JXMPP-26" from="helo at conference.kawalxmpp.net" to="kawal at kawalxmpp.net/Home">
<query xmlns="http://jabber.org/protocol/muc#owner">
<item affiliation="owner" jid="ranjith at kawalxmpp.net"/>
<item affiliation="owner" jid="kawal at kawalxmpp.net" role="moderator" nick="wwwwwww"/>
</query>
</iq>
</Received>
As per specifications, the request given in Error scenerio looks fine. As there in no "item" stanza in the xmlns='http://jabber.org/protocol/muc#owner' namespace.
Thanks,
Kawaljeet.
-- kawaljeet singh chadha
Here is the test to find whether your mission on Earth is finished: if you're alive, it isn't ...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.jabber.org/jdev/attachments/20080425/f902de8c/attachment-0002.htm>
More information about the JDev
mailing list