[JDEV] Possible values for <iq>'s id attribute

David Waite dwaite at jabber.com
Tue Oct 31 02:03:22 CST 2000


What is the error code, by the way?
-David Waite

Lyndon Mark Durham wrote:


> I get a stream back from the server like the RECV stream of the <stream:stream> protocol and an <iq type=error> for the attempted authentication.
>
> Peter Saint-Andre wrote:
>
> > Hmmm, I'm wondering why you aren't getting an XML stream back from the server.
> > Usually you will see something like this on connecting:
> >
> > SENT: <stream:stream to="jabber.org" xmlns="jabber:client"
> > xmlns:stream="http://etherx.jabber.org/streams">
> >
> > RECV: <?xml version='1.0'?><stream:stream
> > xmlns:stream='http://etherx.jabber.org/streams' id='39FDF1B5' xmlns='jabber:client'
> > from='jabber.org'>
> >
> > SENT: <iq type="set" id="JCOM_86"><query
> > xmlns="jabber:iq:auth"><username>stpeter</username><digest>1c8148a1a959e8e0119680e384c3831cc8ebfe9b</digest><resource>Winjab</resource></query></iq>
> >
> > Are you getting a stream back from the server?
> >
> > Peter
> >
> > Lyndon Mark Durham wrote:
> >
> > > Thanks for your prompt response. Below s the XML that I am using. I am currently
> > > just testing some Wrapper Classes that create these different xml protocols to
> > > communicate with the jabber server. I am developing using Java-so I am basically
> > > using a socket and streams to send and recieve for testing purposes. TIA.
> > > <?xml version="1.0" encoding="UTF-8" ?>
> > > <stream:stream to="jabber.org" xmlns="jabber:client"
> > > xmlns:stream="http://etherx.jabber.org/streams">
> > > <iq type="set" id="KLMD_1">
> > > <query xmlns="jabber:iq:auth">
> > > <username>bigdog</username>
> > > <password>dogpound</password>
> > > <resource>HomePc</resource>
> > > </query>
> > > </iq>
> > > </stream:stream>
> > >
> > > Peter Saint-Andre wrote:
> > >
> > > > Different clients create IDs in different ways. For example, if you look in
> > > > the XML stream under WinJab (Preferences -> Show Debug XML) or JabberIM,
> > > > you'll see IDs of the form 'JCOM_*', where * = a number starting with 1 and
> > > > incrementing each time an ID is used. These IDs are created by the JabberCOM
> > > > library that WinJab uses. Gabber increments from 1000, I think. You'll also
> > > > see different IDs for different purposes -- they will increment separately
> > > > for different kinds of <iq/> tags or namespaces, so you might see something
> > > > like id="file_1" for the jabber:iq:oob namespace. IDs are really for use by
> > > > the client (e.g. to correlate a response with a query), I'm not sure why
> > > > you're getting <iq type='error'> responses from the server. Could you
> > > > provide some XML for us to look at?
> > > >
> > > > Hope this helps.
> > > >
> > > > Peter
> > > >
> > > > --
> > > > Peter Saint-Andre
> > > > stpeter at jabber.org
> > > >
> > > > Lyndon Mark Durham wrote:
> > > >
> > > > > Greetings Jabber Developers,
> > > > >                                              I have noticed that in the
> > > > > documenatation for authentication that the examples use an id="1" or id
> > > > > set to some uniquevalue.  Nonehteless while testing authetication using
> > > > > random id numbers the server always returns an <iq type='error'>. I have
> > > > > also noticed that the an id is sent back when sucessfully  opening an
> > > > > XML stream to communicate with a jabber server- is this returned id the
> > > > > one that the server expects when attempting to create a resource through
> > > > > IQ authentication? Or are there other id's that can be used. TIA>
> > > > >
> > > > > _______________________________________________
> > > > > jdev mailing list
> > > > > jdev at jabber.org
> > > > > http://mailman.jabber.org/listinfo/jdev
> > > >
> > > > _______________________________________________
> > > > jdev mailing list
> > > > jdev at jabber.org
> > > > http://mailman.jabber.org/listinfo/jdev
> > >
> > > _______________________________________________
> > > jdev mailing list
> > > jdev at jabber.org
> > > http://mailman.jabber.org/listinfo/jdev
> >
> > --
> > Peter Saint-Andre
> > stpeter at jabber.org
> >
> > _______________________________________________
> > jdev mailing list
> > jdev at jabber.org
> > http://mailman.jabber.org/listinfo/jdev
>
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev





More information about the JDev mailing list