2

我正在使用 Docusign API 创建和检索“信封”以进行签名。(docusign.com 了解更多信息)。

基本上我在尝试根据他们的说明获取 SOAP 跟踪时遇到一些问题https://github.com/docusign/DocuSign-eSignature-SDK/wiki/How-to-acquire-a-SOAP-trace-for-debugging- %28Windows%29

这就是我需要帮助的地方。有没有人使用来自 Docusing 支持的这些说明(来自 Microsoft 页面,根据一个社区评论,似乎不起作用)能够创建跟踪?

我已经尝试了所有可能的组合,但到目前为止我没有看到任何日志文件。

我非常感谢您可以为我提供的任何帮助。

谢谢

4

1 回答 1

4

这是我在我的 App.config 中用于 DocuSign 的跟踪配置。您需要稍微清理一下日志(在每次调用之前/之后查找“<<<”和“>>>”。

首先将其添加到该system.serviceModel部分:

  <diagnostics>
      <messageLogging
        logEntireMessage="true"
        logMalformedMessages="true"
        logMessagesAtServiceLevel="true"
        logMessagesAtTransportLevel="true"
        maxMessagesToLog="50"
        maxSizeOfMessageToLog="500000000" />
    </diagnostics>

然后将其添加到该configuration部分:

<system.diagnostics>
    <trace autoflush="true" />
    <sources>
      <source name="System.Net" tracemode="protocolonly" maxdatasize="52428800" >
        <listeners>
          <add name="MyTraceFile"/>
        </listeners>
      </source>
    </sources>

    <sharedListeners>
      <!-- Set path here. Make sure the app has permission to write to the location.-->
      <add
        name="MyTraceFile"
        type="System.Diagnostics.TextWriterTraceListener"
        initializeData="c:\temp\DsTrace.log" />
    </sharedListeners>

    <switches>
      <add name="System.Net" value="Verbose" />
    </switches>

  </system.diagnostics>

另外请注意,如果您在发送之前从跟踪中删除元素,DocuSign 工作人员将非常感激PDFBytes,除非您需要他们进行故障排除。

于 2011-07-07T21:42:57.737 回答