DocuSign SOAP API - 错误:此帐户缺乏足够的权限

问题描述 投票:0回答:1

我目前正在遵循有关如何使用 SOAP API 请求签名的操作指南

我已导入 wsdl 并设法创建我的信封,但当我尝试发送它时,我遇到以下错误:此帐户缺乏足够的权限。 如果没有更多背景说明为什么会发生此错误,我发现自己陷入了死胡同。

来自我替换的操作指南:

{USER_ID}
,作者:
1f8d\*\*\*\*-\*\*\*\*-\*\*\*\*-\*\*\*\*-\*\*\*\*\*\*\*\*7bcc
,在应用程序和按键
中找到
{ACCOUNT_ID}
,作者:
2ba4\*\*\*\*-\*\*\*\*-\*\*\*\*-\*\*\*\*-\*\*\*\*\*\*\*\*2349
,在应用程序和按键
中找到
{USER_EMAIL}
通过我的有效电子邮件,我将其与其余 API 一起使用,以确保它正常工作。此电子邮件与我的帐户电子邮件不同。

这是我的要求

POST /api/3.0/api.asmx HTTP/1.1
Host: demo.docusign.net
User-Agent: LibDocusign
Accept: */*
Accept-Encoding: deflate, gzip
Content-Type: text/xml; charset=utf-8
Connection: close
SOAPAction: "http://www.docusign.net/API/3.0/CreateAndSendEnvelope"
X-DocuSign-Authentication: My Docusign Integtation Key
Content-Length: 2326

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <SOAP-ENV:Header>
        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
            xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" SOAP-ENV:mustUnderstand="1">
            <wsu:Timestamp wsu:Id="TS-102D96E1E732485F84CD0DCF095C5B08">
                <wsu:Created>2023-08-28T08:49:46Z</wsu:Created>
                <wsu:Expires>2023-08-28T08:50:46Z</wsu:Expires>
            </wsu:Timestamp>
            <wsse:UsernameToken wsu:Id="UsernameToken-0280BB10F71641FC8E680E1B93C1D8B0">
                <wsse:Username>My Developper User ID</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">My Developper account Password</wsse:Password>
                <wsse:Nonce EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary">1WbYuC7dU8e6SaAqIwlUJw==</wsse:Nonce>
                <wsu:Created>2023-08-28T08:49:46Z</wsu:Created>
            </wsse:UsernameToken>
        </wsse:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <ns1:CreateAndSendEnvelope xmlns:ns1="http://www.docusign.net/API/3.0">
            <ns1:Envelope xmlns:ns1="http://www.docusign.net/API/3.0">
                <ns1:Recipients>
                    <ns1:Recipient>
                        <ns1:ID>1</ns1:ID>
                        <ns1:Email>[email protected]</ns1:Email>
                        <ns1:UserName>Me</ns1:UserName>
                        <ns1:Type>Signer</ns1:Type>
                        <ns1:RequireIDLookup>false</ns1:RequireIDLookup>
                    </ns1:Recipient>
                </ns1:Recipients>
                <ns1:Documents>
                    <ns1:Document>
                        <ns1:ID>1</ns1:ID>
                        <ns1:Name>Lorem Document</ns1:Name>
                        <ns1:PDFBytes>QzpcVXNlcnNcTk9cRG9jdW1lbnRzXFZTQ29kZVRlbXBcRG9jdXNpZ25cZXhhbXBsZXNfYmFz&#13;
aFxkZW1vX2RvY3VtZW50c1xXb3JsZF9XaWRlX0NvcnBfbG9yZW0ucGRm</ns1:PDFBytes>
                    </ns1:Document>
                </ns1:Documents>
                <ns1:Tabs>
                    <ns1:Tab>
                        <ns1:DocumentID>1</ns1:DocumentID>
                        <ns1:RecipientID>1</ns1:RecipientID>
                        <ns1:Type>SignHere</ns1:Type>
                        <ns1:PageNumber>1</ns1:PageNumber>
                        <ns1:XPosition>100</ns1:XPosition>
                        <ns1:YPosition>100</ns1:YPosition>
                    </ns1:Tab>
                </ns1:Tabs>
                <ns1:AccountId>My Developper account ID</ns1:AccountId>
                <ns1:Subject>Test</ns1:Subject>
            </ns1:Envelope>
        </ns1:CreateAndSendEnvelope>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

以及服务器响应

HTTP/1.1 500 Internal Server Error
Cache-Control: private
Content-Type: text/xml; charset=utf-8
X-DocuSign-Node: DA1DFE5
Date: Mon, 28 Aug 2023 08:49:46 GMT
Content-Length: 1393
Connection: close
Strict-Transport-Security: max-age=31536000; includeSubDomains

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing"
    xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
    xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
    <soap:Header>
        <wsa:Action>http://schemas.xmlsoap.org/ws/2004/08/addressing/fault</wsa:Action>
        <wsa:MessageID>urn:uuid:4e384c84-1d55-46b4-ac47-3559fa6ab693</wsa:MessageID>
        <wsa:RelatesTo>urn:uuid:3c2851d0-6af1-4a5f-a213-539dd39b6aa7</wsa:RelatesTo>
        <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To>
        <wsse:Security>
            <wsu:Timestamp wsu:Id="Timestamp-31d1e46c-c71d-4bf5-9bfd-3daa3ed9844d">
                <wsu:Created>2023-08-28T08:49:47Z</wsu:Created>
                <wsu:Expires>2023-08-28T08:54:47Z</wsu:Expires>
            </wsu:Timestamp>
        </wsse:Security>
    </soap:Header>
    <soap:Body>
        <soap:Fault>
            <faultcode>soap:Client</faultcode>
            <faultstring>This Account lacks sufficient permissions.</faultstring>
            <faultactor>missing in Web.Config</faultactor>
            <detail>
                <ErrorCode xmlns="missing in Web.Config">111</ErrorCode>
                <ErrorReason xmlns="missing in Web.Config">This Account lacks sufficient permissions.</ErrorReason>
            </detail>
        </soap:Fault>
    </soap:Body>
</soap:Envelope>

如有任何帮助,我们将不胜感激。 预先感谢

soap docusignapi
1个回答
0
投票

您提到您上周向开发者支持开出了一张票证,正在等待回复。您能否分享案件编号,以便我为您调查?我们需要有关您帐户的敏感数据来评估此错误,如果通过支持票完成,效果会更好。

我会等你回复。

莱安德罗·雷斯

DocuSign - 开发人员支持工程师

© www.soinside.com 2019 - 2024. All rights reserved.