【发布时间】:2013-12-19 05:16:42
【问题描述】:
我正在使用基于 SOAP 的 API 调用来创建 DocuSign 信封。 我可以创建一个信封,但如果收件人或其他东西缺少标签,我无法从 API 调用中检索正确的错误消息。 这是我的代码。
Dim client As New DocuSignServ.DSAPIServiceSoapClient
Using scope As System.ServiceModel.OperationContextScope = New System.ServiceModel.OperationContextScope(client.InnerChannel)
SetHttpHeader()
Try
status = client.CreateAndSendEnvelope(newennvelope)
Session("status") = status
env.ID = status.EnvelopeID
envelopeid = env.ID
Catch ex2 As System.ServiceModel.FaultException
errormsg = "Error occured while creating an envelope into DocuSign account<br>Error Details : " & ex2.InnerException.Message.ToString
Catch ex As Exception
errormsg = "Error occured while creating an envelope into DocuSign account<br>Error Details : " & ex.Message.ToString
End Try
End Using
请指教,
谢谢
【问题讨论】:
-
请澄清您所说的“如果缺少标签”是什么意思。我不明白您要解决什么问题或工作流程...
-
我的意思是,如果在创建信封时发生错误,如何获取带有状态码的错误详细信息?目前,每当创建信封时发生错误,我都会从 DocuSign 收到一般错误消息“无效的用户名或密码”。我想获取错误消息的详细信息,以便更正错误。
标签: docusignapi