WCF Service Hosting Inside MVC Web Application

I added the WCF service to an existing MVC web application to display it in the Syncfusion OLAP cube tool . What happens when I run an application with a site with http support, I can access the WCF method as shown below,

the code

$("#OlapClient").ejOlapClient({ url: "/Areas/OLAP/wcf/OlapClientService.svc"});

But when I do this with httpsthe site turned on, I can’t access the WCF method. He just quits 404 method not found exception. Below is an example of web.config for my WCF.

Web.config

<system.serviceModel>
 <behaviors>
  <endpointBehaviors>

    <behavior name="OLAP.wcf.OlapClientServiceAspNetAjaxBehavior">
      <enableWebScript />
    </behavior>
  </endpointBehaviors>
  <serviceBehaviors>
    <behavior name="">
      <serviceMetadata httpsGetEnabled="false" />
      <serviceDebug includeExceptionDetailInFaults="true" />
    </behavior>
  </serviceBehaviors>

</behaviors>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<services>

  <service name="OLAP.wcf.OlapClientService">
    <endpoint address="" behaviorConfiguration="OLAP.wcf.OlapClientServiceAspNetAjaxBehavior" binding="webHttpBinding" contract="OLAP.wcf.IOlapClientService">

    </endpoint>
  </service>
</services>
<bindings>
  <basicHttpBinding>
    <binding name="BasicHttpBinding_IService1" />
  </basicHttpBinding>
</bindings>
<client>
  <endpoint address="http://localhost:15415/VibrantWS.svc/soap"
    binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IService1"
    contract="ServiceReference1.IService1" name="BasicHttpBinding_IService1" />
</client>
</system.serviceModel>
+4
source share
1 answer
  • .Net Frame, 4.5, , , IIS ".Net Frame work 4.5 advanced service" WCF Serivce  HTTP- ( ) ".

  • , web.config .

https://msdn.microsoft.com/en-us/library/hh556232(v=vs.110).aspx

SSL WCF

HTTPS- IIS WCF-, ?

  1. API- WEB API WCF, .
0

All Articles