首页 > 解决方案 > 在 C#.net 中使用 SOAP 请求上传大文件并将其传递给 VB.net 中的 Web 服务 API

问题描述

我们正在使用在 C#.net 中开发的 SOAP 请求上传一个大文件,并将其传递给在 VB.net 中开发的 Web 服务 API。

在现有的逻辑中,我们已经实现了 Base64 编码算法,相应的代码片段如下所示。

Byte[] bytes = File.ReadAllBytes(FileName);
Base64String = Convert.ToBase64String(bytes);

但在这种情况下,我们能够在 IIS 7.0 服务器上上传一个文件直到 70 MB。我们遇到了文件大小超出此范围的问题。

现在我们需要解决方案来了解如何通过将 SOAP 附件作为 SOAP 附件发送到 SOAP 请求 API 来上传大尺寸(例如,超过 500 GB)文件。我们还想知道通过 mime-soap 附件发送它的可能方式。

示例 XML 数据:- http://www.dummy.com' xmlns:xsd=' http://www.dummy.com ' xmlns:soap=' http://dummy.com/soap/envelope/ '>

Referred links1https://www.theserverside.com/news/1363957/Sending-Attachments-with-SOAP Referred links2https://community.boomi.com/s/article/mime-soap-attachments

标签: c#vb.netsoap

解决方案


推荐阅读