Unable login to openfire using httpbinding

Hi,

I am unsuccessful in login attempt to openfire using jabberwerx lib, which is a java scrip library. I have a couple of users configrued in Openfire server, that installed on the same Linux machine as my web app. Added script to one of the jsp’s to login to openfire via httpbinding. I have enabled HttpBinding in openfire on port 7713 (no SSL) ; verified that I can login to openfire to the same users via java library (not java script).

I have also were able to successfully login using Rest Client with the parameters below:

It is POST request to URL: http://10.86.141.242:7713/http-bind/

with Body:

<body content='text/xml; charset=utf-8'

from=‘admin@10.86.141.242’

hold=‘1’

rid=‘1573741820’

to=‘10.86.141.242’

route=‘xmpp:10.86.141.242:7713’

ver=‘1.7’

wait=‘60’

ack=‘1’

xml:lang=‘en’

  xmlns='[http://jabber.org/protocol/httpbind'/](http://jabber.org/protocol/httpbind'/)>

It returns 200 OK with the following response:


<body xmlns="http://jabber.org/protocol/httpbind" xmlns:stream="http://etherx.jabber.org/streams" authid="5867970c"

sid=“5867970c” secure=“true” requests=“2” inactivity=“30” polling=“5” wait=“60” hold=“1” ack=“1573741820”

maxpause=“300” ver=“1.6”>stream:features

DIGEST-MD5PLAINANONYMOU S

CRAM-MD5

zlib

</stream:features>


But when I try to do the same using jabberwex in my jsp with very simple java script code, I get my error call back called with the following message from openfire:

“<stream:error xmlns:stream=“http://etherx.jabber.org/streams”></stream:error>”

Any tips on what I might be doing incorrectly ? I have not set up any crossdomain custom files.

Appreciate any help