all groups > dotnet web services enhancements > january 2005 >
You're in the

dotnet web services enhancements

group:

Enabling tracing in a web service client


Enabling tracing in a web service client Kostas
1/25/2005 4:29:04 AM
dotnet web services enhancements:
I have written a simple Windows form that consumes a number of web services.
I would like to see the raw XML of the requests and responses.
I've installed WSE 2.0, and added the following lines in my application
configuration file:
<configuration>
<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="c:\temp\inputTrace.webinfo"
output="c:\temp\outputTrace.webinfo" />
</diagnostics>
</microsoft.web.services2>
</configuration>

I've also made sure that the c:\temp directory and the two trace files have
full permissions.

However nothing gets written to the files. Does anyone have any ideas as to
what I'm doing wrong?

many thanks,

Re: Enabling tracing in a web service client Sidd
1/25/2005 10:03:19 AM
Hi Kostas,

Are you actually using the WSE proxy to send these messages to the web
services? or are you using the plain ASMX proxy to send these messages? If
you want to get your output messages traced, you have to use the wse client
proxy (assuming this is using http).

Please let me know if this helps,

Sidd [MSFT]

[quoted text, click to view]

Re: Enabling tracing in a web service client Kostas
1/26/2005 2:17:05 AM
Hi Sidd,

Thanks very much for your reply. By WSE proxy you mean the class ending in
Wse, right?

When I add a web reference there are two classes generated by VS, e.g.
WebService and WebServiceWse. I've just checked and I am using the Wse one.
Also when I right click on the project and go to "WSE Settings 2.0", in the
General tab the first checkbox (Enable this project for Web Service
Enhancements) is checked, and in the Diagnostics tab the "Enable Trace
Message" is checked, and input and output files are specified. I've given
full control to these files (and the directory) to all users.

Is there anything else I may have missed?

thanks,

Kostas

[quoted text, click to view]
Re: Enabling tracing in a web service client Kostas
1/26/2005 2:25:02 AM
Ah, got it. I just deleted the files and they were created and populated fine.
I was under the impression that it would append to existing files...

Kostas

[quoted text, click to view]
AddThis Social Bookmark Button