を返します。呼び出すWCFサービスメソッドは、これは私のjQueryのAJAXの方法である404
<client>
<endpoint address="http://localhost:56537/DemoService1.svc" binding="basicHttpBinding"
bindingConfiguration="BasicHttpBinding_IDemoService1" contract="DemoService.IDemoService1"
name="BasicHttpBinding_IDemoService1" />
</client>
<behaviors>
<serviceBehaviors>
<behavior name="ServiceBehaviour">
<serviceMetadata httpGetEnabled="true" />
<serviceDebug includeExceptionDetailInFaults="true" />
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="EndBehaviour">
<webHttp/>
</behavior>
</endpointBehaviors>
</behaviors>
<services>
<service behaviorConfiguration="ServiceBehaviour" name="DemoService">
<endpoint address="" binding="webHttpBinding" contract="IDemoService1" behaviorConfiguration="EndBehaviour"></endpoint>
</service>
</services>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true" />
ソリューションを提供してください:
[OperationContract]
[WebInvoke(UriTemplate = "/IsEmailAvailable", Method = "POST", RequestFormat = WebMessageFormat.Json, ResponseFormat = WebMessageFormat.Json)]
bool IsEmailAvailable(string Email);
私のWebConfigは、次のようになります。私はjQueryの新機能です。