List Info

Thread: tcp connection webservice?




tcp connection webservice?
user name
2006-09-06 16:09:06

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
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )