none
Contract Mismatch?

    Question

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

    The message with Action 'http://www.affinity.com/2006/10/WssProvisioningService/CreateSite' 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:

    <MessageLogTraceRecord>
    <HttpRequest xmlns="http://schemas.microsoft.com/2004/06/ServiceModel/Management/MessageTrace">
    <Method>POST</Method>
    <QueryString>wsdl</QueryString>
    <WebHeaders>
    <Content-Length>565</Content-Length>
    <Content-Type>text/xml; charset=UTF-8</Content-Type>
    <Authorization>Basic U0hBUkVEXGFmZl9wcm92OiQxbkczQG5nVyTiQk</Authorization>
    <Host>myserver:80</Host>
    <User-Agent>NuSOAP/0.6.9 (1.86)</User-Agent>
    <SOAPAction>"http://www.affinity.com/2006/10/WssProvisioningService/CreateSite"</SOAPAction>
    </WebHeaders>
    </HttpRequest>
    <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/" xmlns:si="http://soapinterop.org/xsd">
    <s:Header xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
    <To s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://myserver:80/Service.svc?wsdl</To>
    <Action s:mustUnderstand="1" xmlns="http://schemas.microsoft.com/ws/2005/05/addressing/none">http://www.affinity.com/2006/10/WssProvisioningService/CreateSite</Action>
    </s:Header>
    <SOAP-ENV:Body>
    <CreateSite xmlns="http://www.affinity.com/2006/10/WssProvisioningService">
    <id>764261</id>
    <domain>testdomain.com</domain>
    <userEmail>username@testdomain.com</userEmail>
    </CreateSite>
    </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>
    </MessageLogTraceRecord>
    Friday, December 01, 2006 9:38 PM

Answers

  • 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?

    Thanks,

    Dinesh.

    Monday, December 04, 2006 11:40 PM
    Moderator