crm2011 bad request 415
===

Getting following error when trying to execute CRM web service.\

**Code**

    WhoAmIRequest whoami = new WhoAmIRequest();
    				WhoAmIResponse whoResp = ((WhoAmIResponse)(service.Execute(whoami)));

**Config setting:** 
        <add key="CrmSdk.CrmServiceWsdl" value="http://server/organization/XRMServices/2011/Organization.svc/web"/>

**Error:** 

   System.Net.WebException: The request failed with HTTP status 415: Cannot process the     message because the content type 'text/xml; charset=utf-8' was not the expected type 'application/soap+xml; charset=utf-8'..

If I change my config settings like below I'm getting "bad request".

**Config setting:** 

     <add key="CrmSdk.CrmServiceWsdl" value="http://server/organization/XRMServices/2011/Organization.svc/web"/>
    
    

**Error:** 

> The message with Action
> 'http://schemas.microsoft.com/crm/2007/WebServices/Execute' 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).
