做一个表单应用程序并可以使用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 application.
这是一些工作代码,其中1个调用有效,然后调用失败:
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
之外都给出了相同的错误,表示不支持。
非常感谢任何帮助。
谢谢 - 克里斯