我正在研究 Adobe Echo 标志,我已经从他们的网站下载了示例代码,我正在使用这个示例代码来发送文档,它在 sendDocument 方法中缺少一些代码,所以我已经更改了它。它给出了 SoapHeader 异常,在 InnerException 中没有任何内容,
{"apiActionId=XHZI4WF4BV693YS"}
以下是我发送文件的代码
public static void sendDocument(string apiKey, string fileName, string recipient)
{
ES = new EchoSignDocumentService16();
FileStream file = File.OpenRead(fileName);
secure.echosign.com.FileInfo[] fileInfos = new secure.echosign.com.FileInfo[1];
fileInfos[0] = new secure.echosign.com.FileInfo(fileName, null, file);
SenderInfo senderInfo = null;
string[] recipients = new string[1];
recipients[0] = recipient;
DocumentCreationInfo documentInfo = new DocumentCreationInfo(
recipients,
"Test from SOAP: " + fileName,
"This is neat.",
fileInfos,
SignatureType.ESIGN,
SignatureFlow.SENDER_SIGNATURE_NOT_REQUIRED
);
DocumentKey[] documentKeys;
senderInfo = new SenderInfo(recipient, "password", "APIKEY");
documentKeys = ES.sendDocument(apiKey, senderInfo, documentInfo);
Console.WriteLine("Document key is: " + documentKeys[0].documentKey);
}
它在这条线上给出了例外
documentKeys = ES.sendDocument(apiKey, senderInfo, documentInfo);
谁能推荐一些 Adobe Echo Sign 的示例代码?