在SoapEnveloppe外部添加附加到Soap消息

时间:2015-06-25 08:20:20

标签: c# web-services soap

我已成功将数据发送到Soap网络服务。但是现在我需要在SoapEnveloppe之外的Soap消息中添加附件(jpg或xlsx)文件。我将如何在C#中实现这一目标。我看到它可以完成,但我找不到C#示例。

using (var svc = new TestService.TestServiceCreate_outService())
{
    svc.Credentials = new NetworkCredential(
                    ConfigurationManager.AppSettings["User"],
                    ConfigurationManager.AppSettings["Pwd"]);

    // fill request properties
    ..... ok

    // add attachments?
    .. how?

    // sent request
    svc.Create(request);
}

1 个答案:

答案 0 :(得分:0)

您可以尝试使用DIME服务,查看here as msdn

您可以使用其他链接this link