Not logged in. · Lost password · Register
Forum: MatriX RSS
Page: previous  1  2 
Avatar
robomotic #16
Member since Jun 2014 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 8596
Oky I managed to make it to work on ejabberd.
For the OpenFire I am going to see what sort of XML stanzas are produced with their Smack libraries and then hopefully I can reproduce the commands on the matrix library.
I didn't imagine that such a standard protocol had different implementations!
Avatar
Alex #17
Member since Feb 2003 · 4295 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
some servers don't like the payload which you sent:

  1. <item>TEST</item>
The payload is TEST here. Some server wants a full Xml document as the payload.

this should work instead:
  1. <item><foo>TEST</foo></item>

Alex
Avatar
robomotic #18
Member since Jun 2014 · 8 posts
Group memberships: Members
Show profile · Link to this post
In reply to post ID 8596
Just to publish my last results, the pubsub works well now with eJabberd.
Avatar
Alex #19
Member since Feb 2003 · 4295 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
great to hear.

But as I said it shoud also work with any other server when the payload is a complete Xml document.
Here is a code snippet from the latest MiniClient example which published a Xml doc:

  1. private void publishToolStripMenuItem_Click(object sender, EventArgs e)
  2. {
  3.     var payload = "test";
  4.  
  5.     var item = new Matrix.Xmpp.PubSub.Item();
  6.     item.Add(new XmppXElement("mynamespace", "foo"){Value = payload});
  7.  
  8.     var pNode = treeNodes.SelectedNode as DiscoNode;
  9.     if (pNode != null)
  10.     {
  11.         _pm.PublishItem(cboService.Text,
  12.                         pNode.Node,
  13.                         item,
  14.                         PublishResult);
  15.     }
  16. }

The (hierarchical) structure of the node name syntax is often server specific. More details about this should be in the user manual of the servers.

Alex
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:
Page: previous  1  2 
Forum: MatriX RSS