[jdev] Geoloc JEP interoperability

Stephen Pendleton spendleton at movsoftware.com
Sat Jan 8 13:03:35 CST 2005


I am currently implementing the GEOLOC JEP-0080 with the pubsub mechanism,
and I have run into an issue that may be caused by a misunderstanding on my
part.

The issue is that JEP-0080 doesn't have an explicit use-case for how an
Entity would subscribe to a particular users location information in Section
4. I understand that the subscription syntax can be determined using the
pubsub JEP-0060. From what I can determine, the correct syntax for a
subscription request should be similar to:

<iq type="set"
    from="sub1 at movsoftware.com/home"
    to="pubsub.jabber.org"
    id="sub1">
  <pubsub xmlns="http://jabber.org/protocol/pubsub">
    <subscribe
        node="geoloc:foobar at movsoftware.com"
        jid="foobar at movsoftware.com"/>
  </pubsub>
</iq>

Given this syntax, how can I make my implementation interoperable with other
JEP-0080 implementations? In order to do this, I would need to know what the
value for the "node" attribute in the <subscribe> stanza is supposed it be.
Are we supposed to use disco to discover this? If so, how? I think it would
be helpful to spell this out more precisely in JEP-0080.

Thanks!





More information about the JDev mailing list