0

I am using VS2012. My client configuration not updated when I have added service reference of WCF REST service. It is updating if I change binding to 'basicHttpBinding' in a WCF Service. Following is my WCF Service configuration.

<endpoint address="" binding="webHttpBinding" contract="MyService.IService1" behaviorConfiguration="RestBehavior">

<endpointBehaviors>
    <behavior name="RestBehavior">
      <webHttp helpEnabled="true"/>
    </behavior>
  </endpointBehaviors>

My WCF service is split into following projects.

  1. WCFHost(has only .svc file with web.config mentioned above and uses following two projs)
  2. WCFInterfaces (Class library, has no config file)
  3. WCFImplementaions (Class library, has no config files)

I wonder if I am doing anything wrong with decoupling of WCF layers above and hence my client app unable to get config details when Service reference added.

4

1 に答える 1