none
WCF Error RRS feed

  • Question

  • Hi All,

    • Created a simple WCF which takes a orders details and response back with the order status.
    • Consumed the WCF service in Visual studio.
    • Created orhcestration to send and receive the order-details and status response.
    • Imported the WCF-basic binding which got generated while consuming the WCF service in Visual studio.
    • Generated a sample instance from “OrderService_tempuri_org.xsd”.
    • Used to sample instance to trigger the WCF service..

    Have fiddler to monitor the message exchange. But got the following error:

    <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-GB">The message with Action '&lt;BtsActionMapping xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"&gt;&#xD;

      &lt;Operation Name="Order" Action="http://tempuri.org/IOrder/Order" /&gt;&#xD;

    &lt;/BtsActionMapping&gt;' 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>

    I have used the binding which got generated while consuming the WCF service. Check the SOAP Action header section of the send port, it all looks correct to me..Am I missing anything?


    • Edited by AskQues Thursday, October 10, 2013 11:13 AM
    Thursday, October 10, 2013 10:53 AM

Answers

  • Ahh..I think I got your issue.

    I think its due the name of logical send port in your orchestration. Change the name of the logical send port “in” orchestration to “Order” (as per your error message).

    This happen when you create a new port type to send the message in orchestration. If you had used exiting port type, you would have your port with the name of the operation you try to invoke.


    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

    • Marked as answer by AskQues Thursday, October 10, 2013 1:43 PM
    Thursday, October 10, 2013 11:40 AM

All replies

  • This uses a request-response send port to send the order details and receive the status as response.

    Now I created a simple one-way send port to based on ReceivePort filter. With the same SOAP Action property configured, it works fine?

    Why its not working in two-way send port. Am I doing anything wrong?


    • Edited by AskQues Thursday, October 10, 2013 11:13 AM
    Thursday, October 10, 2013 11:13 AM
  • Ahh..I think I got your issue.

    I think its due the name of logical send port in your orchestration. Change the name of the logical send port “in” orchestration to “Order” (as per your error message).

    This happen when you create a new port type to send the message in orchestration. If you had used exiting port type, you would have your port with the name of the operation you try to invoke.


    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

    • Marked as answer by AskQues Thursday, October 10, 2013 1:43 PM
    Thursday, October 10, 2013 11:40 AM
  • Thanks Ashwin, it solved my issue.

    Thursday, October 10, 2013 1:43 PM
  • Hi,

    Detailed this error and its solution here..

    http://www.fortuvis.com/blog/biztalk-and-wcf-soap-action/


    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful.

    Wednesday, October 16, 2013 12:57 PM