Click here to Skip to main content
15,900,461 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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:
// To allow this Web Service to be called from script, using ASP.NET AJAX, uncomment the following line. 
    // [System.Web.Script.Services.ScriptService]
    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
Posted
Updated 15-Aug-11 5:26am
v6

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900