<diagnostics> Element
Controls the diagnostics settings for the Microsoft Web Services Enhancements.
<microsoft.web.services3> Element
<diagnostics>
<trace enabled="true|false"
input="File name to trace incoming SOAP messages."
output="File name to trace sent SOAP messages."/>
<detailedErrors enabled="true|false" />
</diagnostics>
Attributes and Elements
Attributes
None
Child Elements
Element | Description |
---|---|
Optional element. Specifies whether SOAP messages received or sent by WSE are traced. The input and output attributes are optional. If omitted, the default file names are InputTrace.webinfo and OutputTrace.webinfo. |
|
Optional element. Controls the level of detail returned when there is a fault generated from the Web service. |
Parent Elements
Element | Description |
---|---|
Controls the configuration options defined by WSE. |
Remarks
Before adding the <diagnostics> element to a configuration file, you must add the microsoft.web.services3 configuration section handler to the configuration file. For details about adding the microsoft.web.services3 configuration section handler, see <section> Element.
Use the diagnostics options of WSE to troubleshoot problems. For details, see Troubleshooting WSE Applications.
Example
The following code example specifies that tracing is enabled and that detailed error messages are returned by WSE.
<configuration>
<microsoft.web.services3>
<diagnostics>
<trace enabled="true"
input="inputTrace.webinfo"
output="outputTrace.webinfo"/>
</diagnostics>
</microsoft.web.services3>
</configuration>
See Also
Reference
<trace> Element
<detailedErrors> Element