DocuSign API:使用强制(嵌入式)收件人的“无效签名凭据”错误

时间:2014-06-27 14:20:08

标签: docusignapi

我正在使用基于SOAP的API调用" CreateAndSendEnvelope"在所需的DocuSign帐户中创建信封。

当我将收件人添加为自锁/嵌入式收件人时,我可以创建一个信封,但是在为强制收件人请求令牌时,我收到错误"无效的签名凭据"。

以下是我对我的DocuSign模拟账户提出的要求。

POST https://demo.docusign.net/api/3.0/dsapi.asmx HTTP/1.1
Content-Type: text/xml; charset=utf-8
X-DocuSign-Authentication: 
<DocuSignCredentials>
<Username>****</Username>
<Password>*****</Password>
<IntegratorKey>********</IntegratorKey>
</DocuSignCredentials>
VsDebuggerCausalityData:     uIDPo7akWKVLPM1FtqgHGlxmVBgAAAAAh0Xpou1aEkuLAhpZehuVUhAFJ+e2a3JJm4f7e3PmDFMACQAA
SOAPAction: "http://www.docusign.net/API/3.0/RequestRecipientToken"
Host: demo.docusign.net
Content-Length: 1851
Expect: 100-continue
Accept-Encoding: gzip, deflate

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<RequestRecipientToken xmlns="http://www.docusign.net/API/3.0">
    <EnvelopeID>353c8881-feac-4803-b1f9-5248feb04e70</EnvelopeID>
    <ClientUserID>771</ClientUserID>
    <Username>Minal **</Username>
    <Email>*******</Email>
    <AuthenticationAssertion>
    <AssertionID>74ea161d-5dea-4a2c-8ffb-e754beaab660</AssertionID>
    <AuthenticationInstant>2014-06-27T09:17:06.7147424-04:00</AuthenticationInstant>
    <AuthenticationMethod>Password</AuthenticationMethod>
    <SecurityDomain>Request Recipient Token</SecurityDomain>
    </AuthenticationAssertion>
    <ClientURLs>
    <OnSigningComplete>****;event=SignComplete</OnSigningComplete>
    <OnViewingComplete****;event=ViewComplete</OnViewingComplete>
    <OnCancel>*******;event=Cancel</OnCancel>
    <OnDecline>******;event=Decline</OnDecline>
    <OnSessionTimeout>*****;event=Timeout</OnSessionTimeout>
    <OnTTLExpired>*****;event=TTLExpired</OnTTLExpired>
    <OnException>*****;event=Exception</OnException>
    <OnAccessCodeFailed>*****;event=AccessCode</OnAccessCodeFailed>
    <OnIdCheckFailed>*******;event=IDCheck</OnIdCheckFailed>
    </ClientURLs>
    </RequestRecipientToken>
    </s:Body>
    </s:Envelope>

1 个答案:

答案 0 :(得分:0)

您收到错误的原因&#34;无效的签名凭证&#34;是因为在使用Embedded(又名Captive)收件人时,您需要使用X509证书签署您的请求。当您的集成处于生产阶段时,这是必需的,但在演示环境中,不需要证书。

不幸的是,如果您收到此错误,则表示您的开发帐户中有一个或两个未启用的设置,这是您需要联系DocuSign支持或您的客户经理才能解决的问题。

为了帮助加快请求速度,我可以告诉您,您帐户中需要启用的两个选项已标记为

  • In Session
  • Don't Enforce In Session Certificate

启用两者后,您应该能够使用嵌入式收件人。