C# 任何人都有如何调用DSAPI GetStatusInDocuSignConnectFormat的工作示例
做一个表单应用程序,可以使用API/DSAPI,除了一个让我抓狂的调用 我想以连接格式(或者只使用xml)获取信封数据,但我遇到以下错误:C# 任何人都有如何调用DSAPI GetStatusInDocuSignConnectFormat的工作示例,c#,soap,docusignapi,C#,Soap,Docusignapi,做一个表单应用程序,可以使用API/DSAPI,除了一个让我抓狂的调用 我想以连接格式(或者只使用xml)获取信封数据,但我遇到以下错误: An unhandled exception of type 'System.ServiceModel.FaultException' occurred in mscorlib.dll Additional information: Server was unable to process request. ---> Error in the appl
An unhandled exception of type 'System.ServiceModel.FaultException' occurred in mscorlib.dll
Additional information: Server was unable to process request. ---> Error in the application.
下面是一些工作代码,其中一个调用有效,另一个调用失败:
private void button5_Click(object sender, EventArgs e)
{
using (OperationContextScope scope = new System.ServiceModel.OperationContextScope(dsapiClient.InnerChannel))
{
HttpRequestMessageProperty httpRequestProperty = new HttpRequestMessageProperty();
httpRequestProperty.Headers.Add("X-DocuSign-Authentication", auth);
OperationContext.Current.OutgoingMessageProperties[HttpRequestMessageProperty.Name] = httpRequestProperty;
// this call works great
DSAPI.EnvelopeStatus status = dsapiClient.RequestStatusEx("9d6616a1-af9a-47af-b37d-1daa4f13c008");
Console.Out.WriteLine("Subject: " + status.Subject);
/* this line gives me the error
An unhandled exception of type 'System.ServiceModel.FaultException' occurred in mscorlib.dll
Additional information: Server was unable to process request. ---> Error in the application.
*/
DSAPI.DocuSignEnvelopeInformation DEI = dsapiClient.GetStatusInDocuSignConnectFormat("9d6616a1-af9a-47af-b37d-1daa4f13c008");
Console.WriteLine(DEI);
}
}
我还尝试了api.GetStatusInDocuSignConnectFormat
,以及HTTPrequest
样式,除了api.GetStatusInDocuSignConnectFormat
表示不受支持之外,其他样式都给出了相同的错误
任何帮助都将不胜感激
谢谢-Chris这就是代码的外观-帖子以某种方式被拆分?确保代码块缩进4个空格:这就是代码的外观-帖子以某种方式被拆分?确保代码块缩进4个空格: