<
behavior
name
="calculatorEndpointBehavior"
>
<
clientVia
viaUri
="http://localhost:8080/Calculator"
/>
</
behavior
>
</
endpointBehaviors
>
</
behaviors
>
<
client
>
<
endpoint
address
="http://localhost:8888/Calculator"
behaviorConfiguration
="calculatorEndpointBehavior"
binding
="wsHttpBinding"
contract
="Artech.ExceptionHandling.Contract.ICalculator"
name
="defualtEndpoint"
/>
</
client
>
</
system.serviceModel
>
</
configuration
>
我们现在就可以来进行Soap Trace了,现在我们启动tcpTrace。进行如下的设置,Destination Server和Destination Port为Service Endpoint对应的Host和Port。我们甚至还可以通过Log文件把Trace保存起来。
然后先后运行Service和Client,你将会在tcpTrace上看到他所截获的Request和Response的内容:
而且相应的内容被记录到我们指定的Log文件中:
暖阳下的好日子
认证博客专家
神经网络
数据分析
Python
11年的程序经验,擅长应用系统,人工智能。拥有丰富的系统开发经验,数据库操作经验。除此之外,还喜欢足球,魔兽。
转载请注明原文地址: https://ju.6miu.com/read-150349.html