I have a Jabber 9.7 that I am trying to connect to with the XML interface.
The jabberwerx.js file I have has a version number of:
jabberwerx = {
/**
* JabberWerx Version
* @property {String} version
* @type String
*/
version: '8.6.1.28927',
Is there a later version that I should be using?
I am getting XML formatting errors and failure to log in:
<stream:error xmlns:stream="http://etherx.jabber.org/streams"><xml-not-well-formed xmlns="urn:ietf:params:xml:ns:xmpp-streams"/></stream:error>
this is the Javascript code I am running:
| var arg = { |
| httpBindingURL: demoConfig.httpBindingURL, |
| successCallback: function success() { |
| jabberwerx.$("#log").text("<br/>" + "connection successful"); |
| this; //The client |
| }, |
| errorCallback: function(err) { |
| var tstr = jabberwerx.util.serializeXML(err); |
| jabberwerx.util.debug.warn(tstr); |
| jabberwerx.$("#log").text("Could not connect: " + tstr); |
| } |
| } |
| //connect to server using username, password and arguments specified above |
| client.connect(jabberwerx.$("#username").val() + "@" + demoConfig.domain, |
| jabberwerx.$("#password").val(), arg); |
-john