2012-03-22 1 views
0

내가 작성 및 봉투를 보내는 문제의 비트를 가지고 내가이 XML 파일을 보낼 때 DocuSign의에 보내고 얼마나 많은 사람들이 여기에 사용 DocuSign의지만 확실하지는 DocuSign의 "이 계정은 충분한 권한이 부족하다"

<?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>[email protected]</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> 

다음 오류가 발생합니다.

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

docusign에서 보내는 답장 메시지입니다. 예. 데모 계좌를 만들었습니다. 내가 튜토리얼이 통합 키를 통과하지 않는 것을 알이 튜토리얼

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

에게 다음입니다. 이것은 아마도 이유 일 수 있습니다

답변

5

그것을 밖으로 시작, 시작 튜토리얼에서 언급하지 않습니다. 중요한 것은 사용자 이름에 키를 추가해야하며 키는 대괄호 안에 있어야한다는 것입니다.

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