我们如何通过strophe在openfire中注册用户?我在openfire.it中使用注册插件工作正常。我正在使用“test”用户名。
但是,当我尝试连接openfire fron custom.js之类的时候。
var BOSH_SERVICE = '/xmpp-httpbind'
connection = new Strophe.Connection(BOSH_SERVICE);
log(connection);
connection.rawInput = rawInput;
connection.rawOutput = rawOutput;
connection.connect('admin','admin',onConnect);
响应
Object { service="/xmpp-httpbind", rid=4209744652, do_session=false, more...} gab.js (line 6)
Strophe is connecting. gab.js (line 6)
SENT: <body rid='4209744652' xmlns='http://jabber.org/protocol/httpbind' to='admin' xml:lang='en' wait='60' hold='1' content='text/xml; charset=utf-8' ver='1.6' xmpp:version='1.0' xmlns:xmpp='urn:xmpp:xbosh'/>gab.js (line 6)
"NetworkError: 500 Internal Server Error - http://localhost/xmpp-httpbind"
Error: 16, ioError, An error occured preventing completion of the request.....throwUnhandledError=function(O){throw new B.Error(O)};G.error=function(R,P,Q,O)...