Hi all… I’‘m writing a chat app client (applet) I’'m connecting to server fine (our own jabber server here at work), but get an error when try to open acct for a user…
have been looking at Smack documentation, and even though I found code to create new acct in there can’'t find it now… (I mean the page where he says how to create new acct… I think I remember taking that code from there…) again, thank you very much…
thank you for pointing me to this page… it says error 400 is a ‘‘bad rquest’’… why is this a bad request? this is correct code for opening an acount, right? (it compiles fine, at any rate…)
ok, so now have correct JID format… now am getting error 409 (conflict) “conflict” is a bit vague, don’'t know what this refers to… I commented out all other code (to create chatroom, etc…) just left code there to connect to server and register new user… still get this 409 error…
I’'m confused now b/c enabled console thing, and looked again in my jabber book (oreilly, pg 212) and I realized this is stream for registering a new user:
only THEN, apparently, do you send uid/pswd info to server… so, questions:
this conflicts with what it says in docs to open acct (that you send uid/psw in that 1st stmt to open acct)
in our system we will connect to server, then do everything “behind the scenes”:
– create new acct
– login user
– connect user to chatroom
– open chatroom window
(that’'s it, no private chats, nothing… this is for a very specific purpose…)
user will not have to type in anything to reg/login… we will pass all that info w/a query string (and convert e-mail add to JID and create a password)
so, can this be done? again thank you very much… any help is much appreciated…
Usually, though not always, you can get by with not sending that initial jabber:iq:register packet to the server. Im not sure how Messenger performs in this instance. 409 conflict usually indicates that that username already exists on the server.