[jdev] Best ways for a JID to advertise what services it uses?

Stephen Pendleton pendleto at movsoftware.com
Wed Sep 22 08:01:13 CST 2010



-----Original Message-----
From: jdev-bounces at jabber.org [mailto:jdev-bounces at jabber.org] On Behalf Of
Justin Karneges
Sent: Tuesday, September 21, 2010 4:24 PM
To: Jabber/XMPP software development list
Subject: Re: [jdev] Best ways for a JID to advertise what services it uses?


>Something like this might help:

><iq type="get" to="user at example.com" id="1">
>  <query xmlns="http://jabber.org/protocol/delegate"/>
></iq>

><iq type="result" from="user at example.com" id="1">
>  <query xmlns="http://jabber.org/protocol/delegate">
>    <service type="pubsub" jid="users.freepubsubforall.com"/>
>    <service type="livefyre" jid="services.livefyre.com"/>
>  </query>
></iq>

>Just tossing it out as a rough idea to start from.

How would that work, for example, for discovering the microblog node that a
jid uses? Would a client then a form a second query that would return the
location of the microblog node?

I think it would be helpful to have the "well known" pubsub nodes registered
(like http://xmpp.org/registrar/nodes.html) and I can then do a query after
I have discovered the pubsub service, using your method above, like:

<iq type='set'
    from='francisco at denmark.lit/barracks'
    to='users.freepubsubforall.com'
    id='sub1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <subscribe
        node='urn:xmpp:microblog:0'
        jid='francisco at denmark.lit'/>
  </pubsub>
</iq>




More information about the JDev mailing list