Subject: Connection via Bosh works ... but roster does not start working
Hi Alex,
I tried to connect via Bosh to a local tigase 5.0.1 xmpp server.
The connection works fine ( xmpp-httpbind/ instead of http-bind/ for tigase server).
My problem is the roster in conjunction with the bosh I assume.
Connection using bosh there is no roster content, in my log file there is no entry for OnRosterStart / OnRosterItem / OnRosterEnd.
Connectiong without bosh all works as it should.
My code connecting with and without bosh differs in the following view lines:
all other code is identical.
Do you have an idea?
Thank you Martin
Here is the logging for connect, roster and disconnect:
I tried to connect via Bosh to a local tigase 5.0.1 xmpp server.
The connection works fine ( xmpp-httpbind/ instead of http-bind/ for tigase server).
My problem is the roster in conjunction with the bosh I assume.
Connection using bosh there is no roster content, in my log file there is no entry for OnRosterStart / OnRosterItem / OnRosterEnd.
Connectiong without bosh all works as it should.
My code connecting with and without bosh differs in the following view lines:
if (useBosh == true)
{
xmppClient.Transport = Matrix.Net.Transport.BOSH;
//xmppClient.Uri = new System.Uri("http://" + xmppClient.XmppDomain + ":5280/http-bind/"); // for ejabberd
xmppClient.Uri = new System.Uri("http://" + xmppClient.XmppDomain + ":5280/xmpp-httpbind/"); // for tigase
}
{
xmppClient.Transport = Matrix.Net.Transport.BOSH;
//xmppClient.Uri = new System.Uri("http://" + xmppClient.XmppDomain + ":5280/http-bind/"); // for ejabberd
xmppClient.Uri = new System.Uri("http://" + xmppClient.XmppDomain + ":5280/xmpp-httpbind/"); // for tigase
}
all other code is identical.
Do you have an idea?
Thank you Martin
Here is the logging for connect, roster and disconnect:
<?xml version="1.0"?>
<LoggingData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Username>maltin1</Username>
<Date>2010-07-05T15:59:40.4375+02:00</Date>
<Loggingtext>OnSendXml: ----------------------
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="yk8j072337" version="1.0" >
END OnSendXML ---------------------------------------------
Open was successful
OnReceiveXml: ------------------
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="yk8j072337" version="1.0" id="3c2baf01-2e71-4a68-8b8a-84ab9f23658e" >
END OnReceiveXML ---------------------------------------------
OnReceiveXml: ------------------
<stream:features xmlns:stream="http://etherx.jabber.org/streams">
<ver xmlns="urn:xmpp:features:rosterver" />
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
<mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
<mechanism>PLAIN</mechanism>
<mechanism>DIGEST-MD5</mechanism>
<mechanism>CRAM-MD5</mechanism>
<mechanism>ANONYMOUS</mechanism>
</mechanisms>
<register xmlns="http://jabber.org/features/iq-register" />
<auth xmlns="http://jabber.org/features/iq-auth" />
</stream:features>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
<auth mechanism="DIGEST-MD5" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InlrOGowNzIzMzciLG5vbmNlPSJSU1pHWEgzb1lTY0IwMmZ6TVpRdXNibTA4QWtyZG94QU9CZGhtSXExIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9Im1hbHRpbjEiLHJlYWxtPSJ5azhqMDcyMzM3Iixub25jZT0iUlNaR1hIM29ZU2NCMDJmek1aUXVzYm0wOEFrcmRveEFPQmRobUlxMSIsY25vbmNlPSJjMTg4ZmQxZGYzZjBkNmJlYWEyYzEyNzA2MmUzOGVmMWFhNWUwODU4ZWU0OWJmYmI2ZmY4MDFmZDNiMDEzNjI2IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL3lrOGowNzIzMzciLGNoYXJzZXQ9dXRmLTgscmVzcG9uc2U9MWQ5NTI1N2ZjZDcxMDZhMWM1ZWJmMmYxNDk1YzZhMjA=</response>
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD0xMWNiYmY3NWFhM2NhMTA0NjZhMWIxMTY2NmM2YTdhNQ==</success>
END OnReceiveXML ---------------------------------------------
OnLogin: Login is now
OnSendXml: ----------------------
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="yk8j072337" version="1.0" >
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="yk8j072337" version="1.0" id="3c2baf01-2e71-4a68-8b8a-84ab9f23658e" >
END OnReceiveXML ---------------------------------------------
OnReceiveXml: ------------------
<stream:features xmlns:stream="http://etherx.jabber.org/streams">
<ver xmlns="urn:xmpp:features:rosterver" />
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
<session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
<register xmlns="http://jabber.org/features/iq-register" />
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
</stream:features>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
<iq id="MX_1" type="set" xmlns="jabber:client">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<resource>easychat</resource>
</bind>
</iq>
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<iq type="result" to="maltin1@yk8j072337/easychat" id="MX_1" xmlns="http://jabber.org/protocol/httpbind">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<jid>maltin1@yk8j072337/easychat</jid>
</bind>
</iq>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
<presence xmlns="jabber:client">
<status></status>
<priority>5</priority>
</presence>
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<presence to="maltin1@yk8j072337" from="maltin@yk8j072337/easychat" xmlns="http://jabber.org/protocol/httpbind">
<status />
<priority>5</priority>
</presence>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<presence type="unavailable" to="maltin1@yk8j072337" from="maltin@yk8j072337/easychat" xmlns="http://jabber.org/protocol/httpbind">
<status />
<priority>5</priority>
</presence>
END OnReceiveXML ---------------------------------------------</Loggingtext>
</LoggingData>
<LoggingData xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Username>maltin1</Username>
<Date>2010-07-05T15:59:40.4375+02:00</Date>
<Loggingtext>OnSendXml: ----------------------
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="yk8j072337" version="1.0" >
END OnSendXML ---------------------------------------------
Open was successful
OnReceiveXml: ------------------
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="yk8j072337" version="1.0" id="3c2baf01-2e71-4a68-8b8a-84ab9f23658e" >
END OnReceiveXML ---------------------------------------------
OnReceiveXml: ------------------
<stream:features xmlns:stream="http://etherx.jabber.org/streams">
<ver xmlns="urn:xmpp:features:rosterver" />
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
<mechanisms xmlns="urn:ietf:params:xml:ns:xmpp-sasl">
<mechanism>PLAIN</mechanism>
<mechanism>DIGEST-MD5</mechanism>
<mechanism>CRAM-MD5</mechanism>
<mechanism>ANONYMOUS</mechanism>
</mechanisms>
<register xmlns="http://jabber.org/features/iq-register" />
<auth xmlns="http://jabber.org/features/iq-auth" />
</stream:features>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
<auth mechanism="DIGEST-MD5" xmlns="urn:ietf:params:xml:ns:xmpp-sasl" />
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<challenge xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cmVhbG09InlrOGowNzIzMzciLG5vbmNlPSJSU1pHWEgzb1lTY0IwMmZ6TVpRdXNibTA4QWtyZG94QU9CZGhtSXExIixxb3A9ImF1dGgiLGNoYXJzZXQ9dXRmLTgsYWxnb3JpdGhtPW1kNS1zZXNz</challenge>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
<response xmlns="urn:ietf:params:xml:ns:xmpp-sasl">dXNlcm5hbWU9Im1hbHRpbjEiLHJlYWxtPSJ5azhqMDcyMzM3Iixub25jZT0iUlNaR1hIM29ZU2NCMDJmek1aUXVzYm0wOEFrcmRveEFPQmRobUlxMSIsY25vbmNlPSJjMTg4ZmQxZGYzZjBkNmJlYWEyYzEyNzA2MmUzOGVmMWFhNWUwODU4ZWU0OWJmYmI2ZmY4MDFmZDNiMDEzNjI2IixuYz0wMDAwMDAwMSxxb3A9YXV0aCxkaWdlc3QtdXJpPSJ4bXBwL3lrOGowNzIzMzciLGNoYXJzZXQ9dXRmLTgscmVzcG9uc2U9MWQ5NTI1N2ZjZDcxMDZhMWM1ZWJmMmYxNDk1YzZhMjA=</response>
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<success xmlns="urn:ietf:params:xml:ns:xmpp-sasl">cnNwYXV0aD0xMWNiYmY3NWFhM2NhMTA0NjZhMWIxMTY2NmM2YTdhNQ==</success>
END OnReceiveXML ---------------------------------------------
OnLogin: Login is now
OnSendXml: ----------------------
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" to="yk8j072337" version="1.0" >
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<stream:stream xmlns:stream="http://etherx.jabber.org/streams" xmlns="jabber:client" from="yk8j072337" version="1.0" id="3c2baf01-2e71-4a68-8b8a-84ab9f23658e" >
END OnReceiveXML ---------------------------------------------
OnReceiveXml: ------------------
<stream:features xmlns:stream="http://etherx.jabber.org/streams">
<ver xmlns="urn:xmpp:features:rosterver" />
<starttls xmlns="urn:ietf:params:xml:ns:xmpp-tls" />
<session xmlns="urn:ietf:params:xml:ns:xmpp-session" />
<register xmlns="http://jabber.org/features/iq-register" />
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind" />
</stream:features>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
<iq id="MX_1" type="set" xmlns="jabber:client">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<resource>easychat</resource>
</bind>
</iq>
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<iq type="result" to="maltin1@yk8j072337/easychat" id="MX_1" xmlns="http://jabber.org/protocol/httpbind">
<bind xmlns="urn:ietf:params:xml:ns:xmpp-bind">
<jid>maltin1@yk8j072337/easychat</jid>
</bind>
</iq>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
<presence xmlns="jabber:client">
<status></status>
<priority>5</priority>
</presence>
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<presence to="maltin1@yk8j072337" from="maltin@yk8j072337/easychat" xmlns="http://jabber.org/protocol/httpbind">
<status />
<priority>5</priority>
</presence>
END OnReceiveXML ---------------------------------------------
OnSendXml: ----------------------
END OnSendXML ---------------------------------------------
OnReceiveXml: ------------------
<presence type="unavailable" to="maltin1@yk8j072337" from="maltin@yk8j072337/easychat" xmlns="http://jabber.org/protocol/httpbind">
<status />
<priority>5</priority>
</presence>
END OnReceiveXML ---------------------------------------------</Loggingtext>
</LoggingData>