SOAP:RequestRecipientToken - "无效的收件人"尽管与RequestStatus匹配

时间:2014-07-07 19:01:52

标签: docusignapi

我正在测试嵌入式签名,但我遇到了以下错误:

"您已识别的收件人不是指定信封的有效收件人"

这适用于一个信封,但现在不适用于第二个信封。即使他们有完全相同的信息。

以下是来自 RequestStatus 的回复:

     <RequestStatusResponse xmlns="http://www.docusign.net/API/3.0">
         <RequestStatusResult>
            <RecipientStatuses>
              <RecipientStatus>
                  <Type>Signer</Type>
                  <Email>PLAT-2445@OUTLOOK.COM</Email>
                  <UserName>RANDOM GUY</UserName>
                  <RoutingOrder>1</RoutingOrder>
                  <Sent>2014-07-07T08:18:19.98</Sent>
                  <DeclineReason xsi:nil="true"/>
                  <Status>Sent</Status>
                  <RecipientIPAddress/>
                  <ClientUserId>PLAT-2445</ClientUserId>
                  <CustomFields/>
               </RecipientStatus>
            </RecipientStatuses>
            <EnvelopeID>0f2c122f-cb03-46cb-93cc-f0867c7c46df</EnvelopeID>
         </RequestStatusResult>
      </RequestStatusResponse>

RequestRecipientToken

    <ns1:RequestRecipientToken>
        <ns1:EnvelopeID>0f2c122f-cb03-46cb-93cc-f0867c7c46df</ns1:EnvelopeID>
        <ns1:ClientUserID>PLAT-2445</ns1:ClientUserID>
        <ns1:Username>RANDOM GUY</ns1:Username>
        <ns1:Email>PLAT-2445@OUTLOOK.COM</ns1:Email>
        <ns1:AuthenticationAssertion>
            <ns1:AssertionID>22b97ae7-c663-4135-8e5d-3c73e7461ffe</ns1:AssertionID>
            <ns1:AuthenticationInstant>2014-07-02T10:26:03.245-04:00</ns1:AuthenticationInstant>
            <ns1:AuthenticationMethod>Password</ns1:AuthenticationMethod>
            <ns1:SecurityDomain>Security.com</ns1:SecurityDomain>
        </ns1:AuthenticationAssertion>
        <ns1:ClientURLs></ns1:ClientURLs>
    </ns1:RequestRecipientToken>

响应RequestRecipientToken

  <soap:Fault>
     <faultcode>soap:Client</faultcode>
     <faultstring>The recipient you have identified is not a valid recipient of the specified envelope.</faultstring>
     <faultactor>https://www.docusign.net/api/3.0/dsapi.asmx</faultactor>
     <detail>
        <ErrorCode xmlns="missing in Web.Config">123</ErrorCode>
        <ErrorReason xmlns="missing in Web.Config">The recipient you have identified is not a valid recipient of the specified envelope.</ErrorReason>
     </detail>
  </soap:Fault>

1 个答案:

答案 0 :(得分:3)

我明白了。

ROOT原因:

我创建了两个包含相同收件人信息的信封。 RecipientToken为第一个信封工作,但在签署第一个信封时,我采用了我的签名,用不同的名字拼写。

对于失败的信封,我从RequestRecipientToken更新了UserName以匹配我刚刚采用的签名。现在它很成功。

解决:

我选择在信封创建期间为每个专属收件人使用唯一的ClientUserId。