简体   繁体   English

客户端和服务器之间的安全双向通信,包括大文件附件

[英]Secure two-way communication between client and server including large file attachments

In .net, I need to securely transfer files 4mb in size from client machines running my software to a central server, process, and securely send back results consisting of a pdf file, a jpg image, and xml data. 在.net中,我需要从运行我的软件的客户端计算机安全地将大小为4mb的文件传输到中央服务器,进行处理,并安全地发送包含pdf文件,jpg图像和xml数据的结果。

What .net technology would be most appropriate for this? 哪种.net技术最适合于此? (web service. remoting, etc) (网络服务,远程处理等)

WCF- If it is .NET to .NET (like it sounds like it is), then you should use WCF with TCPBinding. WCF-如果从.NET到.NET(听起来像是这样),则应将WCF与TCPBinding一起使用。 There are lots of good examples here to get you started. 这里有很多很好的例子 ,可以帮助您入门。 You might want to consider streaming if scalability is a concern. 如果要考虑可伸缩性,则可能要考虑流式传输

If you want to host in IIS (then you can't use TCP- but consider WAS), make sure you use MTOM . 如果要在IIS中托管(那么您就不能使用TCP-,而是考虑使用WAS),请确保使用MTOM If you're still unsure as to which binding to use, then have a look at this binding decision diagram . 如果您仍然不确定要使用哪种绑定,请查看此绑定决策图

WCF has a lots of security options for you to consider. WCF有很多安全选项供您考虑。 You will find the Patterns and Practises- WCF Security Guidance useful for this. 您会发现“ 模式和实践-WCF安全指南 ”对此很有用。

Please note that ASMX Webservices and remoting are now considered legacy- WCF is the way forward. 请注意,ASMX Web服务和远程处理现在被认为是旧式-WCF是前进的方向。

Update- If your operating system supports it, then you may wish to consider using WAS . 更新-如果您的操作系统支持它,那么您不妨考虑使用WAS

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM