Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
naveen4526 #1
Member since Oct 2015 · 3 posts
Group memberships: Members
Show profile · Link to this post
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

  1. 08:25:32.031 [debug] --- incoming data ---
  2. <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>
  3.  
  4. 10:45:35.821 [debug] --- incoming data ---
  5. <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!
This post was edited on 2015-10-06, 18:11 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
can you please get the logs directly from MatriX and post them here?
see also:
http://www.ag-software.net/matrix-xmpp-sdk/matrix-develope…

Have you looked at the pubsub from in the MiniClient? It should work fine with an ejabberd server.

Alex
Avatar
naveen4526 #3
Member since Oct 2015 · 3 posts
Group memberships: Members
Show profile · Link to this post
Thanks Alex for your prompt response.
Avatar
naveen4526 #4
Member since Oct 2015 · 3 posts
Group memberships: Members
Show profile · Link to this post
Thank you very much Alex. I was able to create nodes using MiniClient
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS