You might take a look at this book:
Network Programming in .NET with C# and Visual Basic .NET
Author: Fiach Reid
Publisher: Elsevier Digital Press (UK) copyright 2004.
While I have some issues with the style of writing and at
the time of the
writing there was no supporting web site, it helped me when
I needed to
solve a major problem. It covers sockets (chap 3), Web
Services and
Remoting (chap 17) at least well enough to use Google and
MSDN library for
supplemental information or further clarification.
There could be a more recent edition; but I haven't
checked.
Pamela Reinskou
VersusLaw Inc.
-----Original Message-----
From: Terry Voss [mailto:tvoss computer-consulting.com]
Sent: Wednesday, September 06, 2006 9:09 AM
To: aspnet-architecture aspadvice.com
Subject: [aspnet-architecture] tcp connection webservice?
Mike,
Going to the socket level may not be necessary from all
you've described
simple high level http should work with std TCP/IP:
(see this example not for the wininet, but the http code
for like signin
and etc.) http:/
/www.computer-consulting.com/wininet.htm
because you are a middle step between two computers versus
just
communicating with one, you want the simplest implementation
possible so you can focus on that 3 way communication and
not socket
detail.
When you say you need to establish a TCP socket connection
to the 3rd
system with designated port, TCP is std underlying http,
so I still think the HttpWebRequest object will do it. It
has so much
flexibility I've not been stuck yet at doing any detailed
task.
(except the one mentioned in the article which was a very
wierd situation)
HTH
Terry Voss
***************
Hi All,
I have few questions and I couldn't find anything good on
google about
this, if someone could point me to some direction, or give
me any advice on
this problem I have, I would really appriciate it.
I have to build a system, which will accept a
request(structured xml) from
another location, I then have to save some information from
this request
into my database, and pass the request on to another system
(another
location).
The third system (the one my application will pass the
request on) has
those specifications:
The system features a simple single request dialogue.
Using the
connection-oriented feature of the TCP connection the system
is able to
detect if the response was successfully delivered to
MySystem. In the event
that the response is not successful 3rdSystem will perform a
real-time
roll-back of the reserved request.
Communication:
I need to establish a TCP socket connection to the
3rdSystem to a
designated PORT.
The socket is closed after each Request/Response. Multiple
connections can
be running
at the same time.
Security:
The IP address and port number will be provided for each
client. A VPN
connection needs to be set up.
When I receive the response from the 3rdSystem, I will
pass it on to the
first client that is waiting for the response from the
begenning.
I need to make the middle software, so I am thinking that
I would
implement the same thing the 3rdSystem has. And I would pass
on the same
requirements to the client, I need something very simple and
fast.
I've got no idea how TCP protocol works, and if I should
do this via a
.net webservice, or how?
Please help!
Thank you,
Mike
Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com
Need SQL Advice? http://sqladvice.com Need
RegEx Advice?
http://regexadvice.com
Need XML Advice? http://xmladvice.com
Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com
|