[dotNET]如何启用WSE2.0的强大的Trace功能

news/2024/6/18 0:59:07

如何启用WSE2.0Trace功能

摘要:郑昀@UltraPower 简单介绍了使用了WSE2.0的应用程序如何启用WSE2.0自身Trace

 

 

给我们的应用的“App.exe.config”配置文件添加下面的粗字体:

<configSections>

       <section name="microsoft.web.services2" type="Microsoft.Web.Services2.Configuration.WebServicesConfiguration, Microsoft.Web.Services2, Version= 2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />

   configSections>

   

    <microsoft.web.services2>

        <diagnostics>

          <trace enabled="true" input="InputTrace.xml" output="OutputTrace.xml" />

          <detailedErrors enabled="true" />

        diagnostics>

      microsoft.web.services2>

 

这样,重启了服务之后,如果有进出的SOAP消息,可以在服务本目录下看到有“InputTrace.xml”“OutputTrace.xml”

这两个文件就自动记录了进出的SOAP完整包。

 

 

InputTrace.XML的内容示范如下,第一个包就是发送了一个对111的查询请求:

  xml version="1.0" encoding="utf-8" ?>

 <log>

 <soap:Envelope

xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/03/addressing" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401

-wss-wssecurity-secext-1.0.xsd"

xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401

-wss-wssecurity-utility-1.0.xsd"

xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">

<soap:Header>

  <wsa:Action>subscribe wsa:Action>

 <wsa:From>

  <wsa:Address>soap.tcp://10.168.3.16:8082/oo wsa:Address>

  wsa:From>

  <wsa:MessageID>uuid: 85a22229 -282c -4a66-ae02-571af9285485 wsa:MessageID>

 <wsa:ReplyTo>

  <wsa:Address>soap.tcp://10.168.3.16:8082/oo wsa:Address>

  wsa:ReplyTo>

  <wsa:To>soap.tcp://10.168.3.16:9090/kk wsa:To>

 <wsse:Security>

 <wsu:Timestamp wsu:Id="Timestamp-d87cb1ae-e28d-4bd7-b77d-3e7d7b634357">

  <wsu:Created> 2003-04-04T06:41:47Z wsu:Created>

  <wsu:Expires> 2003-04-04T06:46:47Z wsu:Expires>

  wsu:Timestamp>

  wsse:Security>

  soap:Header>

 <soap:Body>

 <x:register xmlns:x="urn:ClientSubscriptionApp:Subscription">

  <name>RequestHandler.RequestRoute name>

  <mobile>111 mobile>

  x:register>

  soap:Body>

  soap:Envelope> log>

 

 

 当你调试WSE时,可以启用这个功能,将对你的调试工作起到极大的促进作用!

 当你调试WSE时,可以启用这个功能,将对你的调试工作起到极大的促进作用!

编写者:郑昀@UltraPower





http://www.niftyadmin.cn/n/3649329.html

相关文章

prisma orm_Prisma中的身份验证-第2部分:JSON Web令牌和登录

prisma ormOver in Part 1 we setup our project to require authentication to interact with the GraphQL API. Now, we’re going to look at logging in users and generating JSON Web Tokens (JWT) for our users to lock them out from data we don’t want them to acc…

“微笑涛声”微信公众号正式上线运行

2020年2月2日&#xff0c;微笑涛声个人博客上线&#xff0c;经过一年多的更新&#xff0c;写了原创文章125篇&#xff0c;访问达到8万次以上&#xff0c;百度收录500&#xff0c;自己也成长了许多。 ▣ 博主主站地址&#xff1a;微笑涛声 【www.cztcms.cn】 ▣ 博主其他平台&a…

angular 模块构建_使用传单在Angular中构建地图,第4部分:形状服务

angular 模块构建By now, we’ve built a Leaflet map in Angular and we are able to render markers and pop-ups. Let’s now render shapes for the different US states. 到目前为止 &#xff0c;我们已经在Angular中构建了Leaflet地图 &#xff0c;并且能够渲染标记和弹出…

[收藏]Web Service故障处理[Matt PowellScott Seely]

Web Service故障处理 2001-10-17 Matt Powell and Scott Seelyyesky  概述&#xff1a;这篇文章主要给出了一些常规的Web Service 的故障处理技巧&#xff0c;并辅以Favorites Service为例进行说明。  简介  Web Service 的故障处理会是一件很困难的事情&#xff0c;因为…

Android框架之TableLayout的使用

1.简介 我们在应用viewpager的时候&#xff0c;经常会使用TabPageIndicator来与其配合。达到很漂亮的效果。但是TabPageIndicator是第三方的&#xff0c;而且比较老了&#xff0c;当然了现在很多大神都已经开始自己写TabPageIndicator来满足自己的需求&#xff0c;在2015年的go…

可视化大屏项目:学生就业统计展示

最近在学习前端开发&#xff0c;顺便做了一个项目&#xff0c;学生就业统计展示&#xff0c;可以直观的看到学生就业数据统计。由静态数据提供展示&#xff0c;使用Css3Html5JavaScript进行开发。源代码可以到文章底部扫码进行购买。 最终显示效果如下 购买链接&#xff1a;可视…

嵌入storybook组件_如何使用Storybook构建JS组件

嵌入storybook组件介绍 (Introduction) Storybook is an open source tool for developing UI (user interface) components in isolation and it integrates pretty well with most front end frameworks including React, Vue, and Angular and others. It makes building UI…

JSON解析之手动解析

1、JSON简介 1&#xff09;概念&#xff1a; JSON的全称是JavaScript Object Notation&#xff0c;是一种轻量级的数据交换格式。 2&#xff09;特点&#xff1a; &#xff08;1&#xff09;本质就是具有特定格式的字符串 &#xff08;2&#xff09;JSON完全独立于编程语言 &am…