0
我正在使用Adobe Echo標誌,我已經從他們的網站下載了示例代碼,我正在使用此示例代碼來發送文檔,它在sendDocument方法中缺少一些代碼,所以我更改了它。它給SOAPHEADER例外,沒什麼的InnerException,Adobe Echo Sign發送PDF文件
{"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?