0

I need to develop a WebSevice which takes its input and forwards this input using TCP.

Is it possible for Asp.net Webservices ? Or Should I use WCF etc..

I have to know if it is possible to create a web service that should be like a bridge between the two: it waits for an incoming request, forwards it to the required TCP port.

Simple samples are always welcome :)

zapoo
  • 1,548
  • 3
  • 17
  • 32

2 Answers2

0

I think Asp.net is possible to use TCP , but I think you should use WCF.
This will give you most things 'out of the box' (serialize /deserialize, open/close socket )

There are good examples here, here and good reading here

Community
  • 1
  • 1
Mzf
  • 5,210
  • 2
  • 24
  • 37
  • I had just develop WCF service. It was so easy to send message over TPC. I used [tcp sender sample](http://msdn.microsoft.com/en-us/library/system.net.sockets.tcpclient.aspx) to send tcp message. – zapoo Jun 07 '13 at 07:02
0

I used the sample project and it worked.

zapoo
  • 1,548
  • 3
  • 17
  • 32