Click here to Skip to main content
15,911,030 members
Home / Discussions / C#
   

C#

 
GeneralRe: AutoScroll Puzzle Pin
Heath Stewart7-Sep-04 6:42
protectorHeath Stewart7-Sep-04 6:42 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin8-Sep-04 1:14
Paul Griffin8-Sep-04 1:14 
GeneralRe: AutoScroll Puzzle Pin
Paul Griffin7-Sep-04 6:46
Paul Griffin7-Sep-04 6:46 
Generalfind the shortest path between two mouse clicks Pin
caspernjk6-Sep-04 2:14
caspernjk6-Sep-04 2:14 
Generalfind the shortest path between two mouse clicks Pin
caspernjk6-Sep-04 2:07
caspernjk6-Sep-04 2:07 
GeneralRe: find the shortest path between two mouse clicks Pin
pxp6-Sep-04 3:54
pxp6-Sep-04 3:54 
GeneralSockets and threads! How to scale well :P (Part II) Pin
6-Sep-04 2:01
suss6-Sep-04 2:01 
GeneralRe: Sockets and threads! How to scale well :P (Part II) Pin
Heath Stewart6-Sep-04 9:53
protectorHeath Stewart6-Sep-04 9:53 
In the scenario you described, your solution is correct. But again don't consider simple socket communications. .NET Remoting can work over any port without IIS, you just need a different host. Windows Services, for example (those deriving from ServiceBase and installed with the ServiceInstaller and ServiceProcessInstaller classes), make great hosts.

The solution depends entirely on your network topology. If your external web servers sits in a DMZ and has limited access to the inside network through well-known ports (like HTTP), then one solution is to use .NET Remoting or Web Services to talk to an internal web server (perhaps a virtual end-point for SQL Server, even) through port 80 (or whatever port the web server is configured on).

There's not a single solution for any given scenario.

To learn more about .NET Remoting, I recommend picking up "Microsoft .NET Remoting" from Microsoft Press[^] or "Advanced .NET Remoting" from Ingo Rammer[^], both very good books (although the latter is for intermediate and advanced .NET Remoting developers, while the former is for beginning and intermediate .NET Remoting developers).

The only point I was making before was that the wire protocol isn't enough. You still need to define a data transfer protocol with any application and platform. .NET Remoting and Web Services (which are an industry standard and not specific to .NET) describe both. .NET Remoting is comrised of independant wire and transfer protocols (i.e., binary or SOAP over HTTP or TCP - "out of the box"), while Web Services use SOAP over HTTP.

If you want to use sockets, you'll need to define your own protocols.

This also depends on legacy systems, too. If you have a legacy socket server in place and want to continue using it, then you'll have to use the protocol you already defined with the socket classes in the BCL.

The nice thing about Web Services is, though, that many legacy servers now support HTTP daemons, which aren't too hard to implement (basically) anyway. Developing a Web Services need not be hard, either, so long as you explore the SOAP and WSDL specifications and implement them accordingly. I've seem scenarios where older AS/400s implemented Web Services. IBM was a key player in the push for Web Services, so many of their upgraded OS images support them through WebSphere or some other system (I must admit I don't follow IBM these days).

This posting is provided "AS IS" with no warranties, and confers no rights.

Software Design Engineer
Developer Division Sustained Engineering
Microsoft

[My Articles]
GeneralUsing COM classes Pin
_Magnus_6-Sep-04 1:58
_Magnus_6-Sep-04 1:58 
GeneralRe: Using COM classes Pin
mav.northwind6-Sep-04 2:21
mav.northwind6-Sep-04 2:21 
GeneralRe: Using COM classes Pin
_Magnus_6-Sep-04 2:30
_Magnus_6-Sep-04 2:30 
QuestionFile.Exists question? Pin
jzb6-Sep-04 1:03
jzb6-Sep-04 1:03 
AnswerRe: File.Exists question? Pin
Tom Larsen6-Sep-04 4:13
Tom Larsen6-Sep-04 4:13 
AnswerRe: File.Exists question? Pin
Heath Stewart6-Sep-04 9:43
protectorHeath Stewart6-Sep-04 9:43 
AnswerRe: File.Exists question? Pin
Bill Dean6-Sep-04 13:36
Bill Dean6-Sep-04 13:36 
GeneralSmart Device Application with SQL Server Ce Pin
mathon6-Sep-04 0:28
mathon6-Sep-04 0:28 
GeneralDataGrid hangs when using threads Pin
tobiaseriksson6-Sep-04 0:00
tobiaseriksson6-Sep-04 0:00 
GeneralRe: DataGrid hangs when using threads Pin
Roger Alsing6-Sep-04 3:47
Roger Alsing6-Sep-04 3:47 
GeneralRe: DataGrid hangs when using threads Pin
tobiaseriksson6-Sep-04 4:55
tobiaseriksson6-Sep-04 4:55 
GeneralChild Window with Focus *at same time as parent* Pin
Geekkit5-Sep-04 23:35
Geekkit5-Sep-04 23:35 
GeneralI have a problem,Creating xslt instructions Pin
teo_x5-Sep-04 22:37
teo_x5-Sep-04 22:37 
GeneralGet server time from remote server Pin
cbmdk5-Sep-04 22:19
cbmdk5-Sep-04 22:19 
GeneralProblems with huge files Pin
clatten5-Sep-04 22:15
clatten5-Sep-04 22:15 
GeneralRe: Problems with huge files Pin
Sebastian Schneider6-Sep-04 3:11
Sebastian Schneider6-Sep-04 3:11 
GeneralRe: Problems with huge files Pin
clatten6-Sep-04 10:07
clatten6-Sep-04 10:07 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.