0

我正在尝试为 COSign SOAP 签名的肥皂请求添加一个理由。

任何人都可以为我提供如何执行此操作的 VB 或 C# 示例吗?

谢谢

4

1 回答 1

0

我找到了答案。

下面给有同样问题的人

Dim Configs(1) As DSSSoapClient.ConfValueType
    Dim Config As New DSSSoapClient.ConfValueType() With { _
            .ConfValueID = DSSSoapClient.ConfIDEnum.Reason, _
            .Item = "Hierdie is die Rede vir al my harseer"
        }
    Configs(1) = Config


    ' Build complete request object
    Dim signRequest As New DSSSoapClient.SignRequest() With { _
        .InputDocuments = New DSSSoapClient.RequestBaseTypeInputDocuments() With { _
            .Items = New DSSSoapClient.DocumentType() {document} _
        }, _
        .OptionalInputs = New DSSSoapClient.RequestBaseTypeOptionalInputs() With { _
            .SignatureType = signatureType, _
            .ClaimedIdentity = claimedIdentity, _
            .SAPISigFieldSettings = sigFieldSettings, _
            .ReturnPDFTailOnly = True, _
            .ConfigurationValues = Configs, _
            .ReturnPDFTailOnlySpecified = True _
        } _
    }
于 2015-10-03T21:55:14.450 回答