hi,
        I am relatively new 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 xcp server installed with http-bind enabled. 

For the implementation I send a session initiating <body/> stream like this:

SENDING >>>>

<body to="myjabber.com" xml:lang="en" secure="true" 
xmlns:xmpp="urn:xmpp:xbosh" xmlns="http://jabber.org/protocol/httpbind"; 
ack="1" content="text/xml; charset=utf-8" wait="60" rid="1027790" 
hold="1" version="1.0" />


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

<body authid='538BC18EA' inactivity='60' polling='5' requests='2' 
secure='true' sid='538BC18EA' wait='30' 
xmlns='http://jabber.org/protocol/httpbind' 
xmlns:stream='http://etherx.jabber.org/streams'><stream:features/></body>

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

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 >>>>

<body sid="538BC18EA" xmlns="http://jabber.org/protocol/httpbind"; 
rid="1027791" />


but I get no response. 

The only response from server is get is 

RECIEVE <<<<<

<body xmlns='http://jabber.org/protocol/httpbind' 
xmlns:stream='http://etherx.jabber.org/streams'/>

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?


regards,

Sumit

Reply via email to