cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1361
Views
0
Helpful
7
Replies

Unable to get User Notification using XMPP Library

ankita.saxena
Level 1
Level 1

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?

7 Replies 7

kashif.sohail
Level 1
Level 1

Can you please specify the Library you are using for capturing XMPP events?

I am trying  Matrix XMPP library downloaded from https://xmpp.org/

dekwan
Cisco Employee
Cisco Employee

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

Thanks Denise

I tried the changes but still getting same error:

{Matrix.XmppStreamException: Unable to send data. The XMPP Stream is inactive.}

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

Thanks for the link.

The application is thick client and we are looking for some XMPP library suitable for Finesse CTI Integration

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