[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.sdk

Soap Extension not Executing

Bryce Marshall

7/21/2002 1:36:00 PM

Hi,

I have built the TraceExtension soap extension example from the .NET
Framework SDK documentation:
file://ms-help://MS.NETFrameworkSDK/cpguidenf/html/cpconalteringsoapmessageu
singsoapextensions.htm

The build is fine, however whether I configure the extension using an
attribute or from a configuration file, the extension itself does not
execute. Note that the attribute constructor is called when an attribute is
applied to a web method, and I do not get any errors from the web.config
file where I have inserted the <soapExtensionTypes> element.

Is there an "undocumented" configuration step that I am missing?

Thanks,

Bryce




1 Answer

(Li-Yan Zhang [MS])

7/24/2002 7:55:00 AM

0

I tried the above soap extension sample by applying the web.config file (I
am using RTM version of VS.NET). I could get the soap log file as expected
without any problem.

This soap extension sample doesn't require to do any additional
configuration settings for clients, as long as your client invokes the
remote web service by soap protocols. (Please pay more attention not to
invoke the remote web service by HTTP GET or HTTP POST, otherwise based on
my testing the soap extension will be ignored ).

Below is my steps on the server side:
1. Package the SoapExtension derived class in a C# library application
(LogExt.dll)
2. Add a reference to LogExt.dll in my asp.net web service application
3. Modified the web.config file:
<webServices>
<soapExtensionTypes>
<add type="LoggerExt.TraceExtension, LoggerExt" priority="1"
group="0" />
</soapExtensionTypes>
</webServices>

I then create an ASP.NET application to consume the web service. You might
also need to assign proper access rights for ASPNET to write log files.
The account is determined by under whom your asp.net application is
running.

Thanks,
Li-Yan Zhang
VS.NET, Visual C++
Microsoft

This posting is provided "AS IS" with no warranties, and confers no rights.
Got .Net? http://www.got...