Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
danny_dong #1
Member since Apr 2011 · 9 posts
Group memberships: Members
Show profile · Link to this post
Subject: example in the MatriX WP7 release: can't connect!
Trying to run the example in the MatriX package for Windows Phone 7. It deploys and starts on the emulator without any error. An Evaluation Dialog pops up when the Connect button clicked. Click the OK button on the Evaluation Dialog and then there's nothing going on! Then I traced it and find that xmppClient.Open() returned without error but after that we never get the _onLogin() event happen!

        private void cmdConnect_Click(object sender, RoutedEventArgs e)
        {
            xmppClient.Username = "danny";  // my user name
            xmppClient.Password = "12345";  // danny's password
            xmppClient.XmppDomain = "xxxxx.com";  // xxxxx.com is the domain of my Openfire 3.7.0 server
            xmppClient.Uri = new Uri("http://xxxxx.com:7070");  // Http binding is enabled on Openfire and port set to 7070 by default
           
            xmppClient.Show = Show.dnd;
            xmppClient.Status = "Testing on Windows Phone 7";
           
            xmppClient.Open();
        }

Anyone could show me some clue?

Thanks in advance.
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
the Bosh Uri for Openfire has the format:

http://xxxxx.com:7070/http-bind/

not

http://xxxxx.com:7070
This post was edited on 2011-04-06, 14:57 by Alex.
Avatar
danny_dong #3
Member since Apr 2011 · 9 posts
Group memberships: Members
Show profile · Link to this post
thank you so much Alex, lol, sorry for bother you again...

it works now. oh yeah
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Forum: MatriX RSS