none
Enabling WCF auditing for a WCF service exposed as an asmx service RRS feed

  • General discussion

  • Hi,

       I have a WCF service application, in which the service is exposed as a traditional asmx service. Now my service Implementation class is decorated with Service Behaviour as well as WebService attribute and the respective interface class(which is empty) has been decorated with Service contract attribute. Can I still enable WCF auditing event for this traditional asmx web service?

    Saturday, April 20, 2013 4:57 AM

All replies

  • Hi, it seems wcf auditing is not work for traditional asmx web service, you can consider migrate the service to wcf service.

    http://msdn.microsoft.com/en-us/library/ff650832.aspx

    Tuesday, April 23, 2013 5:40 AM
  • Thanks Peter for that reply. But as mentioned, my service is decorated with all the necessary WCF service attributes(Service Contract, SErvice Behaviour etc).  It is a WCF service which is being exposed as a traditional asmx service to support non-WCF clients.  So, the configuration files still have the <System.ServiceModel> tag within which we have <ServiceBehaviour> tag defined for various behaviours.  And this behaviour is mentioned on the top of the service implementation  class along with [WebService] attribute as well. 

    Ex:

    [WebService(Namespace = "")]

    [ServiceBehavior(Name = "ABCServiceBehavior", Namespace = "", IncludeExceptionDetailInFaults = true)]

    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]

    [ToolboxItem(false)]

     

    public class ABCService : IBCService { }

    When you are saying service should be WCF service, u mean Pure WCF service, even our service is also a WCF service but it is being exposed as traditional service.  In this case, since the behaviour tag is there, will it be working?  Could you please throw some light on this?

    Wednesday, April 24, 2013 10:58 AM