Click here to Skip to main content
15,887,361 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When I am calling a new worflow service, I am getting the following error. I have been having different problems with creating a proxy and have resolved various issues, but this one is still remaining. It appears the namespace is not correct, but I have been checking and it appears to be ok in both the WF service and the service contract attribute of the request class. Any ideas on what to look for is appreciated.

***********************************
The message with Action '[Name]' cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. This may be because of either a contract mismatch (mismatched Actions between sender and receiver) or a binding/security mismatch between the sender and the receiver.contract mismatch.
**********************************


XML
Discovered that my request class (i.e. data contract) is not being declarated correctly upon being serialized. The working request message looks something like this:
<SetDate xmlns='http://company.com/ns/2010/05/'>
<request xmlns:a='http://company.com/ns/2010/05/' xmlns:i='http://www.w3.org/2001/XMLSchema-instance'>
<a:ID i:nil='true'></a:ID>
<a:IndexId>0</a:IndexId>
<a:UserName i:nil='true'></a:UserName>
<a:CreatedBy i:nil='true'></a:CreatedBy>
</request>
</SetDate>
 The data contract that does not work is:
<SetDate xmlns='http://company.com/ns/2010/05/'>
<request xmlns:i='http://www.w3.org/2001/XMLSchema-instance'>
<ID i:nil='true'>
</ID>
<IndexId>0</IndexId>
<UserName i:nil='true'></UserName>
<CreatedBy i:nil='true'></CreatedBy>
</request>
</SetDate>
 Why would the serialization be so different? First request is serialized using a web reference - request class being used is apart of the web reference. The second, was found by executing the service from a proxy class (ie. creating a channel - etc) and instantiating a request class (data contract).

 Trying to figure out why my declarations are different. Any suggestions are greating appreciated.
Posted
Updated 21-Oct-12 21:08pm
v3

1 solution

For this particular project, I chose to use a web service. This resolved the problem.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900