Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net 跟踪Visual Studio生成的Web服务代理发出的请求内容_.net_Web Services_Asmx - Fatal编程技术网

.net 跟踪Visual Studio生成的Web服务代理发出的请求内容

.net 跟踪Visual Studio生成的Web服务代理发出的请求内容,.net,web-services,asmx,.net,Web Services,Asmx,我有一个由VisualStudio中的添加web引用功能构建的web引用代理,需要跟踪/查看它发布到远程web服务器的实际内容。有人能告诉我怎么做吗?谢谢 要跟踪web服务请求和响应详细信息,可以在web.config中添加以下配置 <!-- Tracing Request/Response --> <system.diagnostics> <trace autoflush="true" /> <sources>

我有一个由VisualStudio中的添加web引用功能构建的web引用代理,需要跟踪/查看它发布到远程web服务器的实际内容。有人能告诉我怎么做吗?谢谢

要跟踪web服务请求和响应详细信息,可以在web.config中添加以下配置

<!-- Tracing Request/Response -->

<system.diagnostics>
    <trace autoflush="true" />
    <sources>
        <source name="System.Web.Services.Asmx">
            <listeners>
                <add name="AsmxTraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="REQ_RES.log" />
                <!--traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId"-->
            </listeners>
        </source>
    </sources>
    <switches>
        <add name="System.Web.Services.Asmx" value="Verbose" />
    </switches>
</system.diagnostics>


<!-- Tracing Request/Response -->

通过添加此项,将在根文件夹中为每个请求和响应创建名为“REQ_RES.log”的日志。要跟踪web服务请求和响应详细信息,可以在web.config中添加以下配置

<!-- Tracing Request/Response -->

<system.diagnostics>
    <trace autoflush="true" />
    <sources>
        <source name="System.Web.Services.Asmx">
            <listeners>
                <add name="AsmxTraceFile" type="System.Diagnostics.TextWriterTraceListener" initializeData="REQ_RES.log" />
                <!--traceOutputOptions="LogicalOperationStack, DateTime, Timestamp, ProcessId, ThreadId"-->
            </listeners>
        </source>
    </sources>
    <switches>
        <add name="System.Web.Services.Asmx" value="Verbose" />
    </switches>
</system.diagnostics>


<!-- Tracing Request/Response -->

通过添加此项,对于每个请求和响应,将在根文件夹中创建名为“REQ_RES.log”的日志。

James?还在乎这个吗?如果是这样的话,请说为什么不提琴,以便有人能为你找到第二个最好的解决方案。詹姆斯?还在乎这个吗?如果是这样,请说为什么不提琴,以便有人能找到你的第二个最好的解决方案。