[JDEV] Question/Problem with Yahoo account registration
Mitchell Nguyen
mitch at meca.com
Thu May 31 16:16:05 CDT 2001
Hello,
I'm trying to develop a Java object that interacts with the Jabber server.
I am having a problem with registering my Yahoo account. I am getting
a "Service Unavailable" error. This is the XML returned by the Jabber
server:
<iq id='Create New Account' type='error' from='mitch2 at mecajab.meca.com'
to='mitch2 at mecajab.meca.com/Meca'><query
xmlns='jabber:iq:register'><username>mitchnguyen18 at yahoo.meca.com</username><password>foo</password><resource>Meca</resource></query><error
code='503'>Service Unavailable</error></iq>
I authenticated with my Jabber server 'mecajab.meca.com' as the Jabber
user 'mitch2',
then tried registering 'mitchnguyen18 at yahoo.meca.com'. IS THIS CORRECT?
The Yahoo transport 'yahoo.meca.com' runs on the same machine as the Jabber
server 'mecajab.meca.com'.
Please help! Please provide comments/guidance, or any and all Java/XML code
snippets around Yahoo account registration.
Thanks in advanced for your help.
Mitch Nguyen
***
Successful Jabber User Registration...
Username: mitch2
Password: jabber
****** Connect to server
SENT: <?xml version="1.0" ?><stream:stream to="mecajab.meca.com"
xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams">
****** Create new account
SENT: <iq id="Create New Account" type="set"><query
xmlns="jabber:iq:register"><username>mitch2</username><password>jabber</password><resource>Meca</resource></query></iq>
RECV: <iq id='Create New Account' type='result'/>
UNSUCCESSFUL YAHOO REGISTRATION...
SENT: <?xml version="1.0" ?><stream:stream to="mecajab.meca.com"
xmlns="jabber:client" xmlns:stream="http://etherx.jabber.org/streams">
SENT: <iq id="logon" type="set"><query
xmlns="jabber:iq:auth"><username>mitch2</username><password>jabber</password><resource>Meca</resource></query></iq>
SENT: <iq id="Agents" type="get" to="mecajab.meca.com"><query
xmlns="jabber:iq:agents"/></iq>
RECV: <iq id='logon' type='result'/>
RECV: <iq id='Agents' type='result' to='mitch2 at mecajab.meca.com/Meca'
from='mecajab.meca.com'><query xmlns='jabber:iq:agents'><agent
jid='users.jabber.org'><name>Jabber User
Directory</name><service>jud</service><search/><register/></agent><agent
jid='aim.meca.com'><name>AIM
Transport</name><service>aim</service><transport>Enter
ID</transport><register/></agent><agent jid='icq.meca.com'><name>ICQ
Transport</name><service>icq</service><transport>Enter
ID</transport><register/><search/></agent><agent
jid='msn.meca.com'><name>MSN
Transport</name><service>msn</service><transport>Enter
ID</transport><register/></agent><agent
jid='yahoo.meca.com'><name>Yahoo!
Transport</name><service>yahoo</service><transport>Enter
ID</transport><register/></agent></query></iq>
SENT: <iq type="get" id="Meca"><query xmlns="jabber:iq:roster"/></iq>
SENT: <presence><status>Online</status><priority>1</priority></presence>
RECV: <iq type='result' id='Meca'
from='mitch2 at mecajab.meca.com/Meca'><query xmlns='jabber:iq:roster'/></iq>
Registration...
Username: mitchnguyen18 at yahoo.meca.com
Password: foo
*** *** Create new account
SENT: <iq id="Create New Account" type="set"><query
xmlns="jabber:iq:register"><username>mitchnguyen18 at yahoo.meca.com</username><password>foo</password><resource>Meca</resource></query></iq>
RECV: <iq id='Create New Account' type='error'
from='mitch2 at mecajab.meca.com' to='mitch2 at mecajab.meca.com/Meca'><query
xmlns='jabber:iq:register'><username>mitchnguyen18 at yahoo.meca.com</username><password>foo</password><resource>Meca</resource></query><error
code='503'>Service Unavailable</error></iq>
More information about the JDev
mailing list