Subject: Couldn't create nodes and subscriptions on ejabberd through MatriX
I am trying to create a node and subscribe a user to an existing node using MatriX, but couldn't make it work. I could see the request stanza's being logged in the ejabberd logs, but for some reason ejabberd is not responding as expected. I couldn't figure out whether the problem lies in the MatriX or at the ejabberd. I have spent lot of time working on this, Could someone please help me on this.?
Below are the lines of code I used to create / subscribe to a node (I read from Alex post, that 'from' is not needed)
PubSubManager mgr = new PubSubManager(xmppClient);
mgr.CreateNode(new Jid("pubsub.platform"), "topic1", new EventHandler<IqEventArgs>(createNodeResponse));
mgr.Subscribe(new Jid("pubsub.localhost"), "topic2", new Jid("user2@platform"), new EventHandler<IqEventArgs>(subscribeNodeResponse))
Below are the incoming data for each of these in the ejabberd log
Thanks!
Below are the lines of code I used to create / subscribe to a node (I read from Alex post, that 'from' is not needed)
PubSubManager mgr = new PubSubManager(xmppClient);
mgr.CreateNode(new Jid("pubsub.platform"), "topic1", new EventHandler<IqEventArgs>(createNodeResponse));
mgr.Subscribe(new Jid("pubsub.localhost"), "topic2", new Jid("user2@platform"), new EventHandler<IqEventArgs>(subscribeNodeResponse))
Below are the incoming data for each of these in the ejabberd log
- 08:25:32.031 [debug] --- incoming data ---
- <body xmlns:xmpp="urn:xmpp:xbosh" xmlns:stream="http://etherx.jabber.org/streams" rid="578121871" key="5a86b6a7c9fd159296f0d2bcd793c93e8a6ca478" sid="699b4c805f3686161143866d0327217f5d58e4b9" to="platform" xmpp:restart="true" xmlns="http://jabber.org/protocol/httpbind"><iq id="MX_1" type="set" to="pubsub.platform" xmlns="jabber:client"><pubsub xmlns="http://jabber.org/protocol/pubsub"><create node="topic1" /><configure /></pubsub></iq></body>
- 10:45:35.821 [debug] --- incoming data ---
- <body xmlns:xmpp="urn:xmpp:xbosh" xmlns:stream="http://etherx.jabber.org/streams" rid="1233457989" key="b09b83f1e6e997d09ced45a0c8ba4a36f12b2950" sid="04a49671fa14e9de29d45400e80c6de4f70c4d0d" to="platform" xmpp:restart="true" xmlns="http://jabber.org/protocol/httpbind"><iq id="MX_1" to="pubsub.localhost" type="set" xmlns="jabber:client"><pubsub xmlns="http://jabber.org/protocol/pubsub"><subscribe node="topic2" jid="user2@platform" /></pubsub></iq></body>
Thanks!