Problem Logging Web Service Requests.

M

Mike Logan

We are trying to log Web Service Requests using a SOAP Extension. We have
about 10 different web services, and we do not want to modify any of them.
The only thing we would like to modify is the machine.config on the web
services server i.e.

<webServices>
<soapExtensionTypes>
<add type="WebServiceTrace.WebServiceTrace,WebServiceTrace" priority="1" />
</soapExtensionTypes>
</webServices>

However, the SOAP Extension is never called. What are we doing wrong?

For testing we are only using one web service and modifying it's web.config.
That shouldn't be any different than modifying the machine.config, once it
goes to production, correct?

Below is the ProcessMessageSection of our WebServiceTraceClass,

Public Overrides Sub ProcessMessage(ByVal message As SoapMessage)
Select Case message.Stage
Case SoapMessageStage.BeforeSerialize
' do nothing
Case SoapMessageStage.AfterSerialize
'WriteOutput(message)
Case SoapMessageStage.BeforeDeserialize
WriteInput(message)
Case SoapMessageStage.AfterDeserialize
' do nothing
Case Else
Throw New Exception("invalid stage")
End Select
End Sub

We are inheriting the SoapExtension class.

Thanks,
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top