[JDEV] J2me client receiving xml problem
Jonathan Augenstine
jaugenstine at jambotech.com
Tue Apr 23 08:45:24 CDT 2002
Are you sure that you are authenticating properly. I ran into a similar
problem when I first with started Jabber thinking that I had
authenticated but was actually not. You may be smarter than I am and
are not making this mistake, but I know that I did not initially realize
it was a two step process and was confused for a little while. I was
only sending one packet getting a successful return and thinking that I
was finished with authentication. Nothing else worked.
You first send an iq authenticate packet of type=get and receive a
response of type=result. This packet contains the info required for
authentication. You then send an iq auth packet of type=set with the
username/password and you should receive a response of type=result. You
are now authenticated.
Good luck.
-----Original Message-----
From: lolly [mailto:lalitas at rediffmail.com]
Sent: Tuesday, April 23, 2002 3:12 AM
To: jdev at jabber.org
Subject: [JDEV] J2me client receiving xml problem
hi all
i have developed a j2me client similar to the one at
alsutton's site. am using his xmlparser to parse the xml packets
that i receive from the stream created from the connection to the
jabber server. my problem is that after i send <stream:stream....>
it gives me in reply
<?xml.....> after that i send the authentication xml for which i
get the packet <iq type="result" id="login">
once i am authenticated i send request for agents
but i receive no reply
i've tried all possible combinations of sending
roster,agents,presence packets.....but still no reply
is there a problem with the xmlparser ?
has anyone worked with the source at alsutton.com
plz help
_________________________________________________________
Click below to visit monsterindia.com and review jobs in India or
Abroad
http://monsterindia.rediff.com/jobs
_______________________________________________
jdev mailing list
jdev at jabber.org
http://mailman.jabber.org/listinfo/jdev
More information about the JDev
mailing list