I am trying to create a wcf service with two endpoints, one SOAP 1.1 and the other SOAP 1.2. Here is my config:
<?xml version="1.0"?>
<configuration>
<configSections>
</configSections>
<connectionStrings>
<add name="ProgramInformationWS.Properties.Settings.IMTConnectionString" connectionString="Data Source=DLADD00001;Initial Catalog=IMT;Integrated Security=True" providerName="System.Data.SqlClient"/>
</connectionStrings>
<system.web>
<compilation debug="true"/>
</system.web>
<!-- When deploying the service library project, the content of the config file must be added to the host's
app.config file. System.Configuration does not support config files for libraries. -->
<system.serviceModel>
<services>
<service name="EnterpriseReportingWS.ERPService" behaviorConfiguration="ERPService.Behavior">
<endpoint address="soap" binding="basicHttpBinding" bindingConfiguration="" contract="EnterpriseReportingWS.IERPService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="soap12" binding="wsHttpBinding" bindingConfiguration="" contract="EnterpriseReportingWS.IERPService">
<identity>
<dns value="localhost"/>
</identity>
</endpoint>
<endpoint address="mex" binding="mexHttpBinding" bindingConfiguration="" contract="IMetadataExchange"/>
<host>
<baseAddresses>
<add baseAddress="http://MyServerHere/ERPService/"/>
</baseAddresses>
</host>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="ERPService.Behavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
</behaviors>
</system.serviceModel>
<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
What I am trying to configure here is that when I hit
http://caaditl20bz3.national.edu/ERPService/EnterpriseReportingWS.ERPService.svc/soap
I get SOAP 1.1 and when I hit
http://caaditl20bz3.national.edu/ERPService/EnterpriseReportingWS.ERPService.svc/soap12
I get SOAP 1.2. However, the behavior I am getting is that neither of those resolve, and the only way I can access my service is from
http://caaditl20bz3.national.edu/ERPService/EnterpriseReportingWS.ERPService.svc
What have I screwed up?
UPDATE: By removing the wshttpbinding endpoint and using the basichttpbinding endpoint only in my config, I can get get SOAP 1.1. What do I need to do to be able to make both available?