BOSH requests are different then requests which are generated by your browser, so I think you can’t test your BOSH server by simply browsing to the URL. Openfire with http-bind works for me, but I get the same error message when I try to browse with my browser to the URL.
I wanted to say that you can’t test http-bind by simply browsing to the URL. I’m developing with the BOSH implementation of Openfire. If you want only test your http-bind connection I attached a simple app which tests the http binding of an XMPP service and prints out the debug messages.
Call it with:
$ java -jar bosh-test.jar -u http://server:port/http-bind/ -x server
D:\html\ijab2>java -jar bosh-test.jar -u http://jappod.com:7070/http-bind -x jap pod.com
SENT:
Feb 14, 2010 11:40:16 AM com.kenai.jbosh.BOSHClient processExchange
WARNING: Could not obtain response
com.kenai.jbosh.BOSHException: Could not parse body
at com.kenai.jbosh.BodyParserXmlPull.parse(BodyParserXmlPull.java:130)
at com.kenai.jbosh.StaticBody.fromString(StaticBody.java:114)
at com.kenai.jbosh.XLightWebResponse.awaitResponse(XLightWebResponse.jav
a:195)
at com.kenai.jbosh.XLightWebResponse.getBody(XLightWebResponse.java:166)
at com.kenai.jbosh.BOSHClient.processExchange(BOSHClient.java:796)
at com.kenai.jbosh.BOSHClient.processMessages(BOSHClient.java:745)
at com.kenai.jbosh.BOSHClient.access$000(BOSHClient.java:93)
at com.kenai.jbosh.BOSHClient$1.run(BOSHClient.java:163)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.EOFException: input contained no data
at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2890)
at org.xmlpull.mxp1.MXParser.more(MXParser.java:2928)
at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1366)
at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1351)
at org.xmlpull.mxp1.MXParser.next(MXParser.java:1061)
at com.kenai.jbosh.BodyParserXmlPull.parse(BodyParserXmlPull.java:76)
… 8 more
Not connected to http://localhost:7070/http-bind/
i’ll try your step but still got an error like above… what’s wrong…