Follow

SOAP Envelope issue "The message with Action ” cannot be processed"

If you are attempting to program the Kleber into your system/application using the SOAPEnvelope method then it is likely you will come across the following response:

<s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">

<s:Body>

<s:Fault>

<faultcode xmlns:a="http://schemas.microsoft.com/ws/2005/05/addressing/none"> a:ActionNotSupported

</faultcode>

<faultstring xml:lang="en-US">

The message with Action '' 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. Check that sender and receiver have the same contract and the same binding (including security requirements, e.g. Message, Transport, None).

</faultstring>

</s:Fault>

</s:Body>

</s:Envelope>

 You may also find yourself getting a ‘500’ error when attempting to debug (use a try/catch to get the correct error response). The solution to this issue is simple to fix by making sure that you add the following to your HttpRequest:

req.Headers.Add("SOAPAction: \"http://tempuri.org/IDtKleberService/ProcessXmlRequest\"");

Below is a sample C# project that has been tested.

 

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.