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

发布于 2024-08-05 11:37:51 字数 134 浏览 2 评论 0原文

在 .net 中,我需要将 4mb 大小的文件从运行我的软件的客户端计算机安全地传输到中央服务器,进行处理并安全地发回由 pdf 文件、jpg 图像和 xml 数据组成的结果。

哪种 .net 技术最适合此目的? (网络服务、远程处理等)

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.

What .net technology would be most appropriate for this? (web service. remoting, etc)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

GRAY°灰色天空 2024-08-12 11:37:51

WCF - 如果是 .NET 到 .NET(就像听起来那样),那么您应该将 WCF 与 TCPBinding 结合使用。这里有很多很好的示例可以帮助您入门。如果担心可扩展性,您可能需要考虑流式传输

如果您想在 IIS 中托管(那么您不能使用 TCP,但可以考虑使用 WAS),请确保您 使用 MTOM。如果您仍然不确定要使用哪个绑定,请查看 此绑定决策图

WCF 有许多安全选项供您考虑。您会发现模式和实践 - WCF 安全指南对此很有用。

请注意,ASMX Web 服务和远程处理现在被视为遗留 - WCF 是前进的方向。

更新 - 如果您的操作系统支持它,那么您可能希望考虑使用 WAS< /a>.

WCF- If it is .NET to .NET (like it sounds like it is), then you should use WCF with 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. 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. You will find the Patterns and Practises- WCF Security Guidance useful for this.

Please note that ASMX Webservices and remoting are now considered legacy- WCF is the way forward.

Update- If your operating system supports it, then you may wish to consider using WAS.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文