http://www.encodedna.com/wcf/tutorial/call-wcf-service-from-jquery-ajax-json-aspdotnet.htm
It goes only if consumer is inside the service project.
When i try to run web service the Visual Studio web client is empty. It runs if I delete endpoint from web config, but then the consumer don't go. (The external consumer).
This the web.config
<system.serviceModel>
<services>
<service name="Books" behaviorConfiguration="MyServiceBehavior">
<endpoint
address=""
binding="webHttpBinding"
behaviorConfiguration="webEndPointBehavior"
name="webEndPoint"
contract="IBooks"/>
</service>
</services>
<behaviors>
<serviceBehaviors>
<behavior name="MyServiceBehavior">
<serviceMetadata httpGetEnabled="true"/>
<serviceDebug includeExceptionDetailInFaults="true"/>
</behavior>
</serviceBehaviors>
<endpointBehaviors>
<behavior name="webEndPointBehavior">
<webHttp />
</behavior>
</endpointBehaviors>
</behaviors>
<serviceHostingEnvironment multipleSiteBindingsEnabled="true"/>
</system.serviceModel>