03-16-2017 05:21 AM
I have downloaded an C# XMPP library to get User Notification. But I am not getting any Notification.
Code:
XmppClient xmppClient = new XmppClient();
string jidId = "Username@XmppDomain";
Jid jid = new Jid(jidId);
xmppClient.XmppDomain = "XmppDomain";
xmppClient.Password = "pwd";
xmppClient.Username = "Username";
xmppClient.Transport = Matrix.Net.Transport.Bosh;
xmppClient.Uri = new System.Uri("https:/<FQDN>:7443/http-bind");
xmppClient.Open();
Also I tried to access the URL : https:/<FQDN>:7443/http-bind from my Browser but it was throwing error 400: Bad Request.
Can this be the cause?
03-16-2017 05:32 AM
Can you please specify the Library you are using for capturing XMPP events?
03-16-2017 05:36 AM
I am trying Matrix XMPP library downloaded from https://xmpp.org/
03-16-2017 09:47 AM
Hi Ankita,
I don't know if this is a typo with your forum post, but I thought I would point it out just in case it isn't.
1. In the BOSH example from the Matrix site, I see that the word BOSH is in all caps while your code shows Bosh
xmppClient.Transport = Matrix.Net.Transport.BOSH;
2. You are missing a / in the uri: xmppClient.Uri = new System.Uri("https:/<FQDN>:7443/http-bind");
Thanx,
Denise
03-17-2017 02:37 AM
Thanks Denise
I tried the changes but still getting same error:
{Matrix.XmppStreamException: Unable to send data. The XMPP Stream is inactive.}
03-17-2017 09:54 AM
Hi Ankita,
I haven't used the Matrix XMPP library before. I believe other developers have, so maybe they can give some suggestions.
Is your application web/browser based or a thick client? Typically if you are writing a thick client application, you would use XMPP. If your application is browser based, you would use BOSH. Here is an explanation about the difference: https://www.quora.com/What-is-the-difference-between-XMPP-and-BOSH
Thanx,
Denise
03-20-2017 01:27 AM
Thanks for the link.
The application is thick client and we are looking for some XMPP library suitable for Finesse CTI Integration
03-20-2017 11:01 AM
It seems like other developers have used the Matrix XMPP library to integrate with Finesse. My assumption is that they probably used it via XMPP rather than BOSH. Hopefully those who have used this library can give tips.
Thanx,
Denise
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide