Saturday, May 22, 2010

Microsoft MSDN site code for adding SOAP extensions fails...?

http://msdn2.microsoft.com/en-us/library...


This compiles correctly and runs without runtime error...but, when run, the c:\log.txt file is never created in my SOAP application (which already sends and receives messages correctly) and thus the SOAP "logging extension" never appears to execute.


Any ideas why this may be happening or what's needed to make the code work, other than copying and compiling it?

Microsoft MSDN site code for adding SOAP extensions fails...?
Sounds like you may still need to configure the WebMethod(s) to use the TraceExtensionAttribute.





Try putting this attribute code in your web service over each webmethod you want to utilize the extension:





[TraceExtension]


[WebMethod]


public string %26lt;YourWebMethod(string parm)%26gt;


{


...


}


No comments:

Post a Comment