WCF endpoint configuration with jsonp
I'm trying to solve this problem:
http://www.medicallperu.com/services/Medicall.svc
This is my current web.config file and I know its something about the
endpoint. I'm working on mochahost so I needed to add extra lines to work
with WCF, I also use crossdomain calls from java, so thats why I use
jsonp. Everything works well if I call any method, its working perfectly
but I have that endpoint error. Any help would be appreciated.
<system.serviceModel>
<behaviors>
<endpointBehaviors>
<behavior name="webHttpBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<bindings>
<webHttpBinding>
<binding name="webHttpBindingWithJsonP"
crossDomainScriptAccessEnabled="true" />
</webHttpBinding>
</bindings>
<services>
<service name="Medicall_WCF.Medicall">
<endpoint address="/Medicall.svc" binding="webHttpBinding"
bindingConfiguration="webHttpBindingWithJsonP"
contract="Medicall_WCF.Medicall"
behaviorConfiguration="webHttpBehavior"/>
</service>
</services>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>
<system.web>
<!--<compilation debug="true" targetFramework="4.0" />-->
<customErrors mode="Off"/>
</system.web>
<appSettings>
<add key="" value="" />
</appSettings>
<location path="." inheritInChildApplications="false">
<system.webServer>
<handlers>
<add name="svc-ISAPI-2.0a" path="*.svc" verb="*" modules="IsapiModule"
scriptProcessor="%SystemRoot%\Microsoft.NET\Framework\v2.0.50727\aspnet_isapi.dll"
resourceType="Unspecified"
preCondition="classicMode,runtimeVersionv2.0,bitness32" />
<add name="svc-Integrateda" path="*.svc" verb="*"
type="System.ServiceModel.Activation.HttpHandler, System.ServiceModel,
Version=3.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"
resourceType="Unspecified" preCondition="integratedMode" />
</handlers>
<modules runAllManagedModulesForAllRequests="true"/>
</system.webServer>
</location>
No comments:
Post a Comment