Contract Mismatch?


  • I'm seeing this error invoking my WCF service from NuSOAP (PHP):

    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).

    Here's the message log trace record from my .svclog on the server side:

    <HttpRequest xmlns="">
    <Content-Type>text/xml; charset=UTF-8</Content-Type>
    <Authorization>Basic U0hBUkVEXGFmZl9wcm92OiQxbkczQG5nVyTiQk</Authorization>
    <User-Agent>NuSOAP/0.6.9 (1.86)</User-Agent>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="" xmlns:xsd="" xmlns:xsi="" xmlns:SOAP-ENC="" xmlns:si="">
    <s:Header xmlns:s="">
    <To s:mustUnderstand="1" xmlns="">http://myserver:80/Service.svc?wsdl</To>
    <Action s:mustUnderstand="1" xmlns=""></Action>
    <CreateSite xmlns="">
    Friday, December 01, 2006 9:38 PM


  • Hey Mark,

    I see that in the above message you have the To address as "http://myserver:80/Service.svc?wsdl". Service addresses ending with "?wsdl" will only be able to export metadata but not invoke service methods. I suppose that your client is invoking the service with the improper service address. Can you please check it?



    Monday, December 04, 2006 11:40 PM