使用基于合同的 API 下载附加到详细信息实体的文件

上面的代码片段是使用 Json.NET 框架Newtonsoft.Json.dll ) 创建的。

要从 SOAP 响应中获取 HTTP cookie 头,请在代码文件中添加对 .Net 框架 System.ServiceModelSystem.ServiceModel.Web 程序集以及以下 2 个 using 指令的引用 :

using System.ServiceModel;
using System.ServiceModel.Web;