I need to use the SoapExtension subclass (which I created), but it seems that this class can only be initialized through the "web.config" file (although I read that this should be possible through the "app.config" file - but I donβt know how to do it). Problem: I do not have a web.config file in my project. Therefore, I created it manually with the following contents:
<?xml version="1.0" encoding="utf-8"?> <configuration> <system.web> <webServices> <soapExtensionTypes> <add type="MyNameSpace.MySoapExtension,MyAssemblyFileName" priority="1"/> </soapExtensionTypes> </webServices> </system.web> </configuration>
Despite the fact that breakpoints passed in each SoapExtension method do not happen at runtime, it seems that it is never initialized with nore called ... (My SoapService initializes ok, but without any extension).
I think that creating a web.config file manually may not be enough to account for it, so I am wondering how to properly configure my application to have a web.config file to use my SoapExtension (It should go and initialize my class, processMessage and chainStream things...).
(Note: this is my first SoapExtension implementation, I'm not sure what I'm doing)
c # web-services web-config asmx soap-extension
soleshoe
source share