"该帐户缺少足够的权限"的DocuSign [英] "This Account lacks sufficient permissions" DocuSign

查看:261
本文介绍了"该帐户缺少足够的权限"的DocuSign的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道有多少人在这里使用,但我有一点创建和发送一个信封,发送问题到的DocuSign当我发送此XML文件的DocuSign

 <?XML版本=1.0编码=UTF-8&GT?;
< SOAP-ENV:信封的xmlns:SOAP-ENV =htt​​p://schemas.xmlsoap.org/soap/envelope/的xmlns:NS1 =htt​​p://www.docusign.net/API/3.0的xmlns: XSI =htt​​p://www.w3.org/2001/XMLSchema-instance的xmlns:WSA =htt​​p://schemas.xmlsoap.org/ws/2004/08/addressing>
    < SOAP-ENV:页眉和GT;
        &LT; WSA:作用&gt;的http://www.docusign.net/API/3.0/CreateAndSendEnvelope< / WSA:作用&gt;
        &LT; WSA:到&GT;的https://demo.docusign.net/api/3.0/api.asmx< / WSA:到大于
        &LT; WSA:邮件ID&GT; UUDI:1e1929b6-2adc-ed07-413f-4e766500ef88&LT; / WSA:邮件ID&GT;
        &LT; WSA:的ReplyTo&GT;
            <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
        &LT; / WSA:的ReplyTo&GT;
        &LT; WSSE:安全的xmlns:WSSE =htt​​p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsdSOAP-ENV:mustUnderstand属性=1 &GT;
            &LT; WSU:时间戳的xmlns:WSU =htt​​p://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd&GT;
                &LT; WSU:创建&GT; 2012-03-22T20:18:07Z&LT; / WSU:创建&GT;
                &LT; WSU:过期&GT; 2012-03-22T20:23:07Z&LT; /华盛顿州立大学:截止日期&GT;
            &LT; / WSU:时间戳&GT;
            &LT; WSSE:用户名令牌&GT;
                &LT; WSSE:用户名&gt; 87a3ac71-f806-4eff-ad67-7f39e5cfac42&LT; / WSSE:用户名&gt;
                &LT; WSSE:密码Type=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText\">testpasword</wsse:Password>
                &LT; WSSE:随机数&GT; CiT5a2eGKY / o6OfdfdJHQA31rslk3Z4xrLxHYyUMC4p4 = LT; / WSSE:随机数&GT;
                &LT; WSU:创建xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\">2012-03-22T20:18:07Z</wsu:Created>
            &LT; / WSSE:用户名令牌&GT;
        &LT; / WSSE:安全和GT;
    &LT; / SOAP-ENV:页眉和GT;
    &LT; SOAP-ENV:身体与GT;
        &LT; NS1:CreateAndSendEnvelope&GT;
            &LT; NS1:信封&GT;
                &LT; NS1:ACCOUNTID&GT; 4dfg3432-4331-49d5-8ca0-2c431f6b376&LT; / NS1:ACCOUNTID&GT;
                &LT; NS1:文件&GT;
                    &LT; NS1:文件&GT;
                        &LT; NS1:ID&GT; 1 LT; / NS1:ID&GT;
                        &LT; NS1:名称&gt;文档和LT; / NS1:名称&gt;
                    &LT; / NS1:文件&GT;
                &LT; / NS1:文件&GT;
                &LT; NS1:收件人&GT;
                    &LT; NS1:收件人&GT;
                        &LT; NS1:ID&GT; 1 LT; / NS1:ID&GT;
                        &LT; NS1:用户名&gt;公司名称&LT; / NS1:用户名&gt;
                        &LT; NS1:电子邮件和GT; anthony.gordon@email.com< / NS1:电子邮件和GT;
                        &LT; NS1:Type和GT;签名者&LT; / NS1:型号&GT;
                        &LT; NS1:访问code XSI:零=真/&GT;
                        &LT; NS1:RequireIDLookup&GT;假LT; / NS1:RequireIDLookup&GT;
                    &LT; / NS1:收件人&GT;
                &LT; / NS1:收件人&GT;
                &LT; NS1:标签&GT;
                    &LT; NS1:标签&gt;
                        &所述; NS1:DocumentID→1&下; / NS1:DocumentID&GT;
                        &所述; NS1:RecipientID→1&下; / NS1:RecipientID&GT;
                        &所述; NS1:的PageNumber→1&下; / NS1:的PageNumber&GT;
                        &所述; NS1:xPosition位置&GT; 100℃/ NS1:xPosition位置&GT;
                        &所述; NS1:YPosition&GT; 100℃/ NS1:YPosition&GT;
                        &LT; NS1:Type和GT; SignHere&LT; / NS1:型号&GT;
                    &LT; / NS1:标签&gt;
                &LT; / NS1:标签&GT;
                &LT; NS1:主题&GT;测试消息&LT; / NS1:主题&GT;
                &LT; NS1:EmailBlurb&GT;的个人信息发送&LT; / NS1:EmailBlurb&GT;
            &LT; / NS1:信封&GT;
        &LT; / NS1:CreateAndSendEnvelope&GT;
    &LT; / SOAP-ENV:身体与GT;
&LT; / SOAP-ENV:信封&GT;

我收到以下错误

 未捕获的SOAPFault异常:[肥皂:客户端]此帐户缺少足够的权限

这是返回消息的DocuSign发送给我。是的,我创建了一个模拟账户。
我下面这个教程

<$p$p><$c$c>https://github.com/docusign/DocuSign-eSignature-SDK/wiki/$c$c-Walkthrough-_-Create-And-Send-Envelope

我注意到教程不通过一个整合的关键。难道这可能是原因


解决方案

想通了,并没有提到在启动教程。有一点是至关重要的是必须的关键追加到用户名和密钥必须括号内

  $ API  - &GT; setCredentials方法([$键。]$用户名,密码$);

Not sure how many people here use docusign but I am having a bit of a issue creating and sending a envelope and sending to docusign when I send this xml file

<?xml version="1.0" encoding="UTF-8"?>
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://www.docusign.net/API/3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing">
    <SOAP-ENV:Header>
        <wsa:Action>http://www.docusign.net/API/3.0/CreateAndSendEnvelope</wsa:Action>
        <wsa:To>https://demo.docusign.net/api/3.0/api.asmx</wsa:To>
        <wsa:MessageID>uudi:1e1929b6-2adc-ed07-413f-4e766500ef88</wsa:MessageID>
        <wsa:ReplyTo>
            <wsa:Address>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:Address>
        </wsa:ReplyTo>
        <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" SOAP-ENV:mustUnderstand="1">
            <wsu:Timestamp xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
                <wsu:Created>2012-03-22T20:18:07Z</wsu:Created>
                <wsu:Expires>2012-03-22T20:23:07Z</wsu:Expires>
            </wsu:Timestamp>
            <wsse:UsernameToken>
                <wsse:Username>87a3ac71-f806-4eff-ad67-7f39e5cfac42</wsse:Username>
                <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">testpasword</wsse:Password>
                <wsse:Nonce>CiT5a2eGKY/o6OfdfdJHQA31rslk3Z4xrLxHYyUMC4p4=</wsse:Nonce>
                <wsu:Created xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">2012-03-22T20:18:07Z</wsu:Created>
            </wsse:UsernameToken>
        </wsse:Security>
    </SOAP-ENV:Header>
    <SOAP-ENV:Body>
        <ns1:CreateAndSendEnvelope>
            <ns1:Envelope>
                <ns1:AccountId>4dfg3432-4331-49d5-8ca0-2c431f6b376</ns1:AccountId>
                <ns1:Documents>
                    <ns1:Document>
                        <ns1:ID>1</ns1:ID>
                        <ns1:Name>Document</ns1:Name>
                    </ns1:Document>
                </ns1:Documents>
                <ns1:Recipients>
                    <ns1:Recipient>
                        <ns1:ID>1</ns1:ID>
                        <ns1:UserName>Company Name</ns1:UserName>
                        <ns1:Email>anthony.gordon@email.com</ns1:Email>
                        <ns1:Type>Signer</ns1:Type>
                        <ns1:AccessCode xsi:nil="true" />
                        <ns1:RequireIDLookup>false</ns1:RequireIDLookup>
                    </ns1:Recipient>
                </ns1:Recipients>
                <ns1:Tabs>
                    <ns1:Tab>
                        <ns1:DocumentID>1</ns1:DocumentID>
                        <ns1:RecipientID>1</ns1:RecipientID>
                        <ns1:PageNumber>1</ns1:PageNumber>
                        <ns1:XPosition>100</ns1:XPosition>
                        <ns1:YPosition>100</ns1:YPosition>
                        <ns1:Type>SignHere</ns1:Type>
                    </ns1:Tab>
                </ns1:Tabs>
                <ns1:Subject>Test message</ns1:Subject>
                <ns1:EmailBlurb>personal message to send</ns1:EmailBlurb>
            </ns1:Envelope>
        </ns1:CreateAndSendEnvelope>
    </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

I get the following error

Uncaught SoapFault exception: [soap:Client] This Account lacks sufficient permissions

This is the returning message that docusign sends to me. Yes I created a demo account. I am following this tutorial

https://github.com/docusign/DocuSign-eSignature-SDK/wiki/Code-Walkthrough-_-Create-And-Send-Envelope

I notice that the tutorial does not pass a integration key. Could this possibly be the reason

解决方案

Figured it out, does not mention in start up tutorial. One thing that is crucial is you must append the key to the username and the key must be within brackets

$api->setCredentials("[".$key."]".$username, $password);

这篇关于&QUOT;该帐户缺少足够的权限&QUOT;的DocuSign的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆