none
The message with Action cannot be processed at the receiver, due to a ContractFilter mismatch at the EndpointDispatcher. RRS feed

  • Question

  • The Client Calling WCF Service

    • POST http://rpideviis/RpiAraServices/rpiaraservices.svc HTTP/1.1
    • SOAPAction: "urn:kcml-ReturnsServer#ProcessReturns"
    • Content-Type: text/xml; charset="utf-8"
    • User-Agent: Borland SOAP 1.2
    • Host: rpideviis
    • Content-Length: 1302
    • Connection: Keep-Alive
    • Pragma: no-cache
    • <?xml version="1.0"?>
    • <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/"><SOAP-ENV:Body xmlns:NS1="urn:kcml-ReturnsServer" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"><NS1:ProcessReturns><CustNum xsi:type="xsd:string">JOB999</CustNum><LineCode xsi:type="xsd:string">WIX</LineCode><PartNum xsi:type="xsd:string">51515</PartNum><QTY xsi:type="xsd:double">1</QTY><SaveFlag xsi:type="xsd:string">P</SaveFlag><RAType xsi:type="xsd:string">W</RAType><GenRANo xsi:type="xsd:double">1</GenRANo><RANumber xsi:type="xsd:double">1</RANumber><QOH xsi:type="xsd:double">0</QOH><QOO xsi:type="xsd:double">0</QOO><CusID xsi:type="xsd:double">1</CusID><CusName xsi:type="xsd:string"></CusName><CusAddr1 xsi:type="xsd:string"></CusAddr1><CusAddr2 xsi:type="xsd:string"></CusAddr2><CusPhone xsi:type="xsd:string"></CusPhone><Mileage xsi:type="xsd:double">0</Mileage><Reason xsi:type="xsd:string">WARRANTY</Reason><SalesHistory xsi:type="xsd:double">0</SalesHistory><OrderTrigger xsi:type="xsd:double">0</OrderTrigger><Tote xsi:type="xsd:string"></Tote></NS1:ProcessReturns></SOAP-ENV:Body></SOAP-ENV:Envelope>

                                                               WCF Service Library Web.Config

    • <services>
    •       <service name="RpiAraServices.ReturnsServer">
    •         <clear />
    •         <endpoint binding="basicHttpBinding" name="ReturnsServer"
    •           contract="RpiAraServices.IReturnsServer" listenUriMode="Explicit">
    •           <identity>
    •             <dns value="localhost" />
    •             <certificateReference storeName="My" storeLocation="LocalMachine"
    •               x509FindType="FindBySubjectDistinguishedName" />
    •           </identity>
    •         </endpoint>
    •         <endpoint address="mex" binding="mexHttpBinding" name="ReturnsServer"
    •           contract="IMetadataExchange" listenUriMode="Explicit">
    •           <identity>
    •             <dns value="localhost" />
    •             <certificateReference storeName="My" storeLocation="LocalMachine"
    •               x509FindType="FindBySubjectDistinguishedName" />
    •           </identity>
    •         </endpoint>
    •         <host>
    •           <baseAddresses>
    •             <add baseAddress="http://localhost:8733/Design_Time_Addresses/RpiAraServices/Service1/" />
    •           </baseAddresses>
    •         </host>
    •       </service>
    •     </services>

    WCF Function to receive data and return Response

    • <ServiceContract()>
    • Public Interface IReturnsServer
    •  Function ProcessReturns(ByVal CustNum As String, ByVal LineCode As String, ByVal PartNum As String, ByVal QTY As                                                        Double, ByVal SaveFlag As String, ByVal RAType As String, ByVal GenRANo As Double, _
    •                                                ByVal RANumber As Double, ByVal QOH As Double, ByVal QOO As Double, ByVal CusID As                                                                         Double, ByVal CusName As String, ByVal CusAddr1 As String, ByVal CusAddr2 As String, _
    •                                                    ByVal CusPhone As String, ByVal Mileage As Double, ByVal CustomerReason As String, ByVal                                                      SalesHistory As Double, ByVal OrderTrigger As Double, ByVal Tote As String) As                                                                                <System.ServiceModel.MessageParameterAttribute(Name:="strReply")> String
    • End Interface

    Error Message

    The message with Action 'urn:kcml-ReturnsServer#ProcessReturns' 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).


    David

    Wednesday, November 4, 2015 7:05 PM

Answers