cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
775
Views
1
Helpful
8
Replies

Reading notifications from xmpp console using jabberwerx

poonam.menon
Level 1
Level 1

I have developed a standalone login page that is hosted on finesse server it self. Idea is to access it from a browser outside finesse.

Finese api's are used for the integration.

I understand that inorder to capture the responses from the finese server, the notifications has to be read from the xmpp console.

For this jabberwerx was integrated.

We do not have a bosh server.We have only the finesse server. So in my case bosh server and finesse server are the same.

The httpBindingURL for jabber was given as "http://<finesse-server>:7071"

The web page is hosted in the https environment and we try to access the httpBinding url within this environment.

The jabberwerx throws error " OPTIONS https://<finesse-server>:7071/ net::ERR_SSL_PROTOCOL_ERROR " and throws a network timeout.

Then an error "closed: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>"

is thrown.

As per my understanding , the bosh connection is failing.

But I am able to recieve finese api's notifications even though I receive the Bosh connection failed error.

8 Replies 8

dekwan
Cisco Employee
Cisco Employee

Hi Poonam,

If I am not mistaken, the https port is 7443. Can you give that a try?

Thanx,

Denise

Hi Denise,

Thank you for the response.Now the bosh connection is established successfully.

The below are the errors thrown now:

"XMLHttpRequest cannot load https://<server-name>:7443/. Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'https://<server-name>' is therefore not allowed access."

Then throws a network timeout and error

"closed: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>".

Thank you,

Poonam

Hi Poonam,

Usually "No 'Access-Control-Allow-Origin' header is present on the requested resource" means that you are trying to cross domains (CORS). Finesse does not support CORS until 11.5. You mentioned that the page is on the finesse server itself though.

If it is indeed on the finesse server, you may want to try using localhost instead.

Thanx,

Denise

Dear Denise,

Thank you .

The CORS error does not come when I disable the web security of chrome .But the error comes if it is not there.We are using finese 11.5 .
Even after that it throws a network timeout and error

"closed: <stream:error xmlns:stream="http://etherx.jabber.org/streams"><service-unavailable xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>".


Regards,

Poonam

Hi Poonam,

Take a look at the NonGadgetSample code. It uses jabberwerx to establish the connection.

Thanx,

Denise

Hi Denise,

I had referenced the NonGadgetSample code while developing the application.

Thank you,

Poonam

even though 11.5 supports cors, I think it still needs to be configured.

Thank you..
Let me try doing it.

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: