DocuSign SoapAPI样品不工作 [英] DocuSign SoapAPI Sample doesn't work

查看:126
本文介绍了DocuSign SoapAPI样品不工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始使用的DocuSign SOAP API,而我使用的是从他们的开发者网站的例子,以及GitHub的网站。虽然code中的两位不太相符,既不似乎工作。我不断收到一个System.ServiceModel.FaultException的消息,安全要求未得到满足,因为安全头不是present传入的消息中。

I'm just getting started with the DocuSign SOAP API, and I'm using the examples from their developer site as well as the GitHub site. While the two bits of code don't quite match, neither seems to work. I keep getting a System.ServiceModel.FaultException with the message, "Security requirements are not satisfied because the security header is not present in the incoming message."

我使用的服务引用与VS2012代理服务 https://开头演示.docusign.net / API / 3.0 / dsapi.asmx 和我核实,我的帐户都可以通过网上REST API浏览器来获得登录信息,我的模拟账户。

I'm using a Service Reference with VS2012 to proxy the service https://demo.docusign.net/api/3.0/dsapi.asmx, and I have verified that my account works by using the online REST API explorer to obtain login information for my demo account.

任何人都遇到这样或有什么建议?

Anyone run into this or have any suggestions?

推荐答案

我发现,我不得不创建一个服务引用(而不是Web引用)指出的 https://demo.docusign.net/api/3.0/dsapi.asmx (而不是的 https://demo.docusign.net/api/3.0/api.asmx 作为样本的<一个href="http://www.docusign.com/p/APIGuide/Content/DocuSignService%20API%20Overview/$c$c%20Samples.htm" rel="nofollow">http://www.docusign.com/p/APIGuide/Content/DocuSignService%20API%20Overview/$c$c%20Samples.htm建议)。

I found that I had to create a Service Reference (and not a Web Reference) pointed to https://demo.docusign.net/api/3.0/dsapi.asmx (and not https://demo.docusign.net/api/3.0/api.asmx as the sample at http://www.docusign.com/p/APIGuide/Content/DocuSignService%20API%20Overview/Code%20Samples.htm suggests).

我还必须确保我添加了X-DocuSign - 验证的请求头通过使用一个版本的样品code此处<一个href="http://www.docusign.com/p/APIGuide/APIGuide.htm#Introduction+Changes/Using%20DocuSign%20WSDLs%20in%20the%20Net%20Environment.htm?TocPath=Using%20DocuSign%20WSDLs%7C_____1"相对=nofollow> http://www.docusign.com/p/APIGuide/APIGuide.htm#Introduction+Changes/Using DocuSign的WSDL在网络Environment.htm%3FTocPath%3DUsing%20DocuSign%20WSDLs%7C_的 _ 的_1

I also had to make sure that I added the "X-DocuSign-Authentication" to the request headers by using a version of the sample code here http://www.docusign.com/p/APIGuide/APIGuide.htm#Introduction+Changes/Using DocuSign WSDLs in the Net Environment.htm%3FTocPath%3DUsing%20DocuSign%20WSDLs%7C___1

这篇关于DocuSign SoapAPI样品不工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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