Hi,

I am relatively to bosh implementation. I am trying to include bosh
support to my xmpp client library however I am facing problem in the
initial few steps itself.

I have a local ejabberd server installed with http-bind enabled.
Opening http://localhost:5280/http-bind/ in the browser prints this on
the screen:

Code:
--------------------
    
  Ejabberd mod_http_bind v1.2
  An implementation of XMPP over BOSH (XEP-0206)
  0 sessions found.
  Sponsored by mabber.
  
--------------------


Now for implementation I send a session initiating <body/> stream like
this:
SENDING >>>>

Code:
--------------------
    
  <body content='text/xml; charset=utf-8' hold='1' 
xmlns='http://jabber.org/protocol/httpbind' to='localhost' wait='300' rid='1' 
route='xmpp:localhost:5222' secure='true' 
newkey='9aedc4ab3c3299150a1bbbd55bd0f9f01ed7271a' ver='1.6' 
xmlns:xmpp='urn:xmpp:xbosh' xmpp:version='1.6'/>
  
--------------------


In reply I get this from the server:
RECEIVE <<<<

Code:
--------------------
    
  <body xmlns='http://jabber.org/protocol/httpbind' 
sid='a0c87e0f428ad648915d41d4bcdb5f3f462af7bb' wait='300' requests='2' 
inactivity='30' maxpause='120' polling='2' ver='1.6' from='localhost' 
secure='true' authid='493072058' xmlns:xmpp='urn:xmpp:xbosh' 
xmlns:stream='http://etherx.jabber.org/streams'/>
  
--------------------


Now as per http://xmpp.org/extensions/xep-0206.html :

Code:
--------------------
    
  -If no <stream:features/> element is included in the connection manager's 
session creation response, then the client SHOULD send empty request elements 
until it receives a response containing a <stream:features/> element.-
  
--------------------


Hence I am trying to send:
SENDING >>>>

Code:
--------------------
    
  <body rid='2' sid='a0c87e0f428ad648915d41d4bcdb5f3f462af7bb'/>
  
--------------------


but I get no response. Am I sending a wrong <body/> stream the second
time round? Can someone if possible paste a series of streams which are
sent to and received from the bosh server?

Thanks in advance,
Abhinav


-- 
imoracle

------------------------------------
JAXL - Jabber XMPP Library in PHP
http://code.google.com/p/jaxl
------------------------------------
------------------------------------------------------------------------
imoracle's Profile: http://www.jabberforum.org/member.php?userid=17412
View this thread: http://www.jabberforum.org/showthread.php?t=1426

Reply via email to