[JDEV] Namespace usage on server

Fabrice DESRE - FT.BD/FTRD/DMI/GRI fabrice.desre at francetelecom.com
Wed Oct 3 08:16:25 CDT 2001


  Hello,

 Writing my own client, I found something
strange in the open source server : if I 
initiate the session with :
<?xml version='1.0'?>
<stream:stream to='jabber' 
               xmlns:stream='http://etherx.jabber.org/streams'
               xmlns='jabber:client'>
   <iq id='A3' type='get'>
       <query xmlns='jabber:iq:auth'>
          <username>fabrice</username>
       </query>
   </iq>
</stream:stream>

 everything works fine, but if I send :

<?xml version='1.0'?>
<stream:stream to='jabber' 
               xmlns:stream='http://etherx.jabber.org/streams'>
   <iq xmlns='jabber:client' id='A3' type='get'>
       <query xmlns='jabber:iq:auth'>
          <username>fabrice</username>
       </query>
   </iq>
</stream:stream>

then the server sends me this error and closes the connection :
<?xml version='1.0'?>
<stream:stream xmlns:stream='http://etherx.jabber.org/streams' 
    id='3BBB0DE3' 
    xmlns='jabber:client' 
    from='jabber'>
   <stream:error>Invalid Namespace</stream:error>
</stream:stream>

 I don't understand the rationale of this error message. My first XML
stream is perfectly valid and the QName of the elements are the same
in both cases.
I didn't find any mention of this requirement in the docs so I guess 
it's a bug in the server ?

	Fabrice
-- 
Fabrice Desré - France Telecom R&D/DMI/GRI
Tel: +(33) 2 96 05 31 43
Fax: +(33) 2 96 05 32 86



More information about the JDev mailing list