Socket connection in a web app?

M

Martin

I am a .Net newbie. I have Visual Studio.Net 2003 and have the luxury
of being able to do some R&D/learning in a non-production environment.

I want to develop a web application that will get the data that it
serves out from two sources: (1) a database (probably MS Access but
could be SQL Server) and (2) directly from another application running
on the same machine. (BTW, this is on an intranet - the server will be
dedicated to these apps only).

I would like to have the web app and the "other" app talk to one
another using a socket connection. (The "other" app will be written in
VB6 and I'm very familiar with Winsocket communications from that
side).

I understand that there is a socket class available in .Net but that's
the limit of my knowledge. Can I use this to communicate with my
"other" app? Are there some code examples available anywhere that
would show the use of the socket class in a web app that I could
adapt/ learn from?

Thanks for any guidance.

Martin
 
C

Cor Ligthert

Hi Martin,

Did you already looked in the VB.net resource kit.
I thought that I had seen some samples which answers to your questions.

VB.net Resource kit
http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

And if you have problems installing the resource kit
http://msdn.microsoft.com/vbasic/vbrkit/faq/#installvdir

And as advice, do not forget to look at webservice what maybe can give as
well a solution for you.

http://msdn.microsoft.com/library/d...atingDistributedWebApplicationWalkthrough.asp

I hope this helps?

Cor
 
M

Martin

Yes, I have the resource kit installed. What I found in there
regarding sockets was for a Windows App. I'm assuming that using a
socket in a Web App would be different, no?
 
C

Cor Ligthert

Hi Martin,

After this message I get maybe a better idea what you are after.
Having a connection to a userkind browser and a windows application can be
difficult, however not when you implement of course your own webbrowser,
than there are again other possibilities.

I give you two links, one is to the webbroswer the other to all ristrictions
that will be made to prevent that IE talks with a workstation. (There is
also a kind of interop possible with IE, and than you have to use shdocvw
instead of axshdocvw and because this is not a real net control probably as
well using VB6, which I do not know).

webbrowser
http://support.microsoft.com/?kbid=311303

some faqs
http://support.microsoft.com/default.aspx?scid=kb;EN-US;311284

mshtml
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/hosting/hosting.asp

This is what goes happen with IE without interop.

http://msdn.microsoft.com/security/default.aspx?pull=/library/en-us/dnwxp/html/xpsp2websites.asp

I hope this gives again some idea's

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top