A "ContractFilter mismatch at the EndpointDispatcher" means the receiver could not process the message because it did not match any of the contracts the receiver has configured for the endpoint which received the message.
This can be because:
Have at look at the EndpointDispatcher
class for more information on the subject.
So:
Make certain that your client and server contracts match.
Check the bindings are the same between client and server.
Check the security settings are the same between client and server.
I had this error and it was caused by the recevier contract not implementing the method being called. Basically, someone hadn't deployed the lastest version of the WCF service to the host server.
You will also get this if you try to connect to the wrong URL ;)
I have two endpoints and services defined in my system, with similar names.
Got this exact error when the URLs got swapped on my client at some point. Really scratched the head until finally figuring out this dumb mistake.
I had this problem and found that in my proxy generator, which I copied from another service, I forgot to change the name of the service.
I changed this...
Return New Service1DataClient(binding, New EndpointAddress(My.Settings.WCFServiceURL & "/Service1Data.svc"))
to...
Return New Service2DataClient(binding, New EndpointAddress(My.Settings.WCFServiceURL & "/Service2Data.svc"))
It was a simple code error, but nearly impossible to debug. I hope this saves someone time.
For a Java client calling a .net endpoint. This was caused by mismatching Soap Action header.
Content-Type: application/soap+xml;charset=UTF-8;action="http://example.org/ExampleWS/exampleMethod"
The above HTTP header or following XML tag needs to match the action/method your are trying to invoke.
<soap:Envelope xmlns:soap="http://www.w3.org/2003/05/soap-envelope" xmlns:tem="http://tempuri.org/" xmlns:gen="http://schemas.datacontract.org/2004/07/GenesysOnline.WCFServices">
<soap:Header xmlns:wsa="http://www.w3.org/2005/08/addressing">
<wsa:To>https://example.org/v1/Service.svc</wsa:To>
<wsa:Action>http://example.org/ExampleWS/exampleMethod</wsa:Action>
</soap:Header>
<soap:Body>
...
</soap:Body>
</soap:Envelope>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With