Hi there, I have a question regarding the creation of SoapExtension for my web service. My problem is described as below:
I've created a SoapExtension dll file to log soap message to hard disk drive. For testing it functionality
1. I created a web service named Hello Word Webservice
Here is the code of this web service:
public class HelloWorldService : System.Web.Services.WebService
{
[WebMethod, BugTracker.SoapDisplayExtension]
public string HelloWorld(string myString)
{
return "Hello World Service returns - " + myString;
}
}
2. I added my dll to it, the dll is used just for writing soap message to hard disk drive
3. I created a window form application to run it.
After these steps, the result is fine, but my question is, I dont want to create WindowFormApplication, I want to run directly this web service project by pressing f5, and it still produces output to harddisk. Can anyone help me please!
ps: My work is based on this tut:
Trace SOAP Request/Response XML with TraceExtension