[jdev] Cannot send stanza
Sergej Andrejev
sandrejev at gmail.com
Wed Apr 18 05:52:10 CDT 2007
Hi guys,
I'm trying to write a client which will connect to jabber server over
TLS. For so far I have connected to server, authorized, but the
problem is that I cannot send any stanza.
C:
<stream:stream to='jabber.org' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
S:
<?xml version='1.0'?><stream:stream xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' id='1619528249'
from='jabber.org' version='1.0'
xml:lang='en'><stream:features><starttls
xmlns='urn:ietf:params:xml:ns:xmpp-tls'/><compression xmlns='http://
jabber.org/features/compress'><method>zlib</method></
compression><mechanisms xmlns='urn:ietf:params:xml:ns:xmpp-
sasl'><mechanism>DIGEST-MD5</mechanism><mechanism>PLAIN</mechanism></
mechanisms><register xmlns='http://jabber.org/features/iq-register'/
></stream:features>
C:
<starttls xmlns='urn:ietf:params:xml:ns:xmpp-tls' />
S:
<proceed xmlns='urn:ietf:params:xml:ns:xmpp-tls'/>
C:
<stream:stream to='jabber.org' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
S:
<?xml version='1.0'?><stream:stream xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' id='3304439314'
from='jabber.org' version='1.0'
xml:lang='en'><stream:features><mechanisms
xmlns='urn:ietf:params:xml:ns:xmpp-sasl'><mechanism>DIGEST-MD5</
mechanism><mechanism>PLAIN</mechanism></mechanisms><register
xmlns='http://jabber.org/features/iq-register'/></stream:features>
C:
<auth xmlns="urn:ietf:params:xml:ns:xmpp-sasl"
mechanism="PLAIN">AHBLALBALBAwMjA=</auth>
S:
<success xmlns='urn:ietf:params:xml:ns:xmpp-sasl'/>
C:
<stream:stream to='jabber.org' xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' version='1.0'>
S:
<?xml version='1.0'?><stream:stream xmlns='jabber:client'
xmlns:stream='http://etherx.jabber.org/streams' id='2997768092'
from='jabber.org' version='1.0' xml:lang='en'><stream:features><bind
xmlns='urn:ietf:params:xml:ns:xmpp-bind'/><session
xmlns='urn:ietf:params:xml:ns:xmpp-session'/></stream:features>
C:
<iq type="set" id="10001"><bind xmlns="urn:ietf:params:xml:ns:xmpp-
bind"><resource>Gaim</resource></bind></iq>
S:
<iq id='10001' type='result'><bind xmlns='urn:ietf:params:xml:ns:xmpp-
bind'><jid>sandrejev at jabber.org/Gaim</jid></bind></iq>
... After bind i cannot send no type of stanza. Anything I send just
goes there with no response. I don't get it am i doing something
wrong. As you can see I have connected and authorized successfully
More information about the JDev
mailing list