I'm currently having trouble trying to get accounts to subscribe to custom PEPs. I have two accounts
Account #1 sends:
<iq type="set" id="aae9a" >
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="http://jabber.org/protocol/test" >
<item id="test-id" >
<test xmlns="http://jabber.org/protocol/test">
<testnode/>
</test>
</item>
</publish>
<configure/>
</pubsub>
</iq>
Response from Server:
<iq from="account1@server" type="result" to="account1@server/psiclient" id="aae9a" >
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<publish node="http://jabber.org/protocol/test" >
<item id="test-id" />
</publish>
</pubsub>
</iq>
Now, I'm trying to get the second account to subscribe to that PEP
Account #2 sends:
<iq type='set'
id='sub1'>
<pubsub xmlns='http://jabber.org/protocol/pubsub'>
<subscribe
node='http://jabber.org/protocol/test'
jid='account1@server'/>
</pubsub>
</iq>
Error Response from Server:
<iq from="account2@server" type="error" to="account2@server/psiclient" id="sub1" >
<error type="cancel" code="404" >
<item-not-found xmlns="urn:ietf:params:xml:ns:xmpp-stanzas"/>
</error>
<pubsub xmlns="http://jabber.org/protocol/pubsub">
<subscribe node="http://jabber.org/protocol/test" jid="account1@server" />
</pubsub>
</iq>
Is there anything I'm missing in particular?