Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
drkclw #1
Member since Jul 2011 · 8 posts
Group memberships: Members
Show profile · Link to this post
Subject: ASP client using BOSH
I created a very small and simple program that connects to an OpenFire server using ASP, I am now trying to connect using BOSH but I can't seem to get past the authentication step, below is the code I have:

  1. Jid jid = new Jid("sgomez@inktelopenfire");
  2. client.Server = jid.Server;           
  3. client.Username = jid.User;
  4. client.Password = "myPassword";           
  5. client.Resource = "InktelChatClient";
  6. client.Priority = 10;
  7. client.AutoResolveConnectServer = false;
  8. client.UseCompression = false;           
  9. client.SocketConnectionType = SocketConnectionType.Bosh;
  10. client.ConnectServer = "http://inktelopenfire:7070/http-bind/";           
  11. SetDiscoInfo();
  12. client.Open();

All I get back is the below:

WRITE: <stream:stream to='inktelopenfire' xmlns='jabber:client' xmlns:stream='http://etherx.jabber.org/streams' version='1.0' xml:lang='en'>
Connection state: Connected
Authenticated? False

Thanks in advance
This post was edited on 2012-01-31, 19:43 by Alex.
Avatar
Alex #2
Member since Feb 2003 · 4311 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
It looks like you get no connection at all to your BOSH server. Is your Uri correct?
For webchats I would suggest either Silverlight when you want to code in c# and .NET, or use a Java Script library like Strophe. ASP with agsXMPP does not make much sense.

Alex
Avatar
drkclw #3
Member since Jul 2011 · 8 posts
Group memberships: Members
Show profile · Link to this post
Is there another way I can test the connection to the BOSH server?
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: agsXMPP RSS