0
votes

Anybody please clarify whether gtalk supports PEP(Personal Eventing Protocol- PubSub mechanism). Because in my WP7 app getting error as feature not implemented.

Example:

<?xml version="1.0" encoding="UTF-8"?>
<iq from="[email protected]/phoneFC07C39F" id="dcc3e8ea-5a40-4401-8843-9db4dd682b78" type="set">
<pubsub xmlns="http://jabber.org/protocol/pubsub">
    <publish node="http://jabber.org/protocol/geoloc">
        <item id="lastlocation">
            <geoloc xmlns="http://jabber.org/protocol/geoloc">
                <lat>47.64483</lat>
                <lon>-122.141197</lon>
                <acurracy>0</acurracy>
                <timestamp>2012-09-03T18:52:24.592+05:30</timestamp>
            </geoloc>
        </item>
    </publish>
</pubsub>

1
Please mention why down votesShashi

1 Answers

1
votes

To determine if GTALK supports PEP or not, you need to refer Determining Support section of Personal Eventing Protocol (XEP-0163). As per the specs I sent following stanza to my own bare jid:

<iq xmlns="jabber:client" type="get" from="[email protected]/jaxl#0482f1a54bd2b72a91a384663b1f14ba" to="[email protected]" id="3">
    <query xmlns="http://jabber.org/protocol/disco#info"></query>
</iq>

and received following response stanza:

<iq to="[email protected]/jaxl#0482f1a54bd2b72a91a384663b1f14ba" from="[email protected]" id="3" type="result">
    <query xmlns="http://jabber.org/protocol/disco#info">
        <identity category="account" type="registered" name="Google Talk User Account"/>
        <feature var="http://jabber.org/protocol/disco#info"/>
        <feature var="http://jabber.org/protocol/disco#items"/>
        <feature var="msgoffline"/>
    </query>
</iq>

which indicates google-talk doesn't support PEP since server didn't return an identity of pubsub/pep on behalf of the account.