I've implemented idispatchmessageinspector in my service. I did not want to do this as an attribute. I want the BeforeSendReply to add additional data into the header. the problem I have is that it is not being called and the header is returned null. essentially, I am treating this as event driven to have this called every time the method completes execution.
could someone explain the execution of the BeforeSendReply?
hope it makes sense.
A sample of what I want to accomplish have below:
class test
implements itest
implements idispatchmessageinspector
public function testFunction as string implements itest.testFunction
begin
return somestring
end
sub BeforeSendReply (reply ...) implement ..
begin
dim header = ...
reply.headers.add(header)
end