Re: creating a new user Account.

148 views
Skip to first unread message

Tith Sochinda

unread,
Nov 4, 2014, 2:39:13 AM11/4/14
to jabbe...@googlegroups.com
Dear Tristan Djahel,

Yes it really works, but how can I set password and full name of this account?

On Monday, May 27, 2013 9:06:20 PM UTC+7, Tristan Djahel wrote:
Hello,

Try this :

string userName = "jabb...@server.com";
JID j = new JID(userName);
jClient.Register(j);


Le mardi 21 mai 2013 14:38:31 UTC+2, dileep...@gmail.com a écrit :

 private void jClient_OnAuthError(object sender, XmlElement rp)
        {
            string hostName = "jabber.org";// "netspective.com";
            string userName = "sam...@jabber.org";
            JID jid = new JID("sample", hostName, null);
            
            jClient.Register(jid);

        }

But this ends in the received message 
RECV: <stream:error><bad-namespace-prefix xmlns='urn:ietf:params:xml:ns:xmpp-streams'/></stream:error></stream:stream>

Let me know what is reason and how it can be resolve.

Regards,
Dileep S

Joe Hildebrand

unread,
Nov 5, 2014, 12:51:34 PM11/5/14
to jabbe...@googlegroups.com
For the password, set jClient.Password. If you want to set other fields, register for the OnRegisterInfo event. See the example for ideas on what to do in the callback:

https://code.google.com/p/jabber-net/source/browse/trunk/Example/MainForm.cs#780
> --
> You received this message because you are subscribed to the Google Groups "jabber-net" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to jabber-net+...@googlegroups.com.
> To post to this group, send email to jabbe...@googlegroups.com.
> Visit this group at http://groups.google.com/group/jabber-net.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages