[jdev] IQ request response query

Vinod Panicker vinod.p at gmail.com
Tue Dec 6 04:56:22 CST 2005


On 11/11/05, Vinod Panicker <vinod.p at gmail.com> wrote:
> Sorry!  The stanza should have been like this -
>
>   <iq from='juliet at example.com/balcony' type='set' id='roster_4'>
>     <query xmlns='jabber:iq:roster'>
>       <item jid='abc at example.com' subscription='remove'/>
>       <item jid='def at example.com' subscription='remove'/>
>       <item jid='ghi at example.com' subscription='remove'/>
>     </query>
>   </iq>
>
>
> On 11/10/05, Jacek Konieczny <jajcus at jajcus.net> wrote:
> > On Thu, Nov 10, 2005 at 04:00:47PM +0530, Vinod Panicker wrote:
> > > Consider this scenario -
> > >
> > > Client sends IQ stanza for removing three roster items from the roster
> > > of juliet at example.com .
> > >
> > >    <iq from='juliet at example.com/balcony' type='set' id='roster_4'>
> > >      <query xmlns='jabber:iq:roster'>
> > >        <item jid='abc at example.com' subscription='remove'/>
> > >      </query>
> > >      <query xmlns='jabber:iq:roster'>
> > >        <item jid='def at example.com' subscription='remove'/>
> > >      </query>
> > >      <query xmlns='jabber:iq:roster'>
> > >        <item jid='ghi at example.com' subscription='remove'/>
> > >      </query>
> > >    </iq>
> >
> > This is not a legal XMPP stanza. <iq/> stanza may contain only _one_
> > payload element.

No closure on this, so what I'm doing is sending separate error and
success stanzas to each of the items in the single iq stanza.

Regards,
Vinod.



More information about the JDev mailing list