Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/swift/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
DocuSignAPI:DocuSign使用soapui登录_Soap_Soapui_Docusignapi - Fatal编程技术网

DocuSignAPI:DocuSign使用soapui登录

DocuSignAPI:DocuSign使用soapui登录,soap,soapui,docusignapi,Soap,Soapui,Docusignapi,我正在SOAP UI中使用DocuSign API WSDL,并尝试调用一个方法,但得到错误用户\u身份验证\u失败-缺少身份验证头 在一些帖子中,我们看到需要使用安全令牌,但没有在docusign中获取安全令牌,而是使用Integrator密钥值 如果有人能在这里提供指导,请联系我们 我的SOAP UI请求是: 获得的响应为: 在soapui中,您将为请求添加头和值。选择页面页脚处的页眉按钮,然后选择添加。您将在此处添加身份验证标头 下面的文档可以更好地概述如何使用身份验证头和端点URL: 下

我正在SOAP UI中使用DocuSign API WSDL,并尝试调用一个方法,但得到错误用户\u身份验证\u失败-缺少身份验证头

在一些帖子中,我们看到需要使用安全令牌,但没有在docusign中获取安全令牌,而是使用Integrator密钥值

如果有人能在这里提供指导,请联系我们

我的SOAP UI请求是:

获得的响应为:


在soapui中,您将为请求添加头和值。选择页面页脚处的页眉按钮,然后选择添加。您将在此处添加身份验证标头


下面的文档可以更好地概述如何使用身份验证头和端点URL:

下文还概述了上述内容,并代表Send:

代表Functionality.htm%3FTocPath%3DAuthentication%7C\uuuuuuuu2

由于您选择的头类型还决定了应该使用哪个端点URL,下面是演示环境的示例:

HTTP=

SOAP=

因为您正在使用SOAP,所以正确的端点应该是api.asmx

在SOAP UI中,您可以:

从顶部选择端点下拉列表 [编辑当前版本] 填充以下URL: 您还需要在身份验证中添加Integrator密钥。积分器键也应始终位于括号[]中。我的示例如下:

<soap: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:mustUnderstand="1">
        <wsse:UsernameToken wsu:Id="UsernameToken-1">
            <wsse:Username>[INTEGRATOR KEY]DS USERNAME</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">[PASSWORD]</wsse:Password>
        </wsse:UsernameToken>
    </wsse:Security>
</soap:Header>

您使用的端点URL是什么?另外,您的SOAP头中缺少integrator键。感谢Andrew的回复。你的意思是我需要在用户名中包含集成器密钥?那是尝试过的,但不起作用。我没有得到UserNameToken wsu:ID=?中必须提供的值??时间戳wsu:Id=???也是如此???。在一些博客中,我们看到了一些需要包含的SecurityToken,但是我们在Docusign中哪里可以看到安全令牌呢?我们有集成商密钥、帐户ID、用户登录名和密码。感谢您的回复,这是DocusignAPI调用代码。想知道如何从soapui执行此操作。
<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:6e9fbf02-7c18-4d65-bbfc-f828cf51bb57</wsa:MessageID> 
  <wsa:RelatesTo>urn:uuid:7e7b4a69-834f-4906-9b92-a16cc8f6d32b</wsa:RelatesTo> 
  <wsa:To>http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous</wsa:To> 
  <wsse:Security> 
     <wsu:Timestamp wsu:Id="Timestamp-659010d2-c16b-479a-ae43-169846a7898c"> 
        <wsu:Created>2014-07-24T17:47:54Z</wsu:Created> 
        <wsu:Expires>2014-07-24T17:52:54Z</wsu:Expires> 
     </wsu:Timestamp> 
  </wsse:Security> 
</soap:Header> 
<soap:Body>  
<soap:Fault> 
     <faultcode>soap:Server</faultcode> 
     <faultstring>User_Authentication_Failed - Missing authentication header</faultstring> 
     <detail/> 
  </soap:Fault> 
</soap:Body> 
</soap:Envelope> 
<soap: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:mustUnderstand="1">
        <wsse:UsernameToken wsu:Id="UsernameToken-1">
            <wsse:Username>[INTEGRATOR KEY]DS USERNAME</wsse:Username>
            <wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">[PASSWORD]</wsse:Password>
        </wsse:UsernameToken>
    </wsse:Security>
</soap:Header>