【问题标题】:Adquiring a SOAP trace for debugging is not woking获取用于调试的 SOAP 跟踪不起作用
【发布时间】:2011-09-22 08:43:22
【问题描述】:

我正在使用 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 页面,根据一个社区评论,似乎不起作用)能够创建跟踪?

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

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

谢谢

【问题讨论】:

    标签: soap system.diagnostics tracelistener docusignapi


    【解决方案1】:

    这是我在 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>
    

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-22
      相关资源
      最近更新 更多