Subject: Upgrading from AGS_XMPP to MATRIX
Hi,
I am working on evaluating an upgrade of our source code to use Matrix instead of AGS_XMPP.
So far, I've manage to Login without too much problem, but when I try to subscribe to a node, I get disconnected by the Xmpp server.
Here is the XML that is working (using AGS) :
using PubSubManager.Subscribe(pubsubUrl, mainJid, mainJid, noeud);
Here is the XML that is not working (using Matrix) :
using : PubSubManager.Subscribe(pubsubUrl, noeud, mainJid);
I'm get a OnStreamError from the Xmpp client con with the following XML :
args.Error =
Why is there no more the "from" tag in the subscribe ?
Could the extra xmlns="jabber:client" cause a problem ?
Any idea why I would receive "InvalidXml" ?
Thanks in advance for your help.
Régis
I am working on evaluating an upgrade of our source code to use Matrix instead of AGS_XMPP.
So far, I've manage to Login without too much problem, but when I try to subscribe to a node, I get disconnected by the Xmpp server.
Here is the XML that is working (using AGS) :
using PubSubManager.Subscribe(pubsubUrl, mainJid, mainJid, noeud);
- XML OUT messages <iq id="agsXMPP_19" type="set" to="pubsub.appli-c14-rec2s00.xxx.fr" from="gen1104n@appli-c14-rec2s00.xxx.fr/messages">
- <pubsub xmlns="http://jabber.org/protocol/pubsub">
- <subscribe node="/CRC/ARV/DOU/EQ01/CM_CRC_EASITEAM/Msg" jid="gen1104n@appli-c14-rec2s00.xxx.fr/messages" />
- </pubsub>
- </iq>
Here is the XML that is not working (using Matrix) :
using : PubSubManager.Subscribe(pubsubUrl, noeud, mainJid);
- XML OUT messages <iq id="MX_7" to="pubsub.appli-c14-rec2s00.xxx.fr" type="set" xmlns="jabber:client">
- <pubsub xmlns="http://jabber.org/protocol/pubsub">
- <subscribe node="/CRC/ARV/DOU/EQ01/CM_CRC_EASITEAM/Msg" jid="gen1104n@appli-c14-rec2s00.xxx.fr/messages" />
- </pubsub>
- </iq>
args.Error =
- <stream:error xmlns:stream="http://etherx.jabber.org/streams">
- <invalid-xml xmlns="urn:ietf:params:xml:ns:xmpp-streams" />
- </stream:error>
Why is there no more the "from" tag in the subscribe ?
Could the extra xmlns="jabber:client" cause a problem ?
Any idea why I would receive "InvalidXml" ?
Thanks in advance for your help.
Régis