[Standards] Proposed XMPP Extension: Service Discovery Notifications

Joe Hildebrand hildjj at gmail.com
Fri Jan 4 12:44:54 CST 2008


On Jan 3, 2008, at 10:02 PM, XMPP Extensions Editor wrote:

> Title: Service Discovery Notifications
>
> Abstract: This document specifies a way to request and receive  
> notifications regarding service discovery items.
>
> URL: http://www.xmpp.org/extensions/inbox/disco-notifications.html

If we stay with the explicit approach, I think I would prefer:

<iq type='get'
     from='bill at shakespeare.lit/globe'
     to='chat.shakespeare.lit'
     id='items1'>
   <query xmlns='http://jabber.org/protocol/disco#items'>
     <subscribe xmlns='http://jabber.org/protocol/pubsub'/>
   </query>
</iq>

Where the JID was implicit from the from address, and the node was  
implicit from the disco query node.  As such, the JID in the  
subscription tag and (potentially) the notification seem superfluous.

I think the subscription tag MUST include a subid, and we should  
specify the unsubscribe case, as well, with the example using the subid.

The node in the notification should be the node of the disco request,  
not disco#items.

-- 
Joe Hildebrand



More information about the Standards mailing list