简体   繁体   English

DocuSign SOAP错误:此帐户缺少足够的权限

[英]DocuSign SOAP error: This Account lacks sufficient permissions

I am using soap to call CreateEnvelopeFromTemplates. 我正在使用肥皂来调用CreateEnvelopeFromTemplates。 I am embedding the security header at the top and I am getting the response below. 我将安全标头嵌入顶部,并在下面得到响应。 Any ideas on what could be wrong. 关于可能出问题的任何想法。

My security header is: 我的安全标头是:

  <soap:Header> <wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"> <wsse:UsernameToken wsu:Id="UsernameToken-1" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> <wsse:Username>981ec272-3f9a-4cd8-83a9-062f82fce46c</wsse:Username> <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">abcdefgh</wsse:Password> </wsse:UsernameToken> </wsse:Security> </soap:Header> 
The Response is: 响应为:

This Account lacks sufficient permissions. 此帐户缺少足够的权限。

 <?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:2a38012a-5ae0-4077-8b81-08a808c62e60</wsa:MessageID> <wsa:RelatesTo>urn:uuid:6c1f1484-c546-49be-b181-4d75f5dd08a5</wsa:RelatesTo> <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> <wsse:Security> <wsu:Timestamp wsu:Id="Timestamp-10879099-ff09-4aa8-bcb8-7f2cf8819781"> <wsu:Created>2019-01-08T16:04:53Z</wsu:Created> <wsu:Expires>2019-01-08T16:09:53Z</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> 

You need to embed your Integrator Key in the Username element, using brackets. 您需要使用方括号将Integrator密钥嵌入到Username元素中。 Most of the examples shown in the authentication section of the SOAP API guide pre-date Integrator Keys and don't show it for UsernameToken. SOAP API指南的身份验证部分中显示的大多数示例都早于Integrator Keys,并且未在UsernameToken中显示。

Example: 例:

<wsse:Username>[BILL- 9048-469a-a9e9-211cef79e5f3]2988541c-4ec7-4245-b520-f2d324062ca3</wsse:Username>

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

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