I have created a custom soap header, and added it into my message via IClientMessageInspector
public object BeforeSendRequest(ref System.ServiceModel.Channels.Message request, System.ServiceModel.IClientChannel channel)
{
var header = new MessageHeader<AuthHeader>();
header.Content = new AuthHeader(Key);
head...
I'm doing a message inspector in WCF:
public class LogMessageInspector :
IDispatchMessageInspector, IClientMessageInspector
which implements the method:
public object AfterReceiveRequest(ref Message request,
IClientChannel channel, InstanceContext instanceContext)
I can get the name of the invoked service with:
instanceCo...
Hello,
I am using the WCF IClientMessageInspector to send information in a header to a WCF service (wsHTTP). I am using the IDispatchMessageInspector to receive the information and populate a String property.
I verified the header is sending the information properly as I use the FindHeader within my specific method but I'd rather just...
I Implement IDispatchMessageInspector.AfterReciveRequest
Then I configur like this :
<configuration>
<system.serviceModel>
<services>
<service
name="Microsoft.WCF.Documentation.SampleService"
behaviorConfiguration="inspectorBehavior">
<host>
<baseAddresses>
<add baseAddress="htt...
I am trying to use the MS Message Inspector sample from WCF Message Inspector
I converted the project to VS2010 and added a WCF application with a svc class. However, when I try to add a service reference, I am getting the following error:
Could not find a base address that matches cheme http for the endpoint with binding WSHttpBind...