[jdev] another PEP question

Daniel Dormont dan at greywallsoftware.com
Fri Aug 16 16:46:17 UTC 2013


Hi,

I'm trying to familiarize myself with PEP and am having a bit of trouble
understanding XEP-0163. I guess my question is: what's the minimum I have
to do to enable this, assuming my server supports PEP? I have my client
sending a stanza like so:

<iq type='set' from='user_2253 at mydomain/17220692211376671048176100'
xmlns='jabber:client'><pubsub
xmlns='http://jabber.org/protocol/pubsub'><publish
node='http://jabber.org/protocol/geoloc'><item><geoloc xmlns='
http://jabber.org/protocol/geoloc
'><accuracy>22000</accuracy><lat>41.xxxx</lat><lon>-72.xxxx
</lon></geoloc></item></publish></pubsub></iq></body>


The sender then gets back a response like this:

<iq xmlns="jabber:client" from="user_2253 at mydomain" to="user_2253 at domain
/17220692211376671048176100" type="result">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="http://jabber.org/protocol/geoloc">
<item id="560A3E9F9D113"></item>
</publish>
</pubsub>
</iq>

And that user's subscribed contacts don't receive anything.

XEP-0163 mentions something about sending caps in the presence, but makes
it seem like that's optional, if I want to filter the type of notifications
a particular user receives, which for the moment I don't. Am I misreading
that?

-Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.jabber.org/pipermail/jdev/attachments/20130816/baf81398/attachment.html>


More information about the JDev mailing list