[JDEV] Re: Jabber-client:unable to authenticate user
Rajeev
rajeevt at cressanda.com
Wed May 28 05:16:39 CDT 2003
Thanks Pete i sent an IQ get to the sever with just the username but i still
received the same error from the server.
......<stream:error>Invalid Namespace</stream:error></stream>
I'm unable to figure out the reason for Invalid Namespace....
Rajeev
"Peter Mottram" <peter at sysnix.com> wrote in message
news:Pine.LNX.4.44.0305281145090.23042-100000 at r6.sysnix.com...
> You need to send an IQ get to the server 1st with just the username
> included & then once you receive the IQ result from the server you can
> send an IQ set to authenticate. Have a look at JEP-0078....
>
> http://www.jabber.org/jeps/jep-0078.html
>
> R.
> PeteM
>
> On Wed, 28 May 2003, Rajeev wrote:
>
> > Hi all
> >
> > I'm working on a jabber client using java. I've already registered a
user on
> > the
> > jabberd-1.4.2 server. Now if i try to authenticate the user by sending
the
> > following xml programatically
> >
> > <iq id='auth' type='set'>
> > <query xmlns='jabber:iq:auth'>
> > <username>userName</username>
> > <password>userPassword</password>
> > <resource>some IP address</resource>
> > </query>
> > </iq>
> >
> > 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?
> >
> > Thanking in advance
> > Rajeev
> >
> >
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
> >
More information about the JDev
mailing list