[Standards] XEP-0060: return ItemID in IQ-result?

Peter Saint-Andre stpeter at stpeter.im
Wed May 14 22:50:09 UTC 2008

When you publish an item to a pubsub node and the ItemID is generated by
the service, you don't know what the ItemID is unless you subscribe to
the node (which I grant is typical for publishers) and you can correctly
correlate the payload with what you published. While the IQ-result tells
 you that the item has been published, you don't know necessarily the
ItemID. It seems reasonable that the service MAY return the ItemID to
you, as in the following flow:

<iq type='set'
    from='hamlet at denmark.lit/blogbot'
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <publish node='princely_musings'>
        <entry xmlns='http://www.w3.org/2005/Atom'>
To be, or not to be: that is the question:
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune,
Or to take arms against a sea of troubles,
And by opposing end them?
          <link rel='alternate' type='text/html'

<iq type='result'
    to='hamlet at denmark.lit/blogbot'
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <publish node='princely_musings'>
      <item id='ae890ac52d0df67ed7cfdf51b644e901'/>

Is this needed or desirable? This would not be required, but optional
for the service.


Peter Saint-Andre

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 7338 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://mail.jabber.org/pipermail/standards/attachments/20080514/4164168c/attachment.bin>

More information about the Standards mailing list