Home > Development > ColdFusion and WCF with basicHttpBinding

ColdFusion and WCF with basicHttpBinding


Well I had major trouble getting this working today with another ISV using Cold Fusion. We kept getting the following exception.

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)

We added base addresses to the services as follows and it all worked.

<service behaviorConfiguration="acmeServiceBehaviour" name="acme.WebServices.Services.LotService">
        <host>
          <baseAddresses>
            <add baseAddress="http://mail.acme.com.au:6000/WebServices/Services"/>
          </baseAddresses>
        </host>
	<endpoint address="" binding="basicHttpBinding" bindingConfiguration="acmeBasicHttpBinding"
          contract="acme.WebServices.Services.ILotService" >
        </endpoint>
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange"/>
</service>

Hope this helps.
Blair…..

Advertisements
Categories: Development Tags: , , , , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: