2013-07-02 2 views
0

Adobe Echo sign을 작성 중입니다. 웹 사이트에서 샘플 코드를 다운로드했으며, senddocument에이 샘플 코드를 사용하고 있습니다. sendDocument 메소드에 코드가 없어서 변경되었습니다. 그것은 아래 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); 
     } 

의 제공 예외를 보내는 내 코드,의 InnerException에서 아무것도, SOAPHeader에 예외를주는 것은

documentKeys = ES.sendDocument(apiKey, senderInfo, documentInfo); 

사람은 몇 가지 샘플 코드를 제안 할 수 있습니다 어도비 에코 사인?

답변

0

로그인 페이지에서 확인할 수있는 API 로그가 있습니다. 요청에 대한 로그 항목을 확인하면 일 수 있습니다. 자세한 정보를 찾으십시오.

코드에 아무 것도 보이지 않지만 EchoSign API 가이드에 'tos'필드가 사용되지 않으며 대신 수신자 필드를 사용해야한다고 나와 있습니다. 유익하게 말하자면 이것은 매개 변수화 된 생성자를 사용할 수 없음을 의미합니다. (알아 내기 위해이 C#을하지만 자바를 필요로하는 경우는 간단합니다)와 같은 문서 작성 정보를 만들어보십시오 :

RecipientInfo[] recipientInfo = new RecipientInfo[1]; 
recipientInfo[0] = new RecipientInfo 
{ 
    email = "recipient", 
    role = RecipientRole.SIGNER, 
    roleSpecified = true 
}; 

DocumentCreationInfo documentCreationInfo = new DocumentCreationInfo 
{ 
    recipients = recipientInfo, 
    name = "Test from SOAP: " + fileName, 
    message = "This is neat.", 
    fileInfos = fileInfos, 
    signatureType = SignatureType.ESIGN, 
    signatureFlow = SignatureFlow.SENDER_SIGNATURE_NOT_REQUIRED 
}; 

주를 recipientInfo 배열을 사용하는 경우는 roleSpecified 필드 해야한다는 보인다 true로 설정하십시오. 이 작은 분야는 나에게 나이를 불어 넣었고 나는 너와 비슷한 오류를 받고 있었다.

관련 문제