Rajeev wrote:
I'm receiving the following response from the server:

<?xml version='1.0'?><stream:stream
xmlns:stream='http://etherx.jabber.org/streams' id='3ED4669B'
xmlns='jabber:client'><stream:error>Invalid
Namespace</stream:error></stream:stream>

Can someone tell me the solution to this problem?

Judging from this reply packet, you have not sent the stream header before you send your IQ packet. It is necessary to establish the stream first, before you can do anything else with it. You must send a <stream:stream> tag with appropriate attributes. It will be something like this:


<stream:stream
  to='yourjabberservername'
  xmlns='jabber:client'
  xmlns:stream='http://etherx.jabber.org/streams'>

THEN you can send the IQ packets.

-R

_______________________________________________
jdev mailing list
[EMAIL PROTECTED]
http://mailman.jabber.org/listinfo/jdev

Reply via email to