Is there a way to programmatically enable diagnostic tracing for a WSE web service client?
This is how it should be configured using an app.config file:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<configSections>
<section name="microsoft.web.services3" type="Microsoft.Web.Services3.Configuration.WebServicesConfiguration, Microsoft.Web.Services3, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
</configSections>
<microsoft.web.services3>
<diagnostics>
<trace enabled="true" input="InputTrace.webinfo" output="OutputTrace.webinfo" />
</diagnostics>
</microsoft.web.services3>
</configuration>
I would like to do this from code. Is this possible?
Edit: If I look into the WSE object hierarchy, I can find the objects that represent those configuration settings, but I can't change them programmatically. The properties are read-only. So I guess I'll have to resort to a more generic way of doing this in .net?