Click here to Skip to main content
15,885,874 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Given the following serviceModel section of the web.config (on the service side), I can successfully create a web service reference to the service (allowing visual studio to create the proxy and client configuration), but it doesn't work when I call into the AuthenticationService service.

If I JUST replace ws2007HttpBinding with basicHttpsBinding (no code changes), it works.

Any suggestions why I can't get it to work with ws2007HttpBinding?

<system.servicemodel>
  <servicehostingenvironment aspnetcompatibilityenabled="true" multiplesitebindingsenabled="true" />
  <services>
    <service name="MembershipSI.AuthenticationService">
      <endpoint>
        address=""
        binding="ws2007HttpBinding"
        bindingConfiguration="ws2007SecureBinding_BC"
        contract="MembershipSI.IAuthenticationService"/>
      <host>
        <baseAddresses>
          <add baseaddress="https://MembershipSI/AuthenticationService.svc" / >
        </baseAddresses>
      </host>
    </endpoint></service>

    <service name="MembershipSI.RoleService">
      <endpoint>
        address=""
        binding="ws2007HttpBinding"
        bindingConfiguration="ws2007SecureBinding_BC"
        contract="MembershipSI.IRoleService"
      />
      <host>
        <baseAddresses>
          <add baseaddress="https://MembershipSI/RoleService.svc" />
        <baseAddresses>
      </host>
    </endpoint></service>
  </services>

  <bindings>
   <ws2007httpbinding>
      <binding name="ws2007SecureBinding_BC">
        <security mode="Transport">
          <transport clientcredentialtype="None" proxycredentialtype="None" realm="" />
        </security>
      </binding>
    </ws2007httpbinding>
  </bindings>

  <behaviors>
    <servicebehaviors>
      <behavior>
        <servicemetadata httpgetenabled="true" httpsgetenabled="true" />
        <servicedebug includeexceptiondetailinfaults="true" />

        <servicecredentials>
          <usernameauthentication>
            userNamePasswordValidationMode="MembershipProvider"
            membershipProviderName="MembershipSIMembershipProvider"
          />
        </usernameauthentication></servicecredentials>

        <serviceauthorization>
          principalPermissionMode="UseAspNetRoles"
          roleProviderName="MembershipSIRoleProvider"
          impersonateCallerForAllOperations="false"
        />
      </serviceauthorization></behavior>
    </servicebehaviors>
  </behaviors>
 </system.servicemodel>
Posted
Updated 7-Jan-14 17:14pm
v3
Comments
Did you see any Error or Exception while running the Service with ws2007HttpBinding?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900