使用基於合同的 API 下載附加到詳細資訊實體的檔案

上面的程式碼片段是使用 Json.NET 框架Newtonsoft.Json.dll ) 建立的。

要從 SOAP 響應中獲取 HTTP cookie 頭,請在程式碼檔案中新增對 .Net 框架 System.ServiceModelSystem.ServiceModel.Web 程式集以及以下 2 個 using 指令的引用 :

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