Not logged in. · Lost password · Register
Forum: agsXMPP RSS
Avatar
guffest #1
Member since Nov 2005 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: agsXMPP Web Application...
Hi,

Could anyone point me in the direction of samples or examples on how to use the agsXMPP component in web application?

Specifically I would like to use iis / aspx.

Thanks for any pointers.
Avatar
guffest #2
Member since Nov 2005 · 3 posts
Group memberships: Members
Show profile · Link to this post
Subject: more detail...
Maybe a bit more detail would help:

I have used the agsXMPP component to create a simple C# Windows App to connect, send and receive messages.

I am now trying to create a simple aspx Web App to do the same.

In the Session_Start method of Global.asax.cs I am creating the XmppClientConnection in the same way as the Windows App and calling Open. However my OnLogin event handler is never getting called. I have tried adding the XmppClientConnection to the Session to try to keep it alive.

I am new to Web/aspx development, so i am probably making fundamental mistakes!

Any help appreciated.
Avatar
Alex #3
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Hello,

Sorry there is no Web App sample yet.

i think the connection in your WebApp should be server side. So the webserver should keep the connection in the session.
In Xmpp the TCP/IP connection is persistent during the XmppSession.

In the latest code which is in SVN i added HTTP Polling (JEP-0025)
http://www.jabber.org/jeps/jep-0025.html

This is polling the HTTP packets over a HTTP connection and needs no permanent tcp/ip connection.

This needs a server that also supports this feature. I think its build in in ejabberd, and there are addons for jabberd 1.x and 2.x.

Alex
Avatar
guffest #4
Member since Nov 2005 · 3 posts
Group memberships: Members
Show profile · Link to this post
Hi Alex,

The connection is being created in the WebApp on the server side and I am storing it in the session - but no luck so far.

Maybe there is a problem with permissions/privileges. I will continue my experimenting. If I get anything that works I would be happy to post a sample project.

HTTP Polling looks interesting, although I want to work with the GoogleTalk server, and I cant find any information on whether they support it.

Many Thanks,

Scott.
Avatar
sasachess #5
Member since Dec 2005 · 7 posts
Group memberships: Members
Show profile · Link to this post
Quote by "guffest":
Hi Alex,

Maybe there is a problem with permissions/privileges. I will continue my experimenting. If I get anything that works I would be happy to post a sample project.

Have you resolved your problem? I have the same problem with aspx and C#... Can you post the sample project?
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