WCF over http settings needed

Posted by Crishna on Stack Overflow See other posts from Stack Overflow or by Crishna
Published on 2010-04-04T16:10:58Z Indexed on 2010/04/04 16:13 UTC
Read the original article Hit count: 254

Filed under:

Hello,

We currently have a WCF Service that works over https. But we want to change it to make it work over just http.

Could any one tell me what all do I need to change to make the the wcf service work over http. Below is my config file values. Is there anything I else I need to cahnge other than the web.config??

ANy help greatly appreciated

<bindings>
  <basicHttpBinding>
    <binding name="basicHttpBinding_Windows" maxReceivedMessageSize="500000000"  maxBufferPoolSize="500000000" messageEncoding="Mtom">


      <security mode="TransportWithMessageCredential">

        <transport clientCredentialType="Windows" />

      </security>

      <readerQuotas maxDepth="500000000"
       maxArrayLength="500000000" maxBytesPerRead="500000000"
       maxNameTableCharCount="500000000" maxStringContentLength="500000000"/>

    </binding>

  </basicHttpBinding>

</bindings>


<behaviors>
  <endpointBehaviors>
    <behavior name="myproject_Behavior">
      <dataContractSerializer />
      <synchronousReceive />
    </behavior>
  </endpointBehaviors>
  <serviceBehaviors>
    <behavior name="WebService.WSBehavior">
      <serviceMetadata httpsGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>
    <behavior name="WebService.Forms_WSBehavior">
      <serviceMetadata httpGetEnabled="true" />
      <serviceDebug includeExceptionDetailInFaults="false" />
    </behavior>
  </serviceBehaviors>
</behaviors>



<services>
  <service behaviorConfiguration="WebService.WSBehavior"
    name="IMMSWebService.mywebservice_WS">
    <endpoint address="myproject_WS" binding="basicHttpBinding" bindingConfiguration="basicHttpBinding_Windows"
      bindingName="basicHttpBinding" contract="WebService.ICommand">
      <identity>
        <dns value="localhost" />
      </identity>
    </endpoint>
    <endpoint address="mex" binding="mexHttpsBinding" contract="IMetadataExchange" />
    <host>
      <timeouts closeTimeout="00:10:00" openTimeout="00:10:00" />
    </host>
  </service>
  <service behaviorConfiguration="WebService.Forms_WSBehavior"
    name="WebService.Forms_WS">

    <endpoint address="" binding="wsHttpBinding" contract="WebService.IForms_WS">
      <identity>
        <dns value="localhost" />
      </identity>
    </endpoint>
    <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
  </service>
</services>

© Stack Overflow or respective owner

Related posts about wcf