简体   繁体   English

SOAP:RequestRecipientToken-尽管与RequestStatus相匹配,但“接收者无效”

[英]SOAP: RequestRecipientToken - “Invalid Recipient” despite matching from RequestStatus

I'm testing embedded signing and I've ran into the following error: 我正在测试嵌入式签名,并且遇到了以下错误:

"The recipient you have identified is not a valid recipient of the specified envelope" “您确定的收件人不是指定信封的有效收件人”

This worked for one envelope, but now does not for the second. 这适用于一个信封,但现在不适用于第二个信封。 Even though they have the exact same information. 即使它们具有完全相同的信息。

Below is the response from RequestStatus : 以下是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 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>

Response 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>

I figured it out. 我想到了。

ROOT CAUSE: 根本原因:

I created two envelopes with the same recipient info. 我用相同的收件人信息创建了两个信封。 The RecipientToken worked for the first envelope, but during signing of the first envelope, I adopted my signature with a different spelling of my name. RecipientToken适用于第一个信封,但是在签署第一个信封的过程中,我采用了我的签名,但其名字拼写不同。

For the envelope that failed, I updated the UserName from RequestRecipientToken to match my signature I just adopted. 对于失败的信封,我从RequestRecipientToken更新了UserName以匹配我刚刚采用的签名。 Now it is successful. 现在成功了。

RESOLUTION: 解析度:

I've chosen to use a unique ClientUserId for each captive recipient during envelope creation. 我选择在信封创建期间为每个俘虏收件人使用唯一的ClientUserId。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM