EDIT https없이/dowork의 웹 서비스 끝점에 도달하려고해도 여전히 오류가 발생하지만 유효한 끝점을 인식합니다. HTTPS는 어떻게 활성화합니까?Azure WCF https 404 오류
저는 주로 사용자 상태에 따라 상태를 관리하기 위해 AJAX 호출을 수신하는 WCF 서비스를 보유하고 있습니다.
나는 아무것도 돌려받을 수 없다. 현재 내가 어디로 잘못 갔는지 볼 수 있니? 당신은 당신 것을 의미한다 "사이트/core.svc/dowork이에 ... 브라우저 실패"말을하는지
[ServiceContract]
public interface Icore
{
[OperationContract]
[WebInvoke(UriTemplate = "/dowork",
BodyStyle = WebMessageBodyStyle.Wrapped,
ResponseFormat = WebMessageFormat.Xml)]
string DoWork();
}
[System.Web.Script.Services.ScriptService]
public class core : Icore
{
public string DoWork()
{
return "hullo";
}
}
<system.web>
<compilation debug="true" targetFramework="4.5"/>
<customErrors mode="Off"/>
<pages controlRenderingCompatibilityVersion="4.0"/>
<webServices>
<protocols>
<add name="HttpGet"/>
<add name="HttpPost"/>
</protocols>
</webServices>
</system.web>
<system.serviceModel>
<serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
<bindings>
<webHttpBinding></webHttpBinding>
</bindings>
<services>
<service name="Fusion.core" behaviorConfiguration="Fusion.CoreBehavior" >
<endpoint contract="Fusion.Icore" binding="webHttpBinding" behaviorConfiguration="webBehavior" address="" />
<endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="Fusion.CoreBehavior">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="false" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="webBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
</system.serviceModel>
https 끝점에 연결하고 있습니까?에서 전송 모드 보안을 구성 했습니까? 또는 http endpoint를 사용하면 작동하는 것으로 보입니까? –
Praburaj
나는 그것으로 간섭하려고했지만, 나는 같은 효과를 얻는다. 나는 core.svc로 바로 갈 수있다. – Wesley