Quick, Is my HTTP-Bind working correctly?

Hi:

I don’t think http bind works at all in version openfire:openfire_3_4_5. I am making a request body that looks like this:

<body hold=‘1’ xmlns=‘http://jabber.org/protocol/httpbind’ to=‘localhost:8080’ wait=‘300’ rid=‘162235’ newkey=‘a11b7ce9d202d8c89b1f360b62b3f0168f03edc7’ ver=‘1.6’ xmpp:xmlns=‘urn:xmpp:xbosh’ xmpp:version=‘1.0’/>

and getting an error:

java.io.IOException: Server returned HTTP response code: 400 for URL: http://localhost:8080/http-bind/

When I look in the logs I see:

2008.02.12 14:20:16 Error parsing user request. http://127.0.0.1

When I look earlier in the log, it doesn’t look like the servlet is even being initialized. Please see attached warning log.

thanks

Rich

Hi Again:

I think that I overstated my case in the warn.log, please ignore it. I had tried to substitute the old web.xml to see if that alone would serve up resources from the resources/spank directory. When I put back the web.xml, I just get 2008.02.12 14:36:57 Error parsing user request. http://127.0.0.1. I am still stuck though, trying to use http bind.

thanks

Rich

Hi Again:

So I got openfire debugging in eclipse! I come to HttpBindServlet in doPost. I trace into the parsing of my request and I see “could not determine namespace bound to attribute prefix xmpp (position: START_DOCUMENT seen …26c093’ ver=‘1.6’ xmpp:xmlns=‘urn:xmpp:xbosh’ xmpp:version=‘1.0’/>… @1:211)” is the cause of my problem. It would have been nice if the e.cause.detailMessage had of been in the log. It appears that my request body is being formed incorrectly. I was using jsjac-1.2.2 in rhino to create my request. If I ever get this to work, I am going to add a client to my source tree, and submit it. This http-bind stuff seems to be a little tricky to get going.

<body hold=‘1’

xmlns=‘http://jabber.org/protocol/httpbind’ to=‘localhost:8080’

wait=‘300’ rid=‘162235’

newkey=‘a11b7ce9d202d8c89b1f360b62b3f0168f03edc7’ ver=‘1.6’

xmpp:xmlns=‘urn:xmpp:xbosh’ xmpp:version=‘1.0’/>

Column 211 is the end of the element. I guess that I will have to get looking at the spec.

thanks

Rich

Hi Again:

I finally got my http-bind to do the Romeo and Juliet example from the specs. Turns out that I needed a fix that BenV submitted for policy-violations on non-polling connections.

I found that I could test my javascript code using rhino and John

Resig’s env.js. I attached, to that other thread, the fixes that I made to env.js as well

as a slightly fixed crypt.js from jsjac and my own javascript code for my

HttpClientConnection.js and a test script BOSH.js that does the Romeo

and Juliet scene from the specifications. Hopefully this is as helpful

to someone else as BenV’s fixes were to me.

thanks

Rich

Anyone can make it works?

Thanks in advance.

Could you pleas explain what you mean " and that you actually use the /http-bind/ alias."

Many thanks

hi i am using openfire version 3.5.2 and ijab as chat client.

I tried enabling http-bind in openfire from server settings on port 8181

tried url http://localhost:8181/http-bind/

but got error-404

HTTP ERROR: 400

BAD_REQUEST

RequestURI=/http-bind/

Powered by Jetty://

can anyone help if i am missing somethng to enable http-bind, or how can i test that

is that openfire version prob???

Not a version problem… i am using the latest version and I also have the same issue…

BOSH not working… Due to which you cant connect Ijab